Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
probe-event.c File Reference
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include <elf.h>
#include "util.h"
#include "event.h"
#include "strlist.h"
#include "debug.h"
#include "cache.h"
#include "color.h"
#include "symbol.h"
#include "thread.h"
#include "debugfs.h"
#include "trace-event.h"
#include "probe-event.h"
#include "probe-finder.h"
#include "session.h"

Go to the source code of this file.

Data Structures

struct  __event_package


#define MAX_CMDLEN   256
#define MAX_PROBE_ARGS   128
#define PERFPROBE_GROUP   "probe"
#define semantic_error(msg...)   pr_err("Semantic error :" msg)


const charkernel_get_module_path (const char *module)
int show_line_range (struct line_range *lr __maybe_unused, const char *module __maybe_unused)
int show_available_vars (struct perf_probe_event *pevs __maybe_unused, int npevs __maybe_unused, int max_vls __maybe_unused, const char *module __maybe_unused, struct strfilter *filter __maybe_unused, bool externs __maybe_unused)
int parse_line_range_desc (const char *arg, struct line_range *lr)
int parse_perf_probe_command (const char *cmd, struct perf_probe_event *pev)
bool perf_probe_event_need_dwarf (struct perf_probe_event *pev)
int synthesize_perf_probe_arg (struct perf_probe_arg *pa, char *buf, size_t len)
charsynthesize_probe_trace_command (struct probe_trace_event *tev)
void clear_perf_probe_event (struct perf_probe_event *pev)
int show_perf_probe_events (void)
int add_perf_probe_events (struct perf_probe_event *pevs, int npevs, int max_tevs, const char *target, bool force_add)
int del_perf_probe_events (struct strlist *dellist)
int show_available_funcs (const char *target, struct strfilter *_filter, bool user)


bool probe_event_dry_run

Macro Definition Documentation

#define MAX_CMDLEN   256

Definition at line 49 of file probe-event.c.

#define MAX_PROBE_ARGS   128

Definition at line 50 of file probe-event.c.

#define PERFPROBE_GROUP   "probe"

Definition at line 51 of file probe-event.c.

#define semantic_error (   msg...)    pr_err("Semantic error :" msg)

Definition at line 55 of file probe-event.c.

Function Documentation

int add_perf_probe_events ( struct perf_probe_event pevs,
int  npevs,
int  max_tevs,
const char target,
bool  force_add 

Definition at line 2012 of file probe-event.c.

void clear_perf_probe_event ( struct perf_probe_event pev)

Definition at line 1478 of file probe-event.c.

int del_perf_probe_events ( struct strlist dellist)

Definition at line 2127 of file probe-event.c.

const char* kernel_get_module_path ( const char module)

Definition at line 170 of file probe-event.c.

int parse_line_range_desc ( const char arg,
struct line_range lr 

Definition at line 702 of file probe-event.c.

int parse_perf_probe_command ( const char cmd,
struct perf_probe_event pev 

Definition at line 1039 of file probe-event.c.

bool perf_probe_event_need_dwarf ( struct perf_probe_event pev)

Definition at line 1082 of file probe-event.c.

int show_available_funcs ( const char target,
struct strfilter _filter,
bool  user 

Definition at line 2264 of file probe-event.c.

int show_available_vars ( struct perf_probe_event *pevs  __maybe_unused,
int npevs  __maybe_unused,
int max_vls  __maybe_unused,
const char *module  __maybe_unused,
struct strfilter *filter  __maybe_unused,
bool externs  __maybe_unused 

Definition at line 671 of file probe-event.c.

int show_line_range ( struct line_range *lr  __maybe_unused,
const char *module  __maybe_unused 

Definition at line 664 of file probe-event.c.

int show_perf_probe_events ( void  )

Definition at line 1701 of file probe-event.c.

int synthesize_perf_probe_arg ( struct perf_probe_arg pa,
char buf,
size_t  len 

Definition at line 1192 of file probe-event.c.

char* synthesize_probe_trace_command ( struct probe_trace_event tev)

Definition at line 1395 of file probe-event.c.

Variable Documentation

bool probe_event_dry_run

Definition at line 53 of file probe-event.c.