diff options
author | William Cohen <wcohen@redhat.com> | 2008-12-09 11:20:11 -0500 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2008-12-09 11:20:11 -0500 |
commit | 4ffc629674ac7d1d84b93cb7fdca71953983f762 (patch) | |
tree | dca338602903ba87b69592b40faa35ca74b7966e /testsuite/systemtap.examples/io/io_submit.stp | |
parent | 73dc0c77745ee09db15542c14f7e048f91e121e6 (diff) | |
download | systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.gz systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.xz systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.zip |
Tweak formatting, indent two space.
Diffstat (limited to 'testsuite/systemtap.examples/io/io_submit.stp')
-rwxr-xr-x | testsuite/systemtap.examples/io/io_submit.stp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/testsuite/systemtap.examples/io/io_submit.stp b/testsuite/systemtap.examples/io/io_submit.stp index 13dcc5a3..fc2e5ff1 100755 --- a/testsuite/systemtap.examples/io/io_submit.stp +++ b/testsuite/systemtap.examples/io/io_submit.stp @@ -21,19 +21,19 @@ global traces * hash table that this proc is in io_submit */ probe syscall.io_submit { - in_iosubmit[tid()] = 1 + in_iosubmit[tid()] = 1 } /* * when we return from sys_io_submit, record that we're no longer there */ probe syscall.io_submit.return { - /* this assumes a given proc will do lots of io_submit calls, and - * so doesn't do the more expensive "delete in_iosubmit[p]". If - * there are lots of procs doing small number of io_submit calls, - * the hash may grow pretty big, so using delete may be better - */ - in_iosubmit[tid()] = 0 + /* this assumes a given proc will do lots of io_submit calls, and + * so doesn't do the more expensive "delete in_iosubmit[p]". If + * there are lots of procs doing small number of io_submit calls, + * the hash may grow pretty big, so using delete may be better + */ + in_iosubmit[tid()] = 0 } /* @@ -41,21 +41,21 @@ probe syscall.io_submit.return { * io_submit. If so, record our backtrace into the traces histogram */ probe kernel.function("schedule") { - if (tid() in in_iosubmit) { - traces[backtrace()]++ + if (tid() in in_iosubmit) { + traces[backtrace()]++ - /* - * change this to if (1) if you want a backtrace every time - * you go into schedule from io_submit. Unfortunately, the traces - * saved into the traces histogram above are truncated to just a - * few lines. so the only way to see the full trace is via the - * more verbose print_backtrace() right here. - */ - if (0) { - printf("schedule in io_submit!\n") - print_backtrace() - } - } + /* + * change this to if (1) if you want a backtrace every time + * you go into schedule from io_submit. Unfortunately, the traces + * saved into the traces histogram above are truncated to just a + * few lines. so the only way to see the full trace is via the + * more verbose print_backtrace() right here. + */ + if (0) { + printf("schedule in io_submit!\n") + print_backtrace() + } + } } /* @@ -63,9 +63,9 @@ probe kernel.function("schedule") { * trace paths and print the 30 most common. */ probe end { - foreach (stack in traces- limit 30) { - printf("%d:", traces[stack]) - print_stack(stack); - } + foreach (stack in traces- limit 30) { + printf("%d:", traces[stack]) + print_stack(stack); + } } |