public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "brendan.gregg at joyent dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug documentation/13713] MAXTRACE/MAXBACKTRACE undocumented feature
Date: Tue, 21 Feb 2012 23:21:00 -0000	[thread overview]
Message-ID: <bug-13713-6586-WP7UGIuETF@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <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.

  parent reply	other threads:[~2012-02-21 23:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  6:00 [Bug documentation/13713] New: " brendan.gregg at joyent dot com
2012-02-20 13:55 ` [Bug documentation/13713] " mjw at redhat dot com
2012-02-21 23:21 ` brendan.gregg at joyent dot com [this message]
2012-02-22  9:01 ` mjw at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13713-6586-WP7UGIuETF@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).