perf hists: Move sort__has_sym into struct perf_hpp_list
[linux/fpc-iii.git] / include / trace / events / task.h
blob2cca6cd342d897f90269cf1542df40d4a1858a18
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM task
4 #if !defined(_TRACE_TASK_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_TASK_H
6 #include <linux/tracepoint.h>
8 TRACE_EVENT(task_newtask,
10 TP_PROTO(struct task_struct *task, unsigned long clone_flags),
12 TP_ARGS(task, clone_flags),
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)
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;
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)
33 TRACE_EVENT(task_rename,
35 TP_PROTO(struct task_struct *task, const char *comm),
37 TP_ARGS(task, comm),
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)
46 TP_fast_assign(
47 __entry->pid = task->pid;
48 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
49 strlcpy(entry->newcomm, comm, TASK_COMM_LEN);
50 __entry->oom_score_adj = task->signal->oom_score_adj;
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)
58 #endif
60 /* This part must be outside protection */
61 #include <trace/define_trace.h>