-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf jevents: Add tool event json under a common architecture
Introduce the notion of a common architecture/model that can be used to find event tables for common PMUs like the tool PMU. By having tool events be json standard PMU attribute configuration, descriptions, etc. can be used and these routines are already optimized for things like binary searching. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20241002032016.333748-9-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
- Loading branch information
Ian Rogers
authored and
Namhyung Kim
committed
Oct 11, 2024
1 parent
0690572
commit c9b121b
Showing
3 changed files
with
215 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[ | ||
{ | ||
"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" | ||
} | ||
] |
Oops, something went wrong.