Sponsored Content
Full Discussion: Systemtap
Top Forums Programming Systemtap Post 302571020 by fidelity on Saturday 5th of November 2011 01:52:15 PM
Old 11-05-2011
Thanks Jim!

I figured out the -o option yesterday. stap writes to a file that is read by my perl script to process the data. In doing so, sometimes, stap dies immediately after I start my perl script with an error - stap exceeded the threshold.

I gave up :-) and started using pipes. It worked well.

Thanks for your help!!
Fidelity.
 

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
STAP-MERGE(1)						      General Commands Manual						     STAP-MERGE(1)

NAME
stap-merge - systemtap per-cpu binary merger SYNOPSIS
stap-merge [ OPTIONS ] [ INPUT FILENAMES ] DESCRIPTION
The stap-merge executable applies when the -b option has been used while running a stap script. The -b option will generate files per-cpu, based on the timestamp field. Then stap-merge will merge and sort through the per-cpu files based on the timestamp field. OPTIONS
The systemtap merge executable supports the following options. -v Verbose mode, displays three extra fields per set of collected data. [cpunumber,sequencenumberofdata,thelengthofthedataset] -o OUTPUT_FILENAME Specify the name of the file you would like the output to be redirected into. If this option is not specified than the output will be pushed to standard out. EXAMPLES
$ stap -v -b -e 'probe syscall.open { printf("%s(%d) open ", execname(), pid()) }' This should result in several stpd_cpu files (each labled with a number representing which cpu the file was produced from). $ stap-merge -v stpd_cpu0 stpd_cpu1 Running the stap-merge program in the same directory as the stap script earlier in the example, will produce an ordered sequence of packets with the three part label for each set of data. This result will be pushed through the standard output. An output file could have been specified using the "-o" option. FILES
Important files and their corresponding paths can be located in the stappaths(7) manual page. SEE ALSO
stapprobes(3stap), stappaths(7), staprun(8), stapvars(3stap), stapex(3stap), stap-server(8), gdb(1) BUGS
Use the Bugzilla link of the project web page or our mailing list. http://sourceware.org/systemtap/,<systemtap@sourceware.org>. STAP-MERGE(1)
All times are GMT -4. The time now is 07:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy