Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tracing/rseq: Add mm_cid field to rseq_update

Add the mm_cid field to the rseq_update event, allowing tracers to
follow which mm_cid is observed by user-space, and whether negative
mm_cid values are visible in case of internal scheduler implementation
issues.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221122203932.231377-22-mathieu.desnoyers@efficios.com

authored by

Mathieu Desnoyers and committed by
Peter Zijlstra
14a8644d a3798e6f

+4 -1
+4 -1
include/trace/events/rseq.h
··· 17 17 TP_STRUCT__entry( 18 18 __field(s32, cpu_id) 19 19 __field(s32, node_id) 20 + __field(s32, mm_cid) 20 21 ), 21 22 22 23 TP_fast_assign( 23 24 __entry->cpu_id = raw_smp_processor_id(); 24 25 __entry->node_id = cpu_to_node(__entry->cpu_id); 26 + __entry->mm_cid = task_mm_cid(t); 25 27 ), 26 28 27 - TP_printk("cpu_id=%d node_id=%d", __entry->cpu_id, __entry->node_id) 29 + TP_printk("cpu_id=%d node_id=%d mm_cid=%d", __entry->cpu_id, 30 + __entry->node_id, __entry->mm_cid) 28 31 ); 29 32 30 33 TRACE_EVENT(rseq_ip_fixup,