]> Gentwo Git Trees - linux/.git/commit
perf namespaces: Avoid get_current_dir_name dependency
authorIan Rogers <irogers@google.com>
Fri, 3 Oct 2025 17:56:12 +0000 (10:56 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Oct 2025 18:28:04 +0000 (15:28 -0300)
commit062d02a96d810d55afdc594ceeb52223d8b36b5c
tree852ef25bd9bc30cbee48e7cd733a40eb52e3fd3a
parent2836ed1748ccc567fddd51d4544a35f1e0f43136
perf namespaces: Avoid get_current_dir_name dependency

get_current_dir_name is a GNU extension not supported on, for example,
Android. There is only one use of it so let's just switch to getcwd to
avoid build and other complexity.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config
tools/perf/util/Build
tools/perf/util/get_current_dir_name.c [deleted file]
tools/perf/util/get_current_dir_name.h [deleted file]
tools/perf/util/namespaces.c