xref: /openbmc/linux/tools/perf/util/namespaces.h (revision d2c43ff1)
1 /*
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  *
6  * Copyright (C) 2017 Hari Bathini, IBM Corporation
7  */
8 
9 #ifndef __PERF_NAMESPACES_H
10 #define __PERF_NAMESPACES_H
11 
12 #include "../perf.h"
13 #include <linux/list.h>
14 
15 struct namespaces_event;
16 
17 struct namespaces {
18 	struct list_head list;
19 	u64 end_time;
20 	struct perf_ns_link_info link_info[];
21 };
22 
23 struct namespaces *namespaces__new(struct namespaces_event *event);
24 void namespaces__free(struct namespaces *namespaces);
25 
26 #endif  /* __PERF_NAMESPACES_H */
27