~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/events/task.h

Version: ~ [ linux-5.6 ] ~ [ linux-5.5.13 ] ~ [ linux-5.4.28 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.113 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.174 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.217 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.217 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.82 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #undef TRACE_SYSTEM
  2 #define TRACE_SYSTEM task
  3 
  4 #if !defined(_TRACE_TASK_H) || defined(TRACE_HEADER_MULTI_READ)
  5 #define _TRACE_TASK_H
  6 #include <linux/tracepoint.h>
  7 
  8 TRACE_EVENT(task_newtask,
  9 
 10         TP_PROTO(struct task_struct *task, unsigned long clone_flags),
 11 
 12         TP_ARGS(task, clone_flags),
 13 
 14         TP_STRUCT__entry(
 15                 __field(        pid_t,  pid)
 16                 __array(        char,   comm, TASK_COMM_LEN)
 17                 __field( unsigned long, clone_flags)
 18                 __field(        short,  oom_score_adj)
 19         ),
 20 
 21         TP_fast_assign(
 22                 __entry->pid = task->pid;
 23                 memcpy(__entry->comm, task->comm, TASK_COMM_LEN);
 24                 __entry->clone_flags = clone_flags;
 25                 __entry->oom_score_adj = task->signal->oom_score_adj;
 26         ),
 27 
 28         TP_printk("pid=%d comm=%s clone_flags=%lx oom_score_adj=%hd",
 29                 __entry->pid, __entry->comm,
 30                 __entry->clone_flags, __entry->oom_score_adj)
 31 );
 32 
 33 TRACE_EVENT(task_rename,
 34 
 35         TP_PROTO(struct task_struct *task, const char *comm),
 36 
 37         TP_ARGS(task, comm),
 38 
 39         TP_STRUCT__entry(
 40                 __field(        pid_t,  pid)
 41                 __array(        char, oldcomm,  TASK_COMM_LEN)
 42                 __array(        char, newcomm,  TASK_COMM_LEN)
 43                 __field(        short,  oom_score_adj)
 44         ),
 45 
 46         TP_fast_assign(
 47                 __entry->pid = task->pid;
 48                 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
 49                 memcpy(entry->newcomm, comm, TASK_COMM_LEN);
 50                 __entry->oom_score_adj = task->signal->oom_score_adj;
 51         ),
 52 
 53         TP_printk("pid=%d oldcomm=%s newcomm=%s oom_score_adj=%hd",
 54                 __entry->pid, __entry->oldcomm,
 55                 __entry->newcomm, __entry->oom_score_adj)
 56 );
 57 
 58 #endif
 59 
 60 /* This part must be outside protection */
 61 #include <trace/define_trace.h>
 62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp