mirror of https://gitee.com/openkylin/linux.git
perf namespaces: Move the conditional setns() prototype to namespaces.h
Out of util.h, to reduce its scope, and since we have a namespaces.h header, much better to have it there, where it is related to. 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-zlu81bbtccuzygh7m8nmgybc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
215a0d305c
commit
245aec7f7f
|
@ -13,6 +13,10 @@
|
||||||
#include <linux/refcount.h>
|
#include <linux/refcount.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_SETNS_SUPPORT
|
||||||
|
int setns(int fd, int nstype);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct namespaces_event;
|
struct namespaces_event;
|
||||||
|
|
||||||
struct namespaces {
|
struct namespaces {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#include "util.h"
|
// SPDX-License-Identifier: LGPL-2.1
|
||||||
|
|
||||||
|
#include "namespaces.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
|
||||||
|
|
|
@ -67,10 +67,6 @@ char *get_current_dir_name(void);
|
||||||
int sched_getcpu(void);
|
int sched_getcpu(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_SETNS_SUPPORT
|
|
||||||
int setns(int fd, int nstype);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern bool perf_singlethreaded;
|
extern bool perf_singlethreaded;
|
||||||
|
|
||||||
void perf_set_singlethreaded(void);
|
void perf_set_singlethreaded(void);
|
||||||
|
|
Loading…
Reference in New Issue