Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
trace_syscalls.c File Reference
#include <trace/syscall.h>
#include <trace/events/syscalls.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/ftrace.h>
#include <linux/perf_event.h>
#include <asm/syscall.h>
#include "trace_output.h"
#include "trace.h"

Go to the source code of this file.

Macros

#define SYSCALL_FIELD(type, name)
 
#define LEN_OR_ZERO   (len ? len - pos : 0)
 

Functions

enum print_line_t print_syscall_enter (struct trace_iterator *iter, int flags, struct trace_event *event)
 
enum print_line_t print_syscall_exit (struct trace_iterator *iter, int flags, struct trace_event *event)
 
char__bad_type_size (void)
 
void ftrace_syscall_enter (void *ignore, struct pt_regs *regs, long id)
 
void ftrace_syscall_exit (void *ignore, struct pt_regs *regs, long ret)
 
int reg_event_syscall_enter (struct ftrace_event_call *call)
 
void unreg_event_syscall_enter (struct ftrace_event_call *call)
 
int reg_event_syscall_exit (struct ftrace_event_call *call)
 
void unreg_event_syscall_exit (struct ftrace_event_call *call)
 
int init_syscall_trace (struct ftrace_event_call *call)
 
unsigned long __init __weak arch_syscall_addr (int nr)
 
int __init init_ftrace_syscalls (void)
 
 early_initcall (init_ftrace_syscalls)
 

Variables

struct trace_event_functions enter_syscall_print_funcs
 
struct trace_event_functions exit_syscall_print_funcs
 
struct ftrace_event_class event_class_syscall_enter
 
struct ftrace_event_class event_class_syscall_exit
 
struct syscall_metadata__start_syscalls_metadata []
 
struct syscall_metadata__stop_syscalls_metadata []
 

Macro Definition Documentation

#define LEN_OR_ZERO   (len ? len - pos : 0)
#define SYSCALL_FIELD (   type,
  name 
)
Value:
sizeof(type) != sizeof(trace.name) ? \
__bad_type_size() : \

Definition at line 195 of file trace_syscalls.c.

Function Documentation

char* __bad_type_size ( void  )
unsigned long __init __weak arch_syscall_addr ( int  nr)

Definition at line 460 of file trace_syscalls.c.

early_initcall ( init_ftrace_syscalls  )
void ftrace_syscall_enter ( void ignore,
struct pt_regs regs,
long  id 
)

Definition at line 300 of file trace_syscalls.c.

void ftrace_syscall_exit ( void ignore,
struct pt_regs regs,
long  ret 
)

Definition at line 335 of file trace_syscalls.c.

int __init init_ftrace_syscalls ( void  )

Definition at line 465 of file trace_syscalls.c.

int init_syscall_trace ( struct ftrace_event_call call)

Definition at line 435 of file trace_syscalls.c.

enum print_line_t print_syscall_enter ( struct trace_iterator iter,
int  flags,
struct trace_event event 
)

Definition at line 108 of file trace_syscalls.c.

enum print_line_t print_syscall_exit ( struct trace_iterator iter,
int  flags,
struct trace_event event 
)

Definition at line 161 of file trace_syscalls.c.

int reg_event_syscall_enter ( struct ftrace_event_call call)

Definition at line 367 of file trace_syscalls.c.

int reg_event_syscall_exit ( struct ftrace_event_call call)

Definition at line 401 of file trace_syscalls.c.

void unreg_event_syscall_enter ( struct ftrace_event_call call)

Definition at line 386 of file trace_syscalls.c.

void unreg_event_syscall_exit ( struct ftrace_event_call call)

Definition at line 420 of file trace_syscalls.c.

Variable Documentation

struct syscall_metadata* __start_syscalls_metadata[]
struct syscall_metadata* __stop_syscalls_metadata[]
struct trace_event_functions enter_syscall_print_funcs
Initial value:
= {
}

Definition at line 35 of file trace_syscalls.c.

struct ftrace_event_class event_class_syscall_enter
Initial value:
= {
.system = "syscalls",
.reg = syscall_enter_register,
.define_fields = syscall_enter_define_fields,
.get_fields = syscall_get_enter_fields,
.raw_init = init_syscall_trace,
}

Definition at line 43 of file trace_syscalls.c.

struct ftrace_event_class event_class_syscall_exit
Initial value:
= {
.system = "syscalls",
.reg = syscall_exit_register,
.define_fields = syscall_exit_define_fields,
.raw_init = init_syscall_trace,
}

Definition at line 51 of file trace_syscalls.c.

struct trace_event_functions exit_syscall_print_funcs
Initial value:
= {
}

Definition at line 39 of file trace_syscalls.c.