This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

more function tracing


Hi -

Try this:

# cat fntrace.stp
probe $1.call   {log (thread_indent(1) . probefunc() ." ". $$parms)}
probe $1.return {log (thread_indent(-1) . probefunc())}

# stap -t fntrace.stp 'modules("ext3").function("*")'
[...]

(or on pr4225-branch:)
# stap -t fntrace.stp 'process("ls").function("*")'

     0 ls(16643):main argc=0xffffffffffffffff argv=0xffffffffffffffff 
   319 ls(16643): human_options spec=0x0 report_errors=0x0 block_size=0x805d8a0 
   367 ls(16643):  default_block_size 
   404 ls(16643):  default_block_size
   450 ls(16643): human_options
   490 ls(16643): __xargmatch_internal context=0x8059e15 arg=0xffffffffbfbe8a6e arglist=0x805d0a0 vallist=0x805a980 valsize=0x4
   527 ls(16643):  argmatch arg=0xffffffffbfbe8a6e arglist=0x805d0a0 vallist=0x805a980 valsize=0x4 
   553 ls(16643):  argmatch
   563 ls(16643): __xargmatch_internal
   580 ls(16643): clone_quoting_options o=0x0 
   623 ls(16643):  xmalloc n=0x24 
   647 ls(16643):  xmalloc
   652 ls(16643): clone_quoting_options
[...]
   679 ls(16643): get_quoting_style
   683 ls(16643): clone_quoting_options o=0x0 
   697 ls(16643):  xmalloc n=0x24 
   711 ls(16643):  xmalloc
   714 ls(16643): clone_quoting_options
   723 ls(16643): set_char_quoting o=0x856bca8 c=0x3a i=0x1 
   748 ls(16643): set_char_quoting
   753 ls(16643): xstrdup string=0xffffffffbfbe8d68 
   782 ls(16643):  xmemdup p=0xffffffffbfbe8d68 s=0x1b9 
   807 ls(16643):   xmalloc n=0x1b9 
   821 ls(16643):   xmalloc
   825 ls(16643):  xmemdup
   829 ls(16643): xstrdup
   843 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x805d778 
   873 ls(16643): get_funky_string
   883 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x805d780 
   898 ls(16643): get_funky_string
   902 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x805d788 
   917 ls(16643): get_funky_string
   921 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x805d790 
   935 ls(16643): get_funky_string
   939 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x805d798 
[...]
  1223 ls(16643): get_funky_string
  1227 ls(16643): xmalloc n=0x14 
  1240 ls(16643): xmalloc
  1244 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x1 output_count=0x856bec0 
  1258 ls(16643): get_funky_string
  1262 ls(16643): get_funky_string dest=0xbfbe7328 src=0xbfbe732c equals_end=0x0 output_count=0x856bec8 
  1276 ls(16643): get_funky_string
  1280 ls(16643): xmalloc n=0x14 
  1293 ls(16643): xmalloc
[...]
115896 ls(16643):   print_file_name_and_frills f=0x856ca98 
115911 ls(16643):    print_name_with_quoting p=0x8571508 mode=0x81a4 linkok=0x0 stat_failed=0x0 stack=0x0 
115926 ls(16643):     put_indicator ind=0x805d760 
115941 ls(16643):     put_indicator
115945 ls(16643):     put_indicator ind=0x805d780 
115959 ls(16643):     put_indicator
115963 ls(16643):     put_indicator ind=0x805d768 
115977 ls(16643):     put_indicator
115981 ls(16643):     quote_name out=0x78c4c0 name=0x8571508 options=0x856bc80 width=0x0 
115996 ls(16643):      quotearg_buffer buffer=0xffffffffbfbe2330 buffersize=0x2000 arg=0x8571508 argsize=0xffffffff o=0x856bc80
116012 ls(16643):       quotearg_buffer_restyled buffer=0xbfbe2330 buffersize=0x2000 arg=0x8571508 argsize=0xffffffff quoting_s
116029 ls(16643):       quotearg_buffer_restyled
116033 ls(16643):      quotearg_buffer
116038 ls(16643):     quote_name
116042 ls(16643):     prep_non_filename_text 
116056 ls(16643):      put_indicator ind=0x805d760 
116070 ls(16643):      put_indicator
116075 ls(16643):      put_indicator ind=0x805d778 
116089 ls(16643):      put_indicator
116093 ls(16643):      put_indicator ind=0x805d768 
116107 ls(16643):      put_indicator
116111 ls(16643):     prep_non_filename_text
116115 ls(16643):    print_name_with_quoting
116118 ls(16643):   print_file_name_and_frills
116123 ls(16643):   indent from=0xe to=0x19 
116136 ls(16643):   indent
[...]
120728 ls(16643):  print_current_files
120734 ls(16643): print_dir
120739 ls(16643): free_pending_ent p=0x856f320 
120771 ls(16643): free_pending_ent
120776 ls(16643): restore_default_color 
120800 ls(16643):  put_indicator ind=0x805d760 
120815 ls(16643):  put_indicator
120819 ls(16643):  put_indicator ind=0x805d768 
120833 ls(16643):  put_indicator
120836 ls(16643): restore_default_color
121001 ls(16643): close_stdout 
121056 ls(16643): close_stdout

probe process("ls").function("*").call (<input>:1:1), hits: 3209, cycles: 7848min/13158avg/3255768max
probe process("ls").function("*").return (<input>:1:88), hits: 3208, cycles: 6280min/8163avg/226896max


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]