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

Commit 334fe7a3 authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo
Browse files

perf evlist: Remove cpus and threads arguments from perf_evlist__new()



It's almost always used with NULL for both arguments.  Get rid of the
arguments from the signature and use perf_evlist__set_maps() if needed.

Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1362987798-24969-1-git-send-email-namhyung@kernel.org


[ committer note: replaced spaces with tabs in some of the affected lines ]
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b28b1307
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -964,7 +964,7 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused)
	struct perf_record *rec = &record;
	char errbuf[BUFSIZ];

	evsel_list = perf_evlist__new(NULL, NULL);
	evsel_list = perf_evlist__new();
	if (evsel_list == NULL)
		return -ENOMEM;

+1 −1
Original line number Diff line number Diff line
@@ -1336,7 +1336,7 @@ int cmd_stat(int argc, const char **argv, const char *prefix __maybe_unused)

	setlocale(LC_ALL, "");

	evsel_list = perf_evlist__new(NULL, NULL);
	evsel_list = perf_evlist__new();
	if (evsel_list == NULL)
		return -ENOMEM;

+1 −1
Original line number Diff line number Diff line
@@ -1116,7 +1116,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
		NULL
	};

	top.evlist = perf_evlist__new(NULL, NULL);
	top.evlist = perf_evlist__new();
	if (top.evlist == NULL)
		return -ENOMEM;

+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ static int trace__sched_stat_runtime(struct trace *trace, struct perf_evsel *evs

static int trace__run(struct trace *trace, int argc, const char **argv)
{
	struct perf_evlist *evlist = perf_evlist__new(NULL, NULL);
	struct perf_evlist *evlist = perf_evlist__new();
	struct perf_evsel *evsel;
	int err = -1, i;
	unsigned long before;
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ static int perf_evsel__roundtrip_cache_name_test(void)
	char name[128];
	int type, op, err = 0, ret = 0, i, idx;
	struct perf_evsel *evsel;
        struct perf_evlist *evlist = perf_evlist__new(NULL, NULL);
	struct perf_evlist *evlist = perf_evlist__new();

        if (evlist == NULL)
                return -ENOMEM;
@@ -64,7 +64,7 @@ static int __perf_evsel__name_array_test(const char *names[], int nr_names)
{
	int i, err;
	struct perf_evsel *evsel;
        struct perf_evlist *evlist = perf_evlist__new(NULL, NULL);
	struct perf_evlist *evlist = perf_evlist__new();

        if (evlist == NULL)
                return -ENOMEM;
Loading