aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
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.c
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.c')
-rw-r--r--tools/perf/util/event.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index b9d4ac87f9f7..5c886fbd50ce 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -34,7 +34,7 @@ const char *event__get_event_name(unsigned int id)
34 return event__name[id]; 34 return event__name[id];
35} 35}
36 36
37static struct sample_data synth_sample = { 37static struct perf_sample synth_sample = {
38 .pid = -1, 38 .pid = -1,
39 .tid = -1, 39 .tid = -1,
40 .time = -1, 40 .time = -1,
@@ -440,7 +440,7 @@ static int thread__set_comm_adjust(struct thread *self, const char *comm,
440 return 0; 440 return 0;
441} 441}
442 442
443int event__process_comm(event_t *self, struct sample_data *sample __used, 443int event__process_comm(event_t *self, struct perf_sample *sample __used,
444 struct perf_session *session) 444 struct perf_session *session)
445{ 445{
446 struct thread *thread = perf_session__findnew(session, self->comm.tid); 446 struct thread *thread = perf_session__findnew(session, self->comm.tid);
@@ -456,7 +456,7 @@ int event__process_comm(event_t *self, struct sample_data *sample __used,
456 return 0; 456 return 0;
457} 457}
458 458
459int event__process_lost(event_t *self, struct sample_data *sample __used, 459int event__process_lost(event_t *self, struct perf_sample *sample __used,
460 struct perf_session *session) 460 struct perf_session *session)
461{ 461{
462 dump_printf(": id:%" PRIu64 ": lost:%" PRIu64 "\n", 462 dump_printf(": id:%" PRIu64 ": lost:%" PRIu64 "\n",
@@ -567,7 +567,7 @@ out_problem:
567 return -1; 567 return -1;
568} 568}
569 569
570int event__process_mmap(event_t *self, struct sample_data *sample __used, 570int event__process_mmap(event_t *self, struct perf_sample *sample __used,
571 struct perf_session *session) 571 struct perf_session *session)
572{ 572{
573 struct machine *machine; 573 struct machine *machine;
@@ -609,7 +609,7 @@ out_problem:
609 return 0; 609 return 0;
610} 610}
611 611
612int event__process_task(event_t *self, struct sample_data *sample __used, 612int event__process_task(event_t *self, struct perf_sample *sample __used,
613 struct perf_session *session) 613 struct perf_session *session)
614{ 614{
615 struct thread *thread = perf_session__findnew(session, self->fork.tid); 615 struct thread *thread = perf_session__findnew(session, self->fork.tid);
@@ -632,7 +632,7 @@ int event__process_task(event_t *self, struct sample_data *sample __used,
632 return 0; 632 return 0;
633} 633}
634 634
635int event__process(event_t *event, struct sample_data *sample, 635int event__process(event_t *event, struct perf_sample *sample,
636 struct perf_session *session) 636 struct perf_session *session)
637{ 637{
638 switch (event->header.type) { 638 switch (event->header.type) {
@@ -757,7 +757,7 @@ static void dso__calc_col_width(struct dso *self, struct hists *hists)
757} 757}
758 758
759int event__preprocess_sample(const event_t *self, struct perf_session *session, 759int event__preprocess_sample(const event_t *self, struct perf_session *session,
760 struct addr_location *al, struct sample_data *data, 760 struct addr_location *al, struct perf_sample *sample,
761 symbol_filter_t filter) 761 symbol_filter_t filter)
762{ 762{
763 u8 cpumode = self->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; 763 u8 cpumode = self->header.misc & PERF_RECORD_MISC_CPUMODE_MASK;
@@ -788,7 +788,7 @@ int event__preprocess_sample(const event_t *self, struct perf_session *session,
788 al->map ? al->map->dso->long_name : 788 al->map ? al->map->dso->long_name :
789 al->level == 'H' ? "[hypervisor]" : "<not found>"); 789 al->level == 'H' ? "[hypervisor]" : "<not found>");
790 al->sym = NULL; 790 al->sym = NULL;
791 al->cpu = data->cpu; 791 al->cpu = sample->cpu;
792 792
793 if (al->map) { 793 if (al->map) {
794 if (symbol_conf.dso_list && 794 if (symbol_conf.dso_list &&