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

Revert "perf map: Fix dso->nsinfo refcounting"



This makes 'perf top' abort in some cases, and the right fix will
involve surgery that is too much to do at this stage, so revert for now
and fix it in the next merge window.

This reverts commit 2d6b74ba.

Cc: Riccardo Mancini <rickyman7@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c07d5c92
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -192,8 +192,6 @@ struct map *map__new(struct machine *machine, u64 start, u64 len,
			if (!(prot & PROT_EXEC))
				dso__set_loaded(dso);
		}

		nsinfo__put(dso->nsinfo);
		dso->nsinfo = nsi;

		if (build_id__is_defined(bid))