[root@localhost ~]# cat test.c

#include <stdio.h>

int main( void) {

int a=0; a=fun(10,20); printf("%d\n",a);

}

int fun(int  a,int b)

{   return a+b; }

 

stap -e 'probe process("a.out").function("fun") { log($$parms) }'

a=0xa b=0x14

stap -e 'probe process("a.out").statement("fun") { log($$vars) }'
a=0x34 b=0x6861cbc0

相关文章:

  • 2021-07-23
  • 2021-11-08
  • 2021-10-10
  • 2021-06-25
  • 2021-12-27
  • 2021-11-02
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2021-11-22
  • 2021-06-26
  • 2021-12-22
  • 2021-05-16
  • 2022-12-23
  • 2022-01-03
  • 2021-11-10
相关资源
相似解决方案