Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,72 @@
[
{
"EventName": "cpu-cycles",
"BriefDescription": "Total cycles. Be wary of what happens during CPU frequency scaling [This event is an alias of cycles].",
"LegacyConfigCode": "0"
},
{
"EventName": "cycles",
"BriefDescription": "Total cycles. Be wary of what happens during CPU frequency scaling [This event is an alias of cpu-cycles].",
"LegacyConfigCode": "0"
},
{
"EventName": "instructions",
"BriefDescription": "Retired instructions. Be careful, these can be affected by various issues, most notably hardware interrupt counts.",
"LegacyConfigCode": "1"
},
{
"EventName": "cache-references",
"BriefDescription": "Cache accesses. Usually this indicates Last Level Cache accesses but this may vary depending on your CPU. This may include prefetches and coherency messages; again this depends on the design of your CPU.",
"LegacyConfigCode": "2"
},
{
"EventName": "cache-misses",
"BriefDescription": "Cache misses. Usually this indicates Last Level Cache misses; this is intended to be used in conjunction with the PERF_COUNT_HW_CACHE_REFERENCES event to calculate cache miss rates.",
"LegacyConfigCode": "3"
},
{
"EventName": "branches",
"BriefDescription": "Retired branch instructions [This event is an alias of branch-instructions].",
"LegacyConfigCode": "4"
},
{
"EventName": "branch-instructions",
"BriefDescription": "Retired branch instructions [This event is an alias of branches].",
"LegacyConfigCode": "4"
},
{
"EventName": "branch-misses",
"BriefDescription": "Mispredicted branch instructions.",
"LegacyConfigCode": "5"
},
{
"EventName": "bus-cycles",
"BriefDescription": "Bus cycles, which can be different from total cycles.",
"LegacyConfigCode": "6"
},
{
"EventName": "stalled-cycles-frontend",
"BriefDescription": "Stalled cycles during issue [This event is an alias of idle-cycles-frontend].",
"LegacyConfigCode": "7"
},
{
"EventName": "idle-cycles-frontend",
"BriefDescription": "Stalled cycles during issue [This event is an alias of stalled-cycles-fronted].",
"LegacyConfigCode": "7"
},
{
"EventName": "stalled-cycles-backend",
"BriefDescription": "Stalled cycles during retirement [This event is an alias of idle-cycles-backend].",
"LegacyConfigCode": "8"
},
{
"EventName": "idle-cycles-backend",
"BriefDescription": "Stalled cycles during retirement [This event is an alias of stalled-cycles-backend].",
"LegacyConfigCode": "8"
},
{
"EventName": "ref-cycles",
"BriefDescription": "Total cycles; not affected by CPU frequency scaling.",
"LegacyConfigCode": "9"
}
]
@@ -0,0 +1,151 @@
[
{
"BriefDescription": "Average CPU utilization",
"MetricExpr": "(software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@) / (duration_time * 1e9)",
"MetricGroup": "Default",
"MetricName": "CPUs_utilized",
"ScaleUnit": "1CPUs",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Context switches per CPU second",
"MetricExpr": "(software@context\\-switches\\,name\\=context\\-switches@ * 1e9) / (software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@)",
"MetricGroup": "Default",
"MetricName": "cs_per_second",
"ScaleUnit": "1cs/sec",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Process migrations to a new CPU per CPU second",
"MetricExpr": "(software@cpu\\-migrations\\,name\\=cpu\\-migrations@ * 1e9) / (software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@)",
"MetricGroup": "Default",
"MetricName": "migrations_per_second",
"ScaleUnit": "1migrations/sec",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Page faults per CPU second",
"MetricExpr": "(software@page\\-faults\\,name\\=page\\-faults@ * 1e9) / (software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@)",
"MetricGroup": "Default",
"MetricName": "page_faults_per_second",
"ScaleUnit": "1faults/sec",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Instructions Per Cycle",
"MetricExpr": "instructions / cpu\\-cycles",
"MetricGroup": "Default",
"MetricName": "insn_per_cycle",
"MetricThreshold": "insn_per_cycle < 1",
"ScaleUnit": "1instructions",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Max front or backend stalls per instruction",
"MetricExpr": "(max(stalled\\-cycles\\-frontend, stalled\\-cycles\\-backend) / instructions) if (has_event(stalled\\-cycles\\-frontend) & has_event(stalled\\-cycles\\-backend)) else ((stalled\\-cycles\\-frontend / instructions) if has_event(stalled\\-cycles\\-frontend) else ((stalled\\-cycles\\-backend / instructions) if has_event(stalled\\-cycles\\-backend) else 0))",
"MetricGroup": "Default",
"MetricName": "stalled_cycles_per_instruction",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Frontend stalls per cycle",
"MetricExpr": "(stalled\\-cycles\\-frontend / cpu\\-cycles) if has_event(stalled\\-cycles\\-frontend) else 0",
"MetricGroup": "Default",
"MetricName": "frontend_cycles_idle",
"MetricThreshold": "frontend_cycles_idle > 0.1",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Backend stalls per cycle",
"MetricExpr": "(stalled\\-cycles\\-backend / cpu\\-cycles) if has_event(stalled\\-cycles\\-backend) else 0",
"MetricGroup": "Default",
"MetricName": "backend_cycles_idle",
"MetricThreshold": "backend_cycles_idle > 0.2",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Cycles per CPU second",
"MetricExpr": "cpu\\-cycles / (software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@)",
"MetricGroup": "Default",
"MetricName": "cycles_frequency",
"ScaleUnit": "1GHz",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Branches per CPU second",
"MetricExpr": "branches / (software@cpu\\-clock\\,name\\=cpu\\-clock@ if #target_cpu else software@task\\-clock\\,name\\=task\\-clock@)",
"MetricGroup": "Default",
"MetricName": "branch_frequency",
"ScaleUnit": "1000M/sec",
"MetricConstraint": "NO_GROUP_EVENTS",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "Branch miss rate",
"MetricExpr": "branch\\-misses / branches",
"MetricGroup": "Default",
"MetricName": "branch_miss_rate",
"MetricThreshold": "branch_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "L1D miss rate",
"MetricExpr": "L1\\-dcache\\-load\\-misses / L1\\-dcache\\-loads",
"MetricGroup": "Default2",
"MetricName": "l1d_miss_rate",
"MetricThreshold": "l1d_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "LLC miss rate",
"MetricExpr": "LLC\\-load\\-misses / LLC\\-loads",
"MetricGroup": "Default2",
"MetricName": "llc_miss_rate",
"MetricThreshold": "llc_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "L1I miss rate",
"MetricExpr": "L1\\-icache\\-load\\-misses / L1\\-icache\\-loads",
"MetricGroup": "Default3",
"MetricName": "l1i_miss_rate",
"MetricThreshold": "l1i_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "dTLB miss rate",
"MetricExpr": "dTLB\\-load\\-misses / dTLB\\-loads",
"MetricGroup": "Default3",
"MetricName": "dtlb_miss_rate",
"MetricThreshold": "dtlb_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "iTLB miss rate",
"MetricExpr": "iTLB\\-load\\-misses / iTLB\\-loads",
"MetricGroup": "Default3",
"MetricName": "itlb_miss_rate",
"MetricThreshold": "itlb_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
},
{
"BriefDescription": "L1 prefetch miss rate",
"MetricExpr": "L1\\-dcache\\-prefetch\\-misses / L1\\-dcache\\-prefetches",
"MetricGroup": "Default4",
"MetricName": "l1_prefetch_miss_rate",
"MetricThreshold": "l1_prefetch_miss_rate > 0.05",
"ScaleUnit": "100%",
"DefaultShowEvents": "1"
}
]
@@ -0,0 +1,94 @@
[
{
"Unit": "software",
"EventName": "cpu-clock",
"BriefDescription": "Per-CPU high-resolution timer based event",
"ConfigCode": "0",
"ScaleUnit": "1e-6msec"
},
{
"Unit": "software",
"EventName": "task-clock",
"BriefDescription": "Per-task high-resolution timer based event",
"ConfigCode": "1",
"ScaleUnit": "1e-6msec"
},
{
"Unit": "software",
"EventName": "faults",
"BriefDescription": "Number of page faults [This event is an alias of page-faults]",
"ConfigCode": "2"
},
{
"Unit": "software",
"EventName": "page-faults",
"BriefDescription": "Number of page faults [This event is an alias of faults]",
"ConfigCode": "2"
},
{
"Unit": "software",
"EventName": "context-switches",
"BriefDescription": "Number of context switches [This event is an alias of cs]",
"ConfigCode": "3"
},
{
"Unit": "software",
"EventName": "cs",
"BriefDescription": "Number of context switches [This event is an alias of context-switches]",
"ConfigCode": "3"
},
{
"Unit": "software",
"EventName": "cpu-migrations",
"BriefDescription": "Number of times a process has migrated to a new CPU [This event is an alias of migrations]",
"ConfigCode": "4"
},
{
"Unit": "software",
"EventName": "migrations",
"BriefDescription": "Number of times a process has migrated to a new CPU [This event is an alias of cpu-migrations]",
"ConfigCode": "4"
},
{
"Unit": "software",
"EventName": "minor-faults",
"BriefDescription": "Number of minor page faults. Minor faults don't require I/O to handle",
"ConfigCode": "5"
},
{
"Unit": "software",
"EventName": "major-faults",
"BriefDescription": "Number of major page faults. Major faults require I/O to handle",
"ConfigCode": "6"
},
{
"Unit": "software",
"EventName": "alignment-faults",
"BriefDescription": "Number of kernel handled memory alignment faults",
"ConfigCode": "7"
},
{
"Unit": "software",
"EventName": "emulation-faults",
"BriefDescription": "Number of kernel handled unimplemented instruction faults handled through emulation",
"ConfigCode": "8"
},
{
"Unit": "software",
"EventName": "dummy",
"BriefDescription": "A placeholder event that doesn't count anything",
"ConfigCode": "9"
},
{
"Unit": "software",
"EventName": "bpf-output",
"BriefDescription": "An event used by BPF programs to write to the perf ring buffer",
"ConfigCode": "10"
},
{
"Unit": "software",
"EventName": "cgroup-switches",
"BriefDescription": "Number of context switches to a task in a different cgroup",
"ConfigCode": "11"
}
]
@@ -0,0 +1,86 @@
[
{
"Unit": "tool",
"EventName": "duration_time",
"BriefDescription": "Wall clock interval time in nanoseconds",
"ConfigCode": "1"
},
{
"Unit": "tool",
"EventName": "user_time",
"BriefDescription": "User (non-kernel) time in nanoseconds",
"ConfigCode": "2"
},
{
"Unit": "tool",
"EventName": "system_time",
"BriefDescription": "System/kernel time in nanoseconds",
"ConfigCode": "3"
},
{
"Unit": "tool",
"EventName": "has_pmem",
"BriefDescription": "1 if persistent memory installed otherwise 0",
"ConfigCode": "4"
},
{
"Unit": "tool",
"EventName": "num_cores",
"BriefDescription": "Number of cores. A core consists of 1 or more thread, with each thread being associated with a logical Linux CPU",
"ConfigCode": "5"
},
{
"Unit": "tool",
"EventName": "num_cpus",
"BriefDescription": "Number of logical Linux CPUs. There may be multiple such CPUs on a core",
"ConfigCode": "6"
},
{
"Unit": "tool",
"EventName": "num_cpus_online",
"BriefDescription": "Number of online logical Linux CPUs. There may be multiple such CPUs on a core",
"ConfigCode": "7"
},
{
"Unit": "tool",
"EventName": "num_dies",
"BriefDescription": "Number of dies. Each die has 1 or more cores",
"ConfigCode": "8"
},
{
"Unit": "tool",
"EventName": "num_packages",
"BriefDescription": "Number of packages. Each package has 1 or more die",
"ConfigCode": "9"
},
{
"Unit": "tool",
"EventName": "slots",
"BriefDescription": "Number of functional units that in parallel can execute parts of an instruction",
"ConfigCode": "10"
},
{
"Unit": "tool",
"EventName": "smt_on",
"BriefDescription": "1 if simultaneous multithreading (aka hyperthreading) is enable otherwise 0",
"ConfigCode": "11"
},
{
"Unit": "tool",
"EventName": "system_tsc_freq",
"BriefDescription": "The amount a Time Stamp Counter (TSC) increases per second",
"ConfigCode": "12"
},
{
"Unit": "tool",
"EventName": "core_wide",
"BriefDescription": "1 if not SMT, if SMT are events being gathered on all SMT threads 1 otherwise 0",
"ConfigCode": "13"
},
{
"Unit": "tool",
"EventName": "target_cpu",
"BriefDescription": "1 if CPUs being analyzed, 0 if threads/processes",
"ConfigCode": "14"
}
]