Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7fff6b5 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf scripting python: Shorten function signatures

Removing unused parameters.

Cc: Adrian Hunter <adrian.hunter@intel.com>
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@kernel.org>
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-fspmnjadohrik8uvhytyu8lp@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3184c47c
Loading
Loading
Loading
Loading
+9 −17
Original line number Diff line number Diff line
@@ -231,11 +231,8 @@ static inline struct event_format *find_cache_event(struct perf_evsel *evsel)
	return event;
}

static void python_process_tracepoint(union perf_event *perf_event
				      __maybe_unused,
				 struct perf_sample *sample,
static void python_process_tracepoint(struct perf_sample *sample,
				      struct perf_evsel *evsel,
				 struct machine *machine __maybe_unused,
				      struct thread *thread,
				      struct addr_location *al)
{
@@ -351,11 +348,8 @@ static void python_process_tracepoint(union perf_event *perf_event
	Py_DECREF(t);
}

static void python_process_general_event(union perf_event *perf_event
					 __maybe_unused,
					 struct perf_sample *sample,
static void python_process_general_event(struct perf_sample *sample,
					 struct perf_evsel *evsel,
					 struct machine *machine __maybe_unused,
					 struct thread *thread,
					 struct addr_location *al)
{
@@ -411,22 +405,20 @@ static void python_process_general_event(union perf_event *perf_event
	Py_DECREF(t);
}

static void python_process_event(union perf_event *perf_event,
static void python_process_event(union perf_event *event __maybe_unused,
				 struct perf_sample *sample,
				 struct perf_evsel *evsel,
				 struct machine *machine,
				 struct machine *machine __maybe_unused,
				 struct thread *thread,
				 struct addr_location *al)
{
	switch (evsel->attr.type) {
	case PERF_TYPE_TRACEPOINT:
		python_process_tracepoint(perf_event, sample, evsel,
					  machine, thread, al);
		python_process_tracepoint(sample, evsel, thread, al);
		break;
	/* Reserve for future process_hw/sw/raw APIs */
	default:
		python_process_general_event(perf_event, sample, evsel,
					     machine, thread, al);
		python_process_general_event(sample, evsel, thread, al);
	}
}