Linux 6.9-rc1
[linux-2.6-microblaze.git] / tools / perf / util / namespaces.h
index 5678292..8c0731c 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/perf_event.h>
 #include <linux/refcount.h>
 #include <linux/types.h>
+#include <internal/rc_check.h>
 
 #ifndef HAVE_SETNS_SUPPORT
 int setns(int fd, int nstype);
@@ -29,7 +30,7 @@ struct namespaces {
 struct namespaces *namespaces__new(struct perf_record_namespaces *event);
 void namespaces__free(struct namespaces *namespaces);
 
-struct nsinfo {
+DECLARE_RC_STRUCT(nsinfo) {
        pid_t                   pid;
        pid_t                   tgid;
        pid_t                   nstgid;