diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-03-09 06:13:19 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-03-10 09:16:28 -0500 |
commit | 1c0b04d10bbe35279c50e3b36cf5b8ec2a0050d8 (patch) | |
tree | 04f52089231f0f62464a0b148eb99da23a00c91d /tools/perf/util/header.h | |
parent | a91e5431d54f5359fccb5ec2512f252eb217707e (diff) |
perf header: Stop using 'self'
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 tools/perf.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 4cc267559bb6..456661d7f10e 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -39,7 +39,7 @@ struct perf_pipe_file_header { | |||
39 | 39 | ||
40 | struct perf_header; | 40 | struct perf_header; |
41 | 41 | ||
42 | int perf_file_header__read(struct perf_file_header *self, | 42 | int perf_file_header__read(struct perf_file_header *header, |
43 | struct perf_header *ph, int fd); | 43 | struct perf_header *ph, int fd); |
44 | 44 | ||
45 | struct perf_header { | 45 | struct perf_header { |
@@ -66,12 +66,12 @@ char *perf_header__find_event(u64 id); | |||
66 | 66 | ||
67 | u64 perf_evlist__sample_type(struct perf_evlist *evlist); | 67 | u64 perf_evlist__sample_type(struct perf_evlist *evlist); |
68 | bool perf_evlist__sample_id_all(const struct perf_evlist *evlist); | 68 | bool perf_evlist__sample_id_all(const struct perf_evlist *evlist); |
69 | void perf_header__set_feat(struct perf_header *self, int feat); | 69 | void perf_header__set_feat(struct perf_header *header, int feat); |
70 | void perf_header__clear_feat(struct perf_header *self, int feat); | 70 | void perf_header__clear_feat(struct perf_header *header, int feat); |
71 | bool perf_header__has_feat(const struct perf_header *self, int feat); | 71 | bool perf_header__has_feat(const struct perf_header *header, int feat); |
72 | 72 | ||
73 | int perf_header__process_sections(struct perf_header *self, int fd, | 73 | int perf_header__process_sections(struct perf_header *header, int fd, |
74 | int (*process)(struct perf_file_section *self, | 74 | int (*process)(struct perf_file_section *section, |
75 | struct perf_header *ph, | 75 | struct perf_header *ph, |
76 | int feat, int fd)); | 76 | int feat, int fd)); |
77 | 77 | ||