Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
task.h File Reference
#include <linux/tracepoint.h>
#include <trace/define_trace.h>

Go to the source code of this file.

Macros

#define TRACE_SYSTEM   task
 
#define _TRACE_TASK_H
 

Functions

 TRACE_EVENT (task_newtask, TP_PROTO(struct task_struct *task, unsigned long clone_flags), TP_ARGS(task, clone_flags), TP_STRUCT__entry(__field(pid_t, pid) __array(char, comm, TASK_COMM_LEN) __field(unsigned long, clone_flags) __field(int, oom_score_adj)), TP_fast_assign(__entry->pid=task->pid;memcpy(__entry->comm, task->comm, TASK_COMM_LEN);__entry->clone_flags=clone_flags;__entry->oom_score_adj=task->signal->oom_score_adj;), TP_printk("pid=%d comm=%s clone_flags=%lx oom_score_adj=%d", __entry->pid, __entry->comm, __entry->clone_flags, __entry->oom_score_adj))
 
 TRACE_EVENT (task_rename, TP_PROTO(struct task_struct *task, char *comm), TP_ARGS(task, comm), TP_STRUCT__entry(__field(pid_t, pid) __array(char, oldcomm, TASK_COMM_LEN) __array(char, newcomm, TASK_COMM_LEN) __field(int, oom_score_adj)), TP_fast_assign(__entry->pid=task->pid;memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);memcpy(entry->newcomm, comm, TASK_COMM_LEN);__entry->oom_score_adj=task->signal->oom_score_adj;), TP_printk("pid=%d oldcomm=%s newcomm=%s oom_score_adj=%d", __entry->pid, __entry->oldcomm, __entry->newcomm, __entry->oom_score_adj))
 

Macro Definition Documentation

#define _TRACE_TASK_H

Definition at line 5 of file task.h.

#define TRACE_SYSTEM   task

Definition at line 2 of file task.h.

Function Documentation

TRACE_EVENT ( task_newtask  ,
TP_PROTO(struct task_struct *task, unsigned long clone_flags)  ,
TP_ARGS(task, clone_flags)  ,
TP_STRUCT__entry(__field(pid_t, pid) __array(char, comm, TASK_COMM_LEN) __field(unsigned long, clone_flags) __field(int, oom_score_adj))  ,
TP_fast_assign(__entry->pid=task->pid;memcpy(__entry->comm, task->comm, TASK_COMM_LEN);__entry->clone_flags=clone_flags;__entry->oom_score_adj=task->signal->oom_score_adj;)  ,
TP_printk("pid=%d comm=%s clone_flags=%lx oom_score_adj=%d", __entry->pid, __entry->comm, __entry->clone_flags, __entry->oom_score_adj)   
)
TRACE_EVENT ( task_rename  ,
TP_PROTO(struct task_struct *task, char *comm)  ,
TP_ARGS(task, comm)  ,
TP_STRUCT__entry(__field(pid_t, pid) __array(char, oldcomm, TASK_COMM_LEN) __array(char, newcomm, TASK_COMM_LEN) __field(int, oom_score_adj))  ,
TP_fast_assign(__entry->pid=task->pid;memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);memcpy(entry->newcomm, comm, TASK_COMM_LEN);__entry->oom_score_adj=task->signal->oom_score_adj;)  ,
TP_printk("pid=%d oldcomm=%s newcomm=%s oom_score_adj=%d", __entry->pid, __entry->oldcomm, __entry->newcomm, __entry->oom_score_adj)   
)