projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf script: Check output fields only for samples
[deliverable/linux.git]
/
tools
/
perf
/
builtin-script.c
diff --git
a/tools/perf/builtin-script.c
b/tools/perf/builtin-script.c
index 8ce1c6bbfa45cf9c98bfa47cf24714a3d4bf290f..2653c0273b89cafd523503e1b49e7b3c854c5de0 100644
(file)
--- a/
tools/perf/builtin-script.c
+++ b/
tools/perf/builtin-script.c
@@
-686,7
+686,10
@@
static int process_attr(struct perf_tool *tool, union perf_event *event,
set_print_ip_opts(&evsel->attr);
- return perf_evsel__check_attr(evsel, scr->session);
+ if (evsel->attr.sample_type)
+ err = perf_evsel__check_attr(evsel, scr->session);
+
+ return err;
}
static int process_comm_event(struct perf_tool *tool,
This page took
0.026774 seconds
and
5
git commands to generate.