This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
how to filter unnecessary info from stap output?
- From: ch huang <justlooks at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 15 Mar 2012 10:51:17 +0800
- Subject: how to filter unnecessary info from stap output?
i want observer ext module action, i write the following script
# cat exec.stp -o file
probe module("ext3").function("*").call {
printf("%s -> %s\n", thread_indent(1), probefunc())
}
probe module("ext3").function("*").return {
printf("%s <- %s\n", thread_indent(-1), probefunc())
}
but i want stap output in file,when i run like 'echo "aaa" > ufile '
command ,not always flood the output file with like
' 10 pdflush(32612): <- ext3_write_super
0 pdflush(32612): -> ext3_write_inode
4 pdflush(32612): <- ext3_write_inode
0 pdflush(32612): -> ext3_write_inode
3 pdflush(32612): <- ext3_write_inode
0 pdflush(32612): -> ext3_write_inode
3 pdflush(32612): <- ext3_write_inode
0 pdflush(32612): -> ext3_write_inode
3 pdflush(32612): <- ext3_write_inode ' such unnecessary info ,any help?