perf inject: Remove unused parameter
The 'machine' parameter is unused in 'perf_event__repipe_synth()' and some callers pass NULL anyway. So remove it. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> 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/r/1372944040-32690-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9d58d2f66c
commit
63c2c9f8f2
|
@ -38,8 +38,7 @@ struct event_entry {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int perf_event__repipe_synth(struct perf_tool *tool,
|
static int perf_event__repipe_synth(struct perf_tool *tool,
|
||||||
union perf_event *event,
|
union perf_event *event)
|
||||||
struct machine *machine __maybe_unused)
|
|
||||||
{
|
{
|
||||||
struct perf_inject *inject = container_of(tool, struct perf_inject, tool);
|
struct perf_inject *inject = container_of(tool, struct perf_inject, tool);
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
@ -65,20 +64,20 @@ static int perf_event__repipe_op2_synth(struct perf_tool *tool,
|
||||||
struct perf_session *session
|
struct perf_session *session
|
||||||
__maybe_unused)
|
__maybe_unused)
|
||||||
{
|
{
|
||||||
return perf_event__repipe_synth(tool, event, NULL);
|
return perf_event__repipe_synth(tool, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int perf_event__repipe_event_type_synth(struct perf_tool *tool,
|
static int perf_event__repipe_event_type_synth(struct perf_tool *tool,
|
||||||
union perf_event *event)
|
union perf_event *event)
|
||||||
{
|
{
|
||||||
return perf_event__repipe_synth(tool, event, NULL);
|
return perf_event__repipe_synth(tool, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int perf_event__repipe_tracing_data_synth(union perf_event *event,
|
static int perf_event__repipe_tracing_data_synth(union perf_event *event,
|
||||||
struct perf_session *session
|
struct perf_session *session
|
||||||
__maybe_unused)
|
__maybe_unused)
|
||||||
{
|
{
|
||||||
return perf_event__repipe_synth(NULL, event, NULL);
|
return perf_event__repipe_synth(NULL, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int perf_event__repipe_attr(union perf_event *event,
|
static int perf_event__repipe_attr(union perf_event *event,
|
||||||
|
@ -89,15 +88,15 @@ static int perf_event__repipe_attr(union perf_event *event,
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return perf_event__repipe_synth(NULL, event, NULL);
|
return perf_event__repipe_synth(NULL, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int perf_event__repipe(struct perf_tool *tool,
|
static int perf_event__repipe(struct perf_tool *tool,
|
||||||
union perf_event *event,
|
union perf_event *event,
|
||||||
struct perf_sample *sample __maybe_unused,
|
struct perf_sample *sample __maybe_unused,
|
||||||
struct machine *machine)
|
struct machine *machine __maybe_unused)
|
||||||
{
|
{
|
||||||
return perf_event__repipe_synth(tool, event, machine);
|
return perf_event__repipe_synth(tool, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef int (*inject_handler)(struct perf_tool *tool,
|
typedef int (*inject_handler)(struct perf_tool *tool,
|
||||||
|
@ -119,7 +118,7 @@ static int perf_event__repipe_sample(struct perf_tool *tool,
|
||||||
|
|
||||||
build_id__mark_dso_hit(tool, event, sample, evsel, machine);
|
build_id__mark_dso_hit(tool, event, sample, evsel, machine);
|
||||||
|
|
||||||
return perf_event__repipe_synth(tool, event, machine);
|
return perf_event__repipe_synth(tool, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int perf_event__repipe_mmap(struct perf_tool *tool,
|
static int perf_event__repipe_mmap(struct perf_tool *tool,
|
||||||
|
@ -153,7 +152,7 @@ static int perf_event__repipe_tracing_data(union perf_event *event,
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
perf_event__repipe_synth(NULL, event, NULL);
|
perf_event__repipe_synth(NULL, event);
|
||||||
err = perf_event__process_tracing_data(event, session);
|
err = perf_event__process_tracing_data(event, session);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in New Issue