Frank Ch Eigler writes:

> Hi -
>> $ cat >test.c <<\EOF
>> [...]
>> int f(int a1, int a2)
>> {
>> TEST_F(a1, a2);
>> [...]
>> }
>> 
>> int main(int argc, char *argv[])
>> {
>> f(1, 1);
>> f(2, 2);
>> return 0;
>> }
>> EOF
>> [...]
>> $ gcc -o test -O0 -g test.c events.o
>> $ sudo stap test.stp -c './test'
>> [...]
>> 0 0
>> 0 0

> It would be interesting to see the "stap -p3" output for that test
> script, and/or the "readelf -n ./test", so we could tell what kind of
> operands the compiler generated for those two arguments.

I've attached both. BTW, I'm using debian's gcc 6.1.1-1.

Cheers,
  Lluis

Attachment: stap-p3
Description: Binary data

Attachment: readelf-n
Description: Binary data

Reply via email to