commit | b4b6d4a02fa8aa8187d426b508fb7f3b69df0dcc | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Wed Jan 02 15:54:55 2019 +0000 |
committer | Andrew Scull <ascull@google.com> | Wed Jan 02 15:54:55 2019 +0000 |
tree | fdf4498bc30cb80757eaf20b46ea866b23141a93 |
v4.19.13 snapshot.
diff --git a/tools/perf/util/setns.c b/tools/perf/util/setns.c new file mode 100644 index 0000000..ce8fc29 --- /dev/null +++ b/tools/perf/util/setns.c
@@ -0,0 +1,8 @@ +#include "util.h" +#include <unistd.h> +#include <sys/syscall.h> + +int setns(int fd, int nstype) +{ + return syscall(__NR_setns, fd, nstype); +}