aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 10:02:00 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 13:25:20 -0500
commit8d50e5b4171a69cf48ca94a1e7c14033d0b4771d (patch)
tree6ebf659f92f0770917c7f47c24449ebfe048ce61 /tools/perf/util/event.h
parent93fc64f14472ae24fd640bf3834a178f59142842 (diff)
perf tools: Rename 'struct sample_data' to 'struct perf_sample'
Making the namespace more uniform. 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: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index d79e4edd82f9..84fd71ffd619 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -61,7 +61,7 @@ struct sample_event {
61 u64 array[]; 61 u64 array[];
62}; 62};
63 63
64struct sample_data { 64struct perf_sample {
65 u64 ip; 65 u64 ip;
66 u32 pid, tid; 66 u32 pid, tid;
67 u64 time; 67 u64 time;
@@ -138,7 +138,7 @@ struct perf_session;
138 138
139typedef int (*event__handler_synth_t)(event_t *event, 139typedef int (*event__handler_synth_t)(event_t *event,
140 struct perf_session *session); 140 struct perf_session *session);
141typedef int (*event__handler_t)(event_t *event, struct sample_data *sample, 141typedef int (*event__handler_t)(event_t *event, struct perf_sample *sample,
142 struct perf_session *session); 142 struct perf_session *session);
143 143
144int event__synthesize_thread(pid_t pid, event__handler_t process, 144int event__synthesize_thread(pid_t pid, event__handler_t process,
@@ -154,25 +154,25 @@ int event__synthesize_modules(event__handler_t process,
154 struct perf_session *session, 154 struct perf_session *session,
155 struct machine *machine); 155 struct machine *machine);
156 156
157int event__process_comm(event_t *self, struct sample_data *sample, 157int event__process_comm(event_t *event, struct perf_sample *sample,
158 struct perf_session *session); 158 struct perf_session *session);
159int event__process_lost(event_t *self, struct sample_data *sample, 159int event__process_lost(event_t *event, struct perf_sample *sample,
160 struct perf_session *session); 160 struct perf_session *session);
161int event__process_mmap(event_t *self, struct sample_data *sample, 161int event__process_mmap(event_t *event, struct perf_sample *sample,
162 struct perf_session *session); 162 struct perf_session *session);
163int event__process_task(event_t *self, struct sample_data *sample, 163int event__process_task(event_t *event, struct perf_sample *sample,
164 struct perf_session *session); 164 struct perf_session *session);
165int event__process(event_t *event, struct sample_data *sample, 165int event__process(event_t *event, struct perf_sample *sample,
166 struct perf_session *session); 166 struct perf_session *session);
167 167
168struct addr_location; 168struct addr_location;
169int event__preprocess_sample(const event_t *self, struct perf_session *session, 169int event__preprocess_sample(const event_t *self, struct perf_session *session,
170 struct addr_location *al, struct sample_data *data, 170 struct addr_location *al, struct perf_sample *sample,
171 symbol_filter_t filter); 171 symbol_filter_t filter);
172 172
173const char *event__get_event_name(unsigned int id); 173const char *event__get_event_name(unsigned int id);
174 174
175int event__parse_sample(const event_t *event, u64 type, bool sample_id_all, 175int event__parse_sample(const event_t *event, u64 type, bool sample_id_all,
176 struct sample_data *sample); 176 struct perf_sample *sample);
177 177
178#endif /* __PERF_RECORD_H */ 178#endif /* __PERF_RECORD_H */