aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r--tools/perf/util/event.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index f7f480503af4..8202f5ca0483 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -514,9 +514,9 @@ size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp)
514 return fprintf(fp, ": %s:%d\n", event->comm.comm, event->comm.tid); 514 return fprintf(fp, ": %s:%d\n", event->comm.comm, event->comm.tid);
515} 515}
516 516
517int perf_event__process_comm(struct perf_tool *tool __used, 517int perf_event__process_comm(struct perf_tool *tool __maybe_unused,
518 union perf_event *event, 518 union perf_event *event,
519 struct perf_sample *sample __used, 519 struct perf_sample *sample __maybe_unused,
520 struct machine *machine) 520 struct machine *machine)
521{ 521{
522 struct thread *thread = machine__findnew_thread(machine, event->comm.tid); 522 struct thread *thread = machine__findnew_thread(machine, event->comm.tid);
@@ -532,10 +532,10 @@ int perf_event__process_comm(struct perf_tool *tool __used,
532 return 0; 532 return 0;
533} 533}
534 534
535int perf_event__process_lost(struct perf_tool *tool __used, 535int perf_event__process_lost(struct perf_tool *tool __maybe_unused,
536 union perf_event *event, 536 union perf_event *event,
537 struct perf_sample *sample __used, 537 struct perf_sample *sample __maybe_unused,
538 struct machine *machine __used) 538 struct machine *machine __maybe_unused)
539{ 539{
540 dump_printf(": id:%" PRIu64 ": lost:%" PRIu64 "\n", 540 dump_printf(": id:%" PRIu64 ": lost:%" PRIu64 "\n",
541 event->lost.id, event->lost.lost); 541 event->lost.id, event->lost.lost);
@@ -555,7 +555,8 @@ static void perf_event__set_kernel_mmap_len(union perf_event *event,
555 maps[MAP__FUNCTION]->end = ~0ULL; 555 maps[MAP__FUNCTION]->end = ~0ULL;
556} 556}
557 557
558static int perf_event__process_kernel_mmap(struct perf_tool *tool __used, 558static int perf_event__process_kernel_mmap(struct perf_tool *tool
559 __maybe_unused,
559 union perf_event *event, 560 union perf_event *event,
560 struct machine *machine) 561 struct machine *machine)
561{ 562{
@@ -657,7 +658,7 @@ size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp)
657 658
658int perf_event__process_mmap(struct perf_tool *tool, 659int perf_event__process_mmap(struct perf_tool *tool,
659 union perf_event *event, 660 union perf_event *event,
660 struct perf_sample *sample __used, 661 struct perf_sample *sample __maybe_unused,
661 struct machine *machine) 662 struct machine *machine)
662{ 663{
663 struct thread *thread; 664 struct thread *thread;
@@ -701,9 +702,9 @@ size_t perf_event__fprintf_task(union perf_event *event, FILE *fp)
701 event->fork.ppid, event->fork.ptid); 702 event->fork.ppid, event->fork.ptid);
702} 703}
703 704
704int perf_event__process_task(struct perf_tool *tool __used, 705int perf_event__process_task(struct perf_tool *tool __maybe_unused,
705 union perf_event *event, 706 union perf_event *event,
706 struct perf_sample *sample __used, 707 struct perf_sample *sample __maybe_unused,
707 struct machine *machine) 708 struct machine *machine)
708{ 709{
709 struct thread *thread = machine__findnew_thread(machine, event->fork.tid); 710 struct thread *thread = machine__findnew_thread(machine, event->fork.tid);