diff options
author | Andrew Vagin <avagin@openvz.org> | 2011-11-28 04:03:31 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-12-12 05:44:00 -0500 |
commit | 74eec26facadbe6dbc0621bc862892c915c4534f (patch) | |
tree | 65dfed706164778235d8891843d8e0245c9cd3b3 /tools/perf/util/event.h | |
parent | 317df650c588bb9091b1fa0b5d726fe485aad88e (diff) |
perf tools: Add ability to synthesize event according to a sample
It's the counterpart of perf_session__parse_sample.
v2: fixed mistakes found by David Ahern.
v3: s/data/sample/
s/perf_event__change_sample/perf_event__synthesize_sample
Reviewed-by: David Ahern <dsahern@gmail.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: devel@openvz.org
Link: http://lkml.kernel.org/r/1323266161-394927-3-git-send-email-avagin@openvz.org
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 0d80201ce844..cbdeaad9c5e5 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -199,6 +199,9 @@ const char *perf_event__name(unsigned int id); | |||
199 | int perf_event__parse_sample(const union perf_event *event, u64 type, | 199 | int perf_event__parse_sample(const union perf_event *event, u64 type, |
200 | int sample_size, bool sample_id_all, | 200 | int sample_size, bool sample_id_all, |
201 | struct perf_sample *sample, bool swapped); | 201 | struct perf_sample *sample, bool swapped); |
202 | int perf_event__synthesize_sample(union perf_event *event, u64 type, | ||
203 | const struct perf_sample *sample, | ||
204 | bool swapped); | ||
202 | 205 | ||
203 | size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp); | 206 | size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp); |
204 | size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp); | 207 | size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp); |