diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2019-07-05 17:16:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-07-09 13:13:26 +0000 |
| commit | e5653eb82ddc71ad8ffcbb3c74dd6f0c0230ab4c (patch) | |
| tree | 9620a795fa21bc14f3f1fcb311f8ddee98b9bff8 /tools/perf/util/get_current_dir_name.h | |
| parent | perf namespaces: Move the conditional setns() prototype to namespaces.h (diff) | |
| download | kernel-e5653eb82ddc71ad8ffcbb3c74dd6f0c0230ab4c.tar.gz kernel-e5653eb82ddc71ad8ffcbb3c74dd6f0c0230ab4c.zip | |
perf tools: Move get_current_dir_name() cond prototype out of util.h
And in a separate header, so that we erode util.h a bit more.
Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/get_current_dir_name.h')
| -rw-r--r-- | tools/perf/util/get_current_dir_name.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/get_current_dir_name.h b/tools/perf/util/get_current_dir_name.h new file mode 100644 index 000000000000..69f7d5537d32 --- /dev/null +++ b/tools/perf/util/get_current_dir_name.h @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1 +// Copyright (C) 2018, 2019 Red Hat Inc, Arnaldo Carvalho de Melo <[email protected]> +// +#ifndef __PERF_GET_CURRENT_DIR_NAME_H +#ifndef HAVE_GET_CURRENT_DIR_NAME +char *get_current_dir_name(void); +#endif // HAVE_GET_CURRENT_DIR_NAME +#endif // __PERF_GET_CURRENT_DIR_NAME_H |
