cgroup.h (3eb66e91a25497065c5322b1268cbc3953642227) | cgroup.h (4c476d8cff48853645abc822154aaad208faebcc) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM cgroup 4 5#if !defined(_TRACE_CGROUP_H) || defined(TRACE_HEADER_MULTI_READ) 6#define _TRACE_CGROUP_H 7 8#include <linux/cgroup.h> --- 89 unchanged lines hidden (view full) --- 98 99DEFINE_EVENT(cgroup, cgroup_rename, 100 101 TP_PROTO(struct cgroup *cgrp, const char *path), 102 103 TP_ARGS(cgrp, path) 104); 105 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM cgroup 4 5#if !defined(_TRACE_CGROUP_H) || defined(TRACE_HEADER_MULTI_READ) 6#define _TRACE_CGROUP_H 7 8#include <linux/cgroup.h> --- 89 unchanged lines hidden (view full) --- 98 99DEFINE_EVENT(cgroup, cgroup_rename, 100 101 TP_PROTO(struct cgroup *cgrp, const char *path), 102 103 TP_ARGS(cgrp, path) 104); 105 |
106DEFINE_EVENT(cgroup, cgroup_freeze, 107 108 TP_PROTO(struct cgroup *cgrp, const char *path), 109 110 TP_ARGS(cgrp, path) 111); 112 113DEFINE_EVENT(cgroup, cgroup_unfreeze, 114 115 TP_PROTO(struct cgroup *cgrp, const char *path), 116 117 TP_ARGS(cgrp, path) 118); 119 |
|
106DECLARE_EVENT_CLASS(cgroup_migrate, 107 108 TP_PROTO(struct cgroup *dst_cgrp, const char *path, 109 struct task_struct *task, bool threadgroup), 110 111 TP_ARGS(dst_cgrp, path, task, threadgroup), 112 113 TP_STRUCT__entry( --- 30 unchanged lines hidden (view full) --- 144DEFINE_EVENT(cgroup_migrate, cgroup_transfer_tasks, 145 146 TP_PROTO(struct cgroup *dst_cgrp, const char *path, 147 struct task_struct *task, bool threadgroup), 148 149 TP_ARGS(dst_cgrp, path, task, threadgroup) 150); 151 | 120DECLARE_EVENT_CLASS(cgroup_migrate, 121 122 TP_PROTO(struct cgroup *dst_cgrp, const char *path, 123 struct task_struct *task, bool threadgroup), 124 125 TP_ARGS(dst_cgrp, path, task, threadgroup), 126 127 TP_STRUCT__entry( --- 30 unchanged lines hidden (view full) --- 158DEFINE_EVENT(cgroup_migrate, cgroup_transfer_tasks, 159 160 TP_PROTO(struct cgroup *dst_cgrp, const char *path, 161 struct task_struct *task, bool threadgroup), 162 163 TP_ARGS(dst_cgrp, path, task, threadgroup) 164); 165 |
166DECLARE_EVENT_CLASS(cgroup_event, 167 168 TP_PROTO(struct cgroup *cgrp, const char *path, int val), 169 170 TP_ARGS(cgrp, path, val), 171 172 TP_STRUCT__entry( 173 __field( int, root ) 174 __field( int, id ) 175 __field( int, level ) 176 __string( path, path ) 177 __field( int, val ) 178 ), 179 180 TP_fast_assign( 181 __entry->root = cgrp->root->hierarchy_id; 182 __entry->id = cgrp->id; 183 __entry->level = cgrp->level; 184 __assign_str(path, path); 185 __entry->val = val; 186 ), 187 188 TP_printk("root=%d id=%d level=%d path=%s val=%d", 189 __entry->root, __entry->id, __entry->level, __get_str(path), 190 __entry->val) 191); 192 193DEFINE_EVENT(cgroup_event, cgroup_notify_populated, 194 195 TP_PROTO(struct cgroup *cgrp, const char *path, int val), 196 197 TP_ARGS(cgrp, path, val) 198); 199 200DEFINE_EVENT(cgroup_event, cgroup_notify_frozen, 201 202 TP_PROTO(struct cgroup *cgrp, const char *path, int val), 203 204 TP_ARGS(cgrp, path, val) 205); 206 |
|
152#endif /* _TRACE_CGROUP_H */ 153 154/* This part must be outside protection */ 155#include <trace/define_trace.h> | 207#endif /* _TRACE_CGROUP_H */ 208 209/* This part must be outside protection */ 210#include <trace/define_trace.h> |