Sponsored Content
Full Discussion: Systemtap
Top Forums Programming Systemtap Post 302571018 by jim mcnamara on Saturday 5th of November 2011 01:35:17 PM
Old 11-05-2011
edit a file: put the stap -r '.....' command in file, let's call it mystap.sh stap prints to stdout. So:

Code:
chmod +x mystp.sh  # you only need to execute this one time

./stap.sh > outputfile

Is this what you meant?
Code:
stap -o myoutputfile  ' stap code here ...'

also does what you want, in this case it writes to myoutputfil.
 

We Also Found This Discussion For You

1. Programming

systemtap returntimeofday_s and some questions

Hi gurus, could you please explain few questions about systemtap. 1st === seems gettimeofday_s() always returns 0 stap -ve 'probe timer.s(4){ printf("%d ", gettimeofday_s()) }' returns 0 0 0 ... also gettimeofday_ms gettimeofday_ns When I am trying to investigate what is going on... (2 Replies)
Discussion started by: wakatana
2 Replies
STAPVARS(3stap) 														   STAPVARS(3stap)

NAME
stapvars - systemtap variables DESCRIPTION
The following sections enumerate the public variables provided by standard tapsets installed, (the installation path is show in the stap- paths(7) manual page). Each variable is described with a type, and its behavior/restrictions. The syntax is the same as printed with the stap option -p2. Examples: example1:long Variable "example1" contains an integer. example2:string [long] Variable "example2" is an array of strings, indexed by integers. ARGV argc:long Contains the value of the $# value: the number of command line arguments passed to the systemtap script. It is initialized with an implicit begin(-1) probe. argv:string [long] Contains each command line argument as a string. argv[1] will equal @1 if there was at least one command line argument. Arguments beyond #32 are not transcribed, and produce a warning message within the begin(-1) probe that initializes this array. NULL NULL:long Simply defined as the number 0. FILES
More files and their corresponding paths can be found in the stappaths(7) manual page. SEE ALSO
stap(1) stappaths(7) STAPVARS(3stap)
All times are GMT -4. The time now is 02:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy