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

I/O

I/O functions. More...

Functions

void dlog (const char *fmt,...)
 Logs Data.
void _stp_print (const char *fmt,...)
 Prints to the trace buffer.
void _stp_print_str (char *str)
 Prints to the trace buffer.

Detailed Description

I/O functions.


Function Documentation

void _stp_print const char *  fmt,
  ...
 

Prints to the trace buffer.

This function uses the same formatting as printk. It currently writes to the system log.

Parameters:
fmt A variable number of args.

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

Definition at line 43 of file io.c.

Referenced by _stp_symbol_print().

void _stp_print_str char *  str  ) 
 

Prints to the trace buffer.

This function will write a string to the trace buffer. It currently writes to the system log.

Parameters:
str String.

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

Definition at line 60 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. If there is no newline in the format string, then other syslog output could get appended to the SystemTap line.

Todo:
Either deprecate or redefine this as a way to log debug or status messages, separate from the normal program output.

Definition at line 25 of file io.c.

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