| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 3 | | - * it under the terms of the GNU General Public License, version 2, as |
|---|
| 4 | | - * published by the Free Software Foundation. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2017 Hari Bathini, IBM Corporation |
|---|
| 7 | 5 | */ |
|---|
| .. | .. |
|---|
| 15 | 13 | #include <linux/refcount.h> |
|---|
| 16 | 14 | #include <linux/types.h> |
|---|
| 17 | 15 | |
|---|
| 18 | | -struct namespaces_event; |
|---|
| 16 | +#ifndef HAVE_SETNS_SUPPORT |
|---|
| 17 | +int setns(int fd, int nstype); |
|---|
| 18 | +#endif |
|---|
| 19 | + |
|---|
| 20 | +struct perf_record_namespaces; |
|---|
| 19 | 21 | |
|---|
| 20 | 22 | struct namespaces { |
|---|
| 21 | 23 | struct list_head list; |
|---|
| .. | .. |
|---|
| 23 | 25 | struct perf_ns_link_info link_info[]; |
|---|
| 24 | 26 | }; |
|---|
| 25 | 27 | |
|---|
| 26 | | -struct namespaces *namespaces__new(struct namespaces_event *event); |
|---|
| 28 | +struct namespaces *namespaces__new(struct perf_record_namespaces *event); |
|---|
| 27 | 29 | void namespaces__free(struct namespaces *namespaces); |
|---|
| 28 | 30 | |
|---|
| 29 | 31 | struct nsinfo { |
|---|
| .. | .. |
|---|
| 64 | 66 | |
|---|
| 65 | 67 | #define nsinfo__zput(nsi) __nsinfo__zput(&nsi) |
|---|
| 66 | 68 | |
|---|
| 69 | +const char *perf_ns__name(unsigned int id); |
|---|
| 70 | + |
|---|
| 67 | 71 | #endif /* __PERF_NAMESPACES_H */ |
|---|