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

perf map: Shorten map_groups__find() signature

Removing the map_type, that is going away.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-18iiiw25r75xn7zlppjldk48@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent d05b861e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ static int sample_ustack(struct perf_sample *sample,

	sp = (unsigned long) regs[PERF_REG_ARM_SP];

	map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	map = __map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	if (!map) {
		pr_debug("failed to get stack map\n");
		free(buf);
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ static int sample_ustack(struct perf_sample *sample,

	sp = (unsigned long) regs[PERF_REG_ARM64_SP];

	map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	map = __map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	if (!map) {
		pr_debug("failed to get stack map\n");
		free(buf);
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ static int sample_ustack(struct perf_sample *sample,

	sp = (unsigned long) regs[PERF_REG_POWERPC_R1];

	map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	map = __map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	if (!map) {
		pr_debug("failed to get stack map\n");
		free(buf);
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ static int sample_ustack(struct perf_sample *sample,

	sp = (unsigned long) regs[PERF_REG_X86_SP];

	map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	map = __map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp);
	if (!map) {
		pr_debug("failed to get stack map\n");
		free(buf);
+1 −2
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ int test__vmlinux_matches_kallsyms(struct test *test __maybe_unused, int subtest
	struct symbol *sym;
	struct map *kallsyms_map, *vmlinux_map, *map;
	struct machine kallsyms, vmlinux;
	enum map_type type = MAP__FUNCTION;
	struct maps *maps = machine__kernel_maps(&vmlinux);
	u64 mem_start, mem_end;
	bool header_printed;
@@ -205,7 +204,7 @@ next_pair:
		mem_start = vmlinux_map->unmap_ip(vmlinux_map, map->start);
		mem_end = vmlinux_map->unmap_ip(vmlinux_map, map->end);

		pair = map_groups__find(&kallsyms.kmaps, type, mem_start);
		pair = map_groups__find(&kallsyms.kmaps, mem_start);
		if (pair == NULL || pair->priv)
			continue;

Loading