Frank Ch Eigler writes:
> Hi, Lluís -
>> I've attached both. BTW, I'm using debian's gcc 6.1.1-1.
> Thank you. Those both look just fine, argh. Could you try using
> gdb's "static probe points" facility to break at the same point, to
> see if the arguments are accessible?
>
Hi, Lluís -
> I've attached both. BTW, I'm using debian's gcc 6.1.1-1.
Thank you. Those both look just fine, argh. Could you try using
gdb's "static probe points" facility to break at the same point, to
see if the arguments are accessible?
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
Vincent Bernat writes:
> ❦ 13 septembre 2016 19:10 CEST, Lluís Vilanova :
>> Hi! I've been writing some very simple systemtap scripts, and printing the
>> values of arguments to user-defined probe marks always shows zeroes.
>>
>> Here's an minimal failing example:
>>
>> $
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
❦ 13 septembre 2016 19:10 CEST, Lluís Vilanova :
> Hi! I've been writing some very simple systemtap scripts, and printing the
> values of arguments to user-defined probe marks always shows zeroes.
>
> Here's an minimal failing example:
>
> $ cat >events.d <<\EOF
> provider
Package: systemtap
Version: 3.0-6
Severity: normal
Hi! I've been writing some very simple systemtap scripts, and printing the
values of arguments to user-defined probe marks always shows zeroes.
Here's an minimal failing example:
$ cat >events.d <<\EOF
provider test
{
probe f(int a1, int
7 matches
Mail list logo