Stack_Used; Stp_Pid; Target; Task Data - Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual

Systemtap language reference
Hide thumbs Also See for ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE:
Table of Contents

Advertisement

Chapter 9. Predefined functions
stack_unused:long ()
Returns how many bytes are currently unused in the stack.

9.2.20. stack_used

General syntax:
stack_used:long ()
Returns how many bytes are currently used in the stack.

9.2.21. stp_pid

stp_pid:long ()
Returns the process ID of the of the staprun process.

9.2.22. target

General syntax:
target:long ()
Returns the process ID of the target process. This is useful in conjunction with the -x PID or -c CMD
command-line options to stap. An example of its use is to create scripts that filter on a specific
process.
-x <pid>
target() returns the pid specified by -x
-c <command>
target() returns the pid for the executed command specified by -c.

9.3. Task data

These functions return data about a task. They all require a task handle as input, such as the value
return by task_current() or the variables prev_task and next_task in the scheduler.ctxswitch probe
alias.
48

Advertisement

Table of Contents
loading

Table of Contents