2 #define TRACE_SYSTEM oom
4 #if !defined(_TRACE_OOM_H) || defined(TRACE_HEADER_MULTI_READ)
6 #include <linux/tracepoint.h>
8 TRACE_EVENT(oom_score_adj_update
,
10 TP_PROTO(struct task_struct
*task
),
16 __array( char, comm
, TASK_COMM_LEN
)
17 __field( int, oom_score_adj
)
21 __entry
->pid
= task
->pid
;
22 memcpy(__entry
->comm
, task
->comm
, TASK_COMM_LEN
);
23 __entry
->oom_score_adj
= task
->signal
->oom_score_adj
;
26 TP_printk("pid=%d comm=%s oom_score_adj=%d",
27 __entry
->pid
, __entry
->comm
, __entry
->oom_score_adj
)
32 /* This part must be outside protection */
33 #include <trace/define_trace.h>