mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 23:46:45 +00:00

Add core events taken from Section 1.4 "Core Performance Monitor Counters" of the Performance Monitor Counters for AMD Family 1Ah Model 00h-0Fh Processors document available at the link below. This constitutes events which capture information on op dispatch, execution and retirement, branch prediction, L1 and L2 cache activity, TLB activity, etc. Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Sandipan Das <sandipan.das@amd.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ananth Narayan <ananth.narayan@amd.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Stephane Eranian <eranian@google.com> Link: https://bugzilla.kernel.org/attachment.cgi?id=305974 Link: https://lore.kernel.org/r/668d194241bf0d42dc37f1c5af8131069a0bd82c.1714717230.git.sandipan.das@amd.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
[
|
|
{
|
|
"EventName": "ic_cache_fill_l2",
|
|
"EventCode": "0x82",
|
|
"BriefDescription": "Instruction cache lines (64 bytes) fulfilled from the L2 cache."
|
|
},
|
|
{
|
|
"EventName": "ic_cache_fill_sys",
|
|
"EventCode": "0x83",
|
|
"BriefDescription": "Instruction cache lines (64 bytes) fulfilled from system memory or another cache."
|
|
},
|
|
{
|
|
"EventName": "ic_fetch_ibs_events.fetch_tagged",
|
|
"EventCode": "0x188",
|
|
"BriefDescription": "Fetches tagged by Fetch IBS. Not all tagged fetches result in a valid sample and an IBS interrupt.",
|
|
"UMask": "0x02"
|
|
},
|
|
{
|
|
"EventName": "ic_fetch_ibs_events.sample_discarded",
|
|
"EventCode": "0x188",
|
|
"BriefDescription": "Fetches discarded after being tagged by Fetch IBS due to reasons other than IBS filtering.",
|
|
"UMask": "0x04"
|
|
},
|
|
{
|
|
"EventName": "ic_fetch_ibs_events.sample_filtered",
|
|
"EventCode": "0x188",
|
|
"BriefDescription": "Fetches discarded after being tagged by Fetch IBS due to IBS filtering.",
|
|
"UMask": "0x08"
|
|
},
|
|
{
|
|
"EventName": "ic_fetch_ibs_events.sample_valid",
|
|
"EventCode": "0x188",
|
|
"BriefDescription": "Fetches tagged by Fetch IBS that result in a valid sample and an IBS interrupt.",
|
|
"UMask": "0x10"
|
|
},
|
|
{
|
|
"EventName": "ic_tag_hit_miss.instruction_cache_hit",
|
|
"EventCode": "0x18e",
|
|
"BriefDescription": "Instruction cache hits.",
|
|
"UMask": "0x07"
|
|
},
|
|
{
|
|
"EventName": "ic_tag_hit_miss.instruction_cache_miss",
|
|
"EventCode": "0x18e",
|
|
"BriefDescription": "Instruction cache misses.",
|
|
"UMask": "0x18"
|
|
},
|
|
{
|
|
"EventName": "ic_tag_hit_miss.all_instruction_cache_accesses",
|
|
"EventCode": "0x18e",
|
|
"BriefDescription": "Instruction cache accesses of all types.",
|
|
"UMask": "0x1f"
|
|
},
|
|
{
|
|
"EventName": "op_cache_hit_miss.op_cache_hit",
|
|
"EventCode": "0x28f",
|
|
"BriefDescription": "Op cache hits.",
|
|
"UMask": "0x03"
|
|
},
|
|
{
|
|
"EventName": "op_cache_hit_miss.op_cache_miss",
|
|
"EventCode": "0x28f",
|
|
"BriefDescription": "Op cache misses.",
|
|
"UMask": "0x04"
|
|
},
|
|
{
|
|
"EventName": "op_cache_hit_miss.all_op_cache_accesses",
|
|
"EventCode": "0x28f",
|
|
"BriefDescription": "Op cache accesses of all types.",
|
|
"UMask": "0x07"
|
|
}
|
|
]
|