diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2015-04-09 11:53:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-04-29 09:37:50 -0400 |
commit | a16ac0233ea1da8af3c2046a67c2527b4a452166 (patch) | |
tree | 0d0c1d67c02f0278bf25caa8f1beb936f9eaed3f /tools/perf/util/tool.h | |
parent | 718c602d67aac04a48cd8e444e778cc3d5d9027f (diff) |
perf tools: Add user events for AUX area tracing
Add two user events for AUX area tracing.
PERF_RECORD_AUXTRACE_INFO contains metadata, consisting primarily the
type of the AUX area tracing data plus some amount of
architecture-specific information. There should be only one
PERF_RECORD_AUXTRACE_INFO event.
PERF_RECORD_AUXTRACE identifies AUX area tracing data copied from the
mmapped AUX area tracing region. The actual data is not part of the
event but immediately follows it.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1428594864-29309-4-git-send-email-adrian.hunter@intel.com
[ s/MIN/min/g and use cast to fix up wrt -Werror=sign-compare till we adopt min_t() ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/tool.h')
-rw-r--r-- | tools/perf/util/tool.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/perf/util/tool.h b/tools/perf/util/tool.h index 51d9e56c0f84..0146f8ef5cc3 100644 --- a/tools/perf/util/tool.h +++ b/tools/perf/util/tool.h | |||
@@ -3,6 +3,8 @@ | |||
3 | 3 | ||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | 5 | ||
6 | #include <linux/types.h> | ||
7 | |||
6 | struct perf_session; | 8 | struct perf_session; |
7 | union perf_event; | 9 | union perf_event; |
8 | struct perf_evlist; | 10 | struct perf_evlist; |
@@ -29,6 +31,9 @@ typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event, | |||
29 | typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event, | 31 | typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event, |
30 | struct ordered_events *oe); | 32 | struct ordered_events *oe); |
31 | 33 | ||
34 | typedef s64 (*event_op3)(struct perf_tool *tool, union perf_event *event, | ||
35 | struct perf_session *session); | ||
36 | |||
32 | struct perf_tool { | 37 | struct perf_tool { |
33 | event_sample sample, | 38 | event_sample sample, |
34 | read; | 39 | read; |
@@ -44,7 +49,9 @@ struct perf_tool { | |||
44 | event_op2 tracing_data; | 49 | event_op2 tracing_data; |
45 | event_oe finished_round; | 50 | event_oe finished_round; |
46 | event_op2 build_id, | 51 | event_op2 build_id, |
47 | id_index; | 52 | id_index, |
53 | auxtrace_info; | ||
54 | event_op3 auxtrace; | ||
48 | bool ordered_events; | 55 | bool ordered_events; |
49 | bool ordering_requires_timestamps; | 56 | bool ordering_requires_timestamps; |
50 | }; | 57 | }; |