Skip to contentSkip to conversation

perf script: Stop updating hists stats, not used

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Oct 15, 2014 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  49c23f2d541ebf7ae5e9fff03301f4e7145cc979
Gitweb:     http://git.kernel.org/tip/49c23f2d541ebf7ae5e9fff03301f4e7145cc979
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 9 Oct 2014 11:45:42 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 9 Oct 2014 11:46:41 -0300

perf script: Stop updating hists stats, not used

Not used here, remove to reduce perf_evsel/hists structs interaction.

Cc Adrian Hunter <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jean Pihet <[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]>
---
 tools/perf/builtin-script.c | 1 -
 1 file changed, 1 deletion(-)
tools/perf/builtin-script.c +0 -1
index b9b9e58..6b4925f 100644
@@ -572,7 +572,6 @@ static int process_sample_event(struct perf_tool *tool __maybe_unused,
 
 	scripting_ops->process_event(event, sample, evsel, thread, &al);
 
-	evsel->hists.stats.total_period += sample->period;
 	return 0;
 }