mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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 <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-xpzvuu9d0gei9jl9bkzgobln@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: LGPL-2.1
|
||||||
// Copyright (C) 2018, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
|
// Copyright (C) 2018, 2019 Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
|
||||||
//
|
//
|
||||||
#ifndef HAVE_GET_CURRENT_DIR_NAME
|
#ifndef HAVE_GET_CURRENT_DIR_NAME
|
||||||
#include "util.h"
|
#include "get_current_dir_name.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
8
tools/perf/util/get_current_dir_name.h
Normal file
8
tools/perf/util/get_current_dir_name.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
// SPDX-License-Identifier: LGPL-2.1
|
||||||
|
// Copyright (C) 2018, 2019 Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
|
||||||
|
//
|
||||||
|
#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
|
@@ -7,6 +7,7 @@
|
|||||||
#include "namespaces.h"
|
#include "namespaces.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
|
#include "get_current_dir_name.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@@ -59,10 +59,6 @@ int fetch_kernel_version(unsigned int *puint,
|
|||||||
|
|
||||||
const char *perf_tip(const char *dirpath);
|
const char *perf_tip(const char *dirpath);
|
||||||
|
|
||||||
#ifndef HAVE_GET_CURRENT_DIR_NAME
|
|
||||||
char *get_current_dir_name(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_SCHED_GETCPU_SUPPORT
|
#ifndef HAVE_SCHED_GETCPU_SUPPORT
|
||||||
int sched_getcpu(void);
|
int sched_getcpu(void);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user