projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f3e5ed
)
perf inject: Do not repipe attributes to a perf.data file
author
Adrian Hunter
<
[email protected]
>
Tue, 22 Oct 2013 07:34:09 +0000
(10:34 +0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 23 Oct 2013 13:58:03 +0000
(10:58 -0300)
perf.data files contain the attributes separately, do not put them in
the event stream as well.
Signed-off-by: Adrian Hunter <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-inject.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-inject.c
b/tools/perf/builtin-inject.c
index eb1a5941912b218b00553530b20dfc479175e730..409ceaf3b9b95b41adffe181156c33e93504023b 100644
(file)
--- a/
tools/perf/builtin-inject.c
+++ b/
tools/perf/builtin-inject.c
@@
-72,12
+72,17
@@
static int perf_event__repipe_attr(struct perf_tool *tool,
union perf_event *event,
struct perf_evlist **pevlist)
{
+ struct perf_inject *inject = container_of(tool, struct perf_inject,
+ tool);
int ret;
ret = perf_event__process_attr(tool, event, pevlist);
if (ret)
return ret;
+ if (!inject->pipe_output)
+ return 0;
+
return perf_event__repipe_synth(tool, event);
}