Intro | Functions | Defines | Enumerations | Enumeration Values

io.c File Reference

Go to the source code of this file.

Defines

#define STP_BUF_LEN   8191

Functions

void dlog (const char *fmt,...)
 Logs data.
void _stp_print_buf (const char *fmt,...)
void _stp_print_buf_init (void)
void _stp_print_symbol (const char *fmt, unsigned long address)
unsigned long cur_ret_addr (struct pt_regs *regs)


Define Documentation

#define STP_BUF_LEN   8191
 

Definition at line 27 of file io.c.

Referenced by _stp_print_buf(), and _stp_print_buf_init().


Function Documentation

void _stp_print_buf const char *  fmt,
  ...
 

Definition at line 33 of file io.c.

References STP_BUF_LEN.

Referenced by _stp_print_symbol().

void _stp_print_buf_init void   ) 
 

Definition at line 45 of file io.c.

References STP_BUF_LEN.

void _stp_print_symbol const char *  fmt,
unsigned long  address
 

Definition at line 51 of file io.c.

References _stp_print_buf().

unsigned long cur_ret_addr struct pt_regs *  regs  ) 
 

Definition at line 72 of file io.c.

void dlog const char *  fmt,
  ...
 

Logs data.

This function is compatible with printk. In fact it currently sends all output to vprintk, after sending "STP: ". This allows us to easily detect SystemTap output in the log file.

Parameters:
fmt A variable number of args.
Bug:
Lines are limited in length by printk buffer.

Todo:
Needs replaced with something much faster that does not use the system log.

Definition at line 11 of file io.c.

Referenced by _stp_list_clear(), _stp_register_jprobes(), _stp_register_kprobes(), _stp_unregister_jprobes(), and _stp_unregister_kprobes().


Generated on Mon Mar 21 13:29:45 2005 for SystemTap by  doxygen 1.4.1