Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
trace_sched_switch.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/debugfs.h>
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
#include <trace/events/sched.h>
#include "trace.h"

Go to the source code of this file.

Functions

void tracing_sched_switch_trace (struct trace_array *tr, struct task_struct *prev, struct task_struct *next, unsigned long flags, int pc)
 
void tracing_sched_wakeup_trace (struct trace_array *tr, struct task_struct *wakee, struct task_struct *curr, unsigned long flags, int pc)
 
void tracing_start_cmdline_record (void)
 
void tracing_stop_cmdline_record (void)
 
void tracing_start_sched_switch_record (void)
 
void tracing_stop_sched_switch_record (void)
 
void tracing_sched_switch_assign_trace (struct trace_array *tr)
 

Function Documentation

void tracing_sched_switch_assign_trace ( struct trace_array tr)

tracing_sched_switch_assign_trace - assign a trace array for ctx switch : trace array pointer to assign

Some tracers might want to record the context switches in their trace. This function lets those tracers assign the trace array to use.

Definition at line 245 of file trace_sched_switch.c.

void tracing_sched_switch_trace ( struct trace_array tr,
struct task_struct prev,
struct task_struct next,
unsigned long  flags,
int  pc 
)

Definition at line 25 of file trace_sched_switch.c.

void tracing_sched_wakeup_trace ( struct trace_array tr,
struct task_struct wakee,
struct task_struct curr,
unsigned long  flags,
int  pc 
)

Definition at line 81 of file trace_sched_switch.c.

void tracing_start_cmdline_record ( void  )

Definition at line 193 of file trace_sched_switch.c.

void tracing_start_sched_switch_record ( void  )

tracing_start_sched_switch_record - start tracing context switches

Turns on context switch tracing for a tracer.

Definition at line 208 of file trace_sched_switch.c.

void tracing_stop_cmdline_record ( void  )

Definition at line 198 of file trace_sched_switch.c.

void tracing_stop_sched_switch_record ( void  )

tracing_stop_sched_switch_record - start tracing context switches

Turns off context switch tracing for a tracer.

Definition at line 227 of file trace_sched_switch.c.