Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

probes.c File Reference

Functions to assist loading and unloading groups of probes. More...

Go to the source code of this file.

Functions

void _stp_unregister_jprobes (struct jprobe *probes, int num_probes)
 Unregister a group of jprobes.
int _stp_register_jprobes (struct jprobe *probes, int num_probes)
 Register a group of jprobes.
void _stp_unregister_kprobes (struct kprobe *probes, int num_probes)
 Unregister a group of kprobes.
int _stp_register_kprobes (struct kprobe *probes, int num_probes)
 Register a group of kprobes.

Variables

static unsigned long(* _stp_lookup_name )(char *name) = (void *)KALLSYMS_LOOKUP_NAME
 Lookup name.


Detailed Description

Functions to assist loading and unloading groups of probes.

Definition in file probes.c.


Function Documentation

int _stp_register_jprobes struct jprobe *  probes,
int  num_probes
 

Register a group of jprobes.

Parameters:
probes Pointer to an array of struct jprobe.
num_probes Number of probes in the array.
Returns:
0 on success.

Definition at line 32 of file probes.c.

References _stp_lookup_name, _stp_unregister_jprobes(), and dlog().

int _stp_register_kprobes struct kprobe *  probes,
int  num_probes
 

Register a group of kprobes.

Parameters:
probes Pointer to an array of struct kprobe.
num_probes Number of probes in the array.
Returns:
0 on success.

Definition at line 77 of file probes.c.

References _stp_lookup_name, _stp_unregister_kprobes(), and dlog().

void _stp_unregister_jprobes struct jprobe *  probes,
int  num_probes
 

Unregister a group of jprobes.

Parameters:
probes Pointer to an array of struct jprobe.
num_probes Number of probes in the array.

Definition at line 18 of file probes.c.

References dlog().

Referenced by _stp_register_jprobes().

void _stp_unregister_kprobes struct kprobe *  probes,
int  num_probes
 

Unregister a group of kprobes.

Parameters:
probes Pointer to an array of struct kprobe.
num_probes Number of probes in the array.

Definition at line 63 of file probes.c.

References dlog().

Referenced by _stp_register_kprobes().


Variable Documentation

unsigned long(* _stp_lookup_name)(char *name) = (void *)KALLSYMS_LOOKUP_NAME [static]
 

Lookup name.

This simply calls the kernel function kallsyms_lookup_name(). That function is not exported, so this workaround is required. See the kernel source, kernel/kallsyms.c for more information.

Definition at line 11 of file probes.c.

Referenced by _stp_register_jprobes(), and _stp_register_kprobes().


Generated on Tue Mar 22 10:27:36 2005 for SystemTap.