diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-01-04 09:27:03 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-01-06 12:42:52 -0500 |
commit | 12c142781ec076fad617e7cd9f83c8618d909619 (patch) | |
tree | d1095dbe28f51fd66766711f3fa328bfdee0c7df /tools/perf/util/hist.h | |
parent | 13d3ee5402970216291d2c514c2ba33ef8a0e8c1 (diff) |
perf hists: Stop using 'self' for struct hist_entry
Stop using this python/OOP convention, doesn't really helps. Will do
more from time to time till we get it cleaned up in all of /perf.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-me4dyj6s5snh7jr8wb9gzt82@git.kernel.org
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 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index ff6f9d56ea41..f55f0a8d1f81 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -66,11 +66,8 @@ struct hists { | |||
66 | struct hist_entry *__hists__add_entry(struct hists *self, | 66 | struct hist_entry *__hists__add_entry(struct hists *self, |
67 | struct addr_location *al, | 67 | struct addr_location *al, |
68 | struct symbol *parent, u64 period); | 68 | struct symbol *parent, u64 period); |
69 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); | 69 | int64_t hist_entry__cmp(struct hist_entry *left, struct hist_entry *right); |
70 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); | 70 | int64_t hist_entry__collapse(struct hist_entry *left, struct hist_entry *right); |
71 | int hist_entry__fprintf(struct hist_entry *he, size_t size, struct hists *hists, | ||
72 | struct hists *pair_hists, bool show_displacement, | ||
73 | long displacement, FILE *fp, u64 session_total); | ||
74 | int hist_entry__snprintf(struct hist_entry *self, char *bf, size_t size, | 71 | int hist_entry__snprintf(struct hist_entry *self, char *bf, size_t size, |
75 | struct hists *hists); | 72 | struct hists *hists); |
76 | void hist_entry__free(struct hist_entry *); | 73 | void hist_entry__free(struct hist_entry *); |