This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug documentation/13713] MAXTRACE/MAXBACKTRACE undocumented feature
- From: "brendan.gregg at joyent dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 21 Feb 2012 23:20:40 +0000
- Subject: [Bug documentation/13713] MAXTRACE/MAXBACKTRACE undocumented feature
- Auto-submitted: auto-generated
- References: <bug-13713-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13713
--- Comment #2 from brendan.gregg at joyent dot com 2012-02-21 23:20:40 UTC ---
Ok, thanks, I'll use MAXBACKTRACE on 1.7.
...
FWIW, only MAXTRACE was working for me on 1.6 (if that's what you meant by
earlier versions). MAXBACKTRACE is a better term (more descriptive), but
couldn't be set:
[root@9d219ce8-cf52-409f-a14a-b210850f3231 ~]# stap -D MAXBACKTRACE=100
--all-modules -ve 'global s; probe timer.profile { s[backtrace()] <<< 1; }
probe end { foreach (i in s+) { print_stack(i); printf("\t%d\n", @count(s[i]));
} exit(); } probe timer.s(10) { exit(); }'
Pass 1: parsed user script and 77 library script(s) using
202212virt/22908res/3040shr kb, in 10usr/0sys/115real ms.
Pass 2: analyzed script: 3 probe(s), 3 function(s), 2 embed(s), 1 global(s)
using 202752virt/23908res/3360shr kb, in 0usr/0sys/4real ms.
Pass 3: translated to C into
"/tmp/stapLLi3uv/stap_966ef62429e87336cef74c0b1225a90e_2152.c" using
352792virt/40000res/12056shr kb, in 470usr/0sys/773real ms.
In file included from
/tmp/stapLLi3uv/stap_966ef62429e87336cef74c0b1225a90e_2152.c:60:0:
/usr/share/systemtap/runtime/stack.c:28:0: error: "MAXBACKTRACE" redefined
[-Werror]
<command-line>:0:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapLLi3uv/stap_966ef62429e87336cef74c0b1225a90e_2152.o]
Error 1
make: *** [_module_/tmp/stapLLi3uv] Error 2
Warning: make exited with status: 2
Pass 4: compiled C into "stap_966ef62429e87336cef74c0b1225a90e_2152.ko" in
2690usr/310sys/3802real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
and didn't work when manually hacking runtime either. Again, this doesn't
matter now, I only write this if someone else is trying on 1.6 and hits the
same thing.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.