perf buildid-cache: Do not require purge files to also be in the file system
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:31:52 +0000 (12:31 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:07:58 +0000 (11:07 -0300)
commitc1fd5b7d8aed8104d5189c3d55545d67f9149bb6
treea7af4a920efb3bd991e0cdee34d79198e3bef04f
parent15fe03621d9df90c23de7a2099b692e2da344cde
perf buildid-cache: Do not require purge files to also be in the file system

realname() returns NULL if the file is not in the file system, but we can
still remove it from the build ID cache in that case, so continue and
attempt the purge with the name provided.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: kvm@vger.kernel.org
Link: https://lore.kernel.org/r/20220711093218.10967-10-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/build-id.c