diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-10-05 10:44:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-05 13:13:36 -0400 |
commit | ed279da2fc9774b4c0dc9fd513fa89a11cae3f56 (patch) | |
tree | cf7f38620d7e7ede1976b999ae613c35db959fc8 /tools/perf/util/hist.h | |
parent | 61949b212e7f6f8f31891236ba24033f9b7af8c3 (diff) |
perf diff: Add -F option to display formula for computation
Adding -F option to display the formula for specified computation.
This is mainly to facilitate debugging, but can be useful anyway.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1349448287-18919-7-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 5604791e5ede..c751624d4153 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -145,6 +145,7 @@ enum { | |||
145 | PERF_HPP__RATIO, | 145 | PERF_HPP__RATIO, |
146 | PERF_HPP__WEIGHTED_DIFF, | 146 | PERF_HPP__WEIGHTED_DIFF, |
147 | PERF_HPP__DISPL, | 147 | PERF_HPP__DISPL, |
148 | PERF_HPP__FORMULA, | ||
148 | 149 | ||
149 | PERF_HPP__MAX_INDEX | 150 | PERF_HPP__MAX_INDEX |
150 | }; | 151 | }; |
@@ -210,4 +211,5 @@ unsigned int hists__sort_list_width(struct hists *self); | |||
210 | double perf_diff__compute_delta(struct hist_entry *he); | 211 | double perf_diff__compute_delta(struct hist_entry *he); |
211 | double perf_diff__compute_ratio(struct hist_entry *he); | 212 | double perf_diff__compute_ratio(struct hist_entry *he); |
212 | s64 perf_diff__compute_wdiff(struct hist_entry *he); | 213 | s64 perf_diff__compute_wdiff(struct hist_entry *he); |
214 | int perf_diff__formula(char *buf, size_t size, struct hist_entry *he); | ||
213 | #endif /* __PERF_HIST_H */ | 215 | #endif /* __PERF_HIST_H */ |