mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
perf tools: Add stat round user level event
Adding the stat round event to be stored after each stat interval round, so that report tools (report/script) gets notified and process interval data. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Kan Liang <kan.liang@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1445784728-21732-18-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0ea0e35586
commit
2d8f0f18a5
4 changed files with 37 additions and 1 deletions
|
@ -230,6 +230,7 @@ enum perf_user_event_type { /* above any possible kernel type */
|
|||
PERF_RECORD_CPU_MAP = 74,
|
||||
PERF_RECORD_STAT_CONFIG = 75,
|
||||
PERF_RECORD_STAT = 76,
|
||||
PERF_RECORD_STAT_ROUND = 77,
|
||||
PERF_RECORD_HEADER_MAX
|
||||
};
|
||||
|
||||
|
@ -432,6 +433,17 @@ struct stat_event {
|
|||
};
|
||||
};
|
||||
|
||||
enum {
|
||||
PERF_STAT_ROUND_TYPE__INTERVAL = 0,
|
||||
PERF_STAT_ROUND_TYPE__FINAL = 1,
|
||||
};
|
||||
|
||||
struct stat_round_event {
|
||||
struct perf_event_header header;
|
||||
u64 type;
|
||||
u64 time;
|
||||
};
|
||||
|
||||
union perf_event {
|
||||
struct perf_event_header header;
|
||||
struct mmap_event mmap;
|
||||
|
@ -458,6 +470,7 @@ union perf_event {
|
|||
struct cpu_map_event cpu_map;
|
||||
struct stat_config_event stat_config;
|
||||
struct stat_event stat;
|
||||
struct stat_round_event stat_round;
|
||||
};
|
||||
|
||||
void perf_event__print_totals(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue