Skip to content

Commit e14da77

Browse files
William Kucharskihtejun
authored andcommitted
cgroup: Trace event cgroup id fields should be u64
Various trace event fields that store cgroup IDs were declared as ints, but cgroup_id(() returns a u64 and the structures and associated TP_printk() calls were not updated to reflect this. Fixes: 7432103 ("cgroup: use cgrp->kn->id as the cgroup ID") Signed-off-by: William Kucharski <[email protected]> Reviewed-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent af3bf05 commit e14da77

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/trace/events/cgroup.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ DECLARE_EVENT_CLASS(cgroup,
5959

6060
TP_STRUCT__entry(
6161
__field( int, root )
62-
__field( int, id )
6362
__field( int, level )
63+
__field( u64, id )
6464
__string( path, path )
6565
),
6666

@@ -71,7 +71,7 @@ DECLARE_EVENT_CLASS(cgroup,
7171
__assign_str(path, path);
7272
),
7373

74-
TP_printk("root=%d id=%d level=%d path=%s",
74+
TP_printk("root=%d id=%llu level=%d path=%s",
7575
__entry->root, __entry->id, __entry->level, __get_str(path))
7676
);
7777

@@ -126,8 +126,8 @@ DECLARE_EVENT_CLASS(cgroup_migrate,
126126

127127
TP_STRUCT__entry(
128128
__field( int, dst_root )
129-
__field( int, dst_id )
130129
__field( int, dst_level )
130+
__field( u64, dst_id )
131131
__field( int, pid )
132132
__string( dst_path, path )
133133
__string( comm, task->comm )
@@ -142,7 +142,7 @@ DECLARE_EVENT_CLASS(cgroup_migrate,
142142
__assign_str(comm, task->comm);
143143
),
144144

145-
TP_printk("dst_root=%d dst_id=%d dst_level=%d dst_path=%s pid=%d comm=%s",
145+
TP_printk("dst_root=%d dst_id=%llu dst_level=%d dst_path=%s pid=%d comm=%s",
146146
__entry->dst_root, __entry->dst_id, __entry->dst_level,
147147
__get_str(dst_path), __entry->pid, __get_str(comm))
148148
);
@@ -171,8 +171,8 @@ DECLARE_EVENT_CLASS(cgroup_event,
171171

172172
TP_STRUCT__entry(
173173
__field( int, root )
174-
__field( int, id )
175174
__field( int, level )
175+
__field( u64, id )
176176
__string( path, path )
177177
__field( int, val )
178178
),
@@ -185,7 +185,7 @@ DECLARE_EVENT_CLASS(cgroup_event,
185185
__entry->val = val;
186186
),
187187

188-
TP_printk("root=%d id=%d level=%d path=%s val=%d",
188+
TP_printk("root=%d id=%llu level=%d path=%s val=%d",
189189
__entry->root, __entry->id, __entry->level, __get_str(path),
190190
__entry->val)
191191
);

0 commit comments

Comments
 (0)