diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-11 12:18:47 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-11 12:18:47 -0400 |
commit | 4218e6734197f3842fc9b6362f12973918d913aa (patch) | |
tree | bb825a668a275b0b49eb3abf576b74db4f54b66d /tools | |
parent | 1d037ca1648b775277fc96401ec2aa233724906c (diff) |
perf sched: Remove unused thread parameter
From the tracepoint handling routines.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
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-mcqd9mv34z6he0wqiz4a3mh9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-sched.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 82e8ec2c43b7..af11b1aa1bd7 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1372,8 +1372,7 @@ static struct trace_sched_handler *trace_handler; | |||
1372 | static int process_sched_wakeup_event(struct perf_tool *tool __maybe_unused, | 1372 | static int process_sched_wakeup_event(struct perf_tool *tool __maybe_unused, |
1373 | struct event_format *event, | 1373 | struct event_format *event, |
1374 | struct perf_sample *sample, | 1374 | struct perf_sample *sample, |
1375 | struct machine *machine, | 1375 | struct machine *machine) |
1376 | struct thread *thread __maybe_unused) | ||
1377 | { | 1376 | { |
1378 | void *data = sample->raw_data; | 1377 | void *data = sample->raw_data; |
1379 | struct trace_wakeup_event wakeup_event; | 1378 | struct trace_wakeup_event wakeup_event; |
@@ -1489,8 +1488,7 @@ map_switch_event(struct trace_switch_event *switch_event, | |||
1489 | static int process_sched_switch_event(struct perf_tool *tool __maybe_unused, | 1488 | static int process_sched_switch_event(struct perf_tool *tool __maybe_unused, |
1490 | struct event_format *event, | 1489 | struct event_format *event, |
1491 | struct perf_sample *sample, | 1490 | struct perf_sample *sample, |
1492 | struct machine *machine, | 1491 | struct machine *machine) |
1493 | struct thread *thread __maybe_unused) | ||
1494 | { | 1492 | { |
1495 | int this_cpu = sample->cpu, err = 0; | 1493 | int this_cpu = sample->cpu, err = 0; |
1496 | void *data = sample->raw_data; | 1494 | void *data = sample->raw_data; |
@@ -1524,8 +1522,7 @@ static int process_sched_switch_event(struct perf_tool *tool __maybe_unused, | |||
1524 | static int process_sched_runtime_event(struct perf_tool *tool __maybe_unused, | 1522 | static int process_sched_runtime_event(struct perf_tool *tool __maybe_unused, |
1525 | struct event_format *event, | 1523 | struct event_format *event, |
1526 | struct perf_sample *sample, | 1524 | struct perf_sample *sample, |
1527 | struct machine *machine, | 1525 | struct machine *machine) |
1528 | struct thread *thread __maybe_unused) | ||
1529 | { | 1526 | { |
1530 | void *data = sample->raw_data; | 1527 | void *data = sample->raw_data; |
1531 | struct trace_runtime_event runtime_event; | 1528 | struct trace_runtime_event runtime_event; |
@@ -1545,8 +1542,7 @@ static int process_sched_runtime_event(struct perf_tool *tool __maybe_unused, | |||
1545 | static int process_sched_fork_event(struct perf_tool *tool __maybe_unused, | 1542 | static int process_sched_fork_event(struct perf_tool *tool __maybe_unused, |
1546 | struct event_format *event, | 1543 | struct event_format *event, |
1547 | struct perf_sample *sample, | 1544 | struct perf_sample *sample, |
1548 | struct machine *machine __maybe_unused, | 1545 | struct machine *machine __maybe_unused) |
1549 | struct thread *thread __maybe_unused) | ||
1550 | { | 1546 | { |
1551 | void *data = sample->raw_data; | 1547 | void *data = sample->raw_data; |
1552 | struct trace_fork_event fork_event; | 1548 | struct trace_fork_event fork_event; |
@@ -1568,8 +1564,7 @@ static int process_sched_fork_event(struct perf_tool *tool __maybe_unused, | |||
1568 | static int process_sched_exit_event(struct perf_tool *tool __maybe_unused, | 1564 | static int process_sched_exit_event(struct perf_tool *tool __maybe_unused, |
1569 | struct event_format *event, | 1565 | struct event_format *event, |
1570 | struct perf_sample *sample __maybe_unused, | 1566 | struct perf_sample *sample __maybe_unused, |
1571 | struct machine *machine __maybe_unused, | 1567 | struct machine *machine __maybe_unused) |
1572 | struct thread *thread __maybe_unused) | ||
1573 | { | 1568 | { |
1574 | if (verbose) | 1569 | if (verbose) |
1575 | printf("sched_exit event %p\n", event); | 1570 | printf("sched_exit event %p\n", event); |
@@ -1580,8 +1575,7 @@ static int process_sched_exit_event(struct perf_tool *tool __maybe_unused, | |||
1580 | static int process_sched_migrate_task_event(struct perf_tool *tool __maybe_unused, | 1575 | static int process_sched_migrate_task_event(struct perf_tool *tool __maybe_unused, |
1581 | struct event_format *event, | 1576 | struct event_format *event, |
1582 | struct perf_sample *sample, | 1577 | struct perf_sample *sample, |
1583 | struct machine *machine, | 1578 | struct machine *machine) |
1584 | struct thread *thread __maybe_unused) | ||
1585 | { | 1579 | { |
1586 | void *data = sample->raw_data; | 1580 | void *data = sample->raw_data; |
1587 | struct trace_migrate_task_event migrate_task_event; | 1581 | struct trace_migrate_task_event migrate_task_event; |
@@ -1603,8 +1597,7 @@ static int process_sched_migrate_task_event(struct perf_tool *tool __maybe_unuse | |||
1603 | typedef int (*tracepoint_handler)(struct perf_tool *tool, | 1597 | typedef int (*tracepoint_handler)(struct perf_tool *tool, |
1604 | struct event_format *tp_format, | 1598 | struct event_format *tp_format, |
1605 | struct perf_sample *sample, | 1599 | struct perf_sample *sample, |
1606 | struct machine *machine, | 1600 | struct machine *machine); |
1607 | struct thread *thread); | ||
1608 | 1601 | ||
1609 | static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_unused, | 1602 | static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_unused, |
1610 | union perf_event *event __maybe_unused, | 1603 | union perf_event *event __maybe_unused, |
@@ -1626,7 +1619,7 @@ static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_ | |||
1626 | 1619 | ||
1627 | if (evsel->handler.func != NULL) { | 1620 | if (evsel->handler.func != NULL) { |
1628 | tracepoint_handler f = evsel->handler.func; | 1621 | tracepoint_handler f = evsel->handler.func; |
1629 | err = f(tool, evsel->tp_format, sample, machine, thread); | 1622 | err = f(tool, evsel->tp_format, sample, machine); |
1630 | } | 1623 | } |
1631 | 1624 | ||
1632 | return err; | 1625 | return err; |