From: fche@redhat.com (Frank Ch. Eigler)
To: Li Guanglei <guanglei@cn.ibm.com>
Cc: systemtap@sources.redhat.com
Subject: Re: adding statements in alias definition as epilogue
Date: Mon, 03 Apr 2006 16:00:00 -0000 [thread overview]
Message-ID: <y0mk6a6bqdz.fsf@ton.toronto.redhat.com> (raw)
In-Reply-To: <4430EA16.8020702@cn.ibm.com>
Li Guanglei <guanglei@cn.ibm.com> writes:
> [...] What I want is to let user specify whether to log backtrace in his
> scripts, like the following:
> stap -e "probe addevent.tskdispatch.cpuidle { backtrace=1 } [...]
> But unfortunately, it won't work because "backtrace=1" is added after
> "log_cpuidle_tracedata(HOOKID_TASK_CPUIDLE, backtrace)". [...]
You can have two alias definitions:
probe addevent.tskdispatch.cpuidle.backtrace = addevent.tskdispatch.cpuidle {
backtrace = 1
}
probe addevent.tskdispatch.cpuidle = .... {
if (backtrace) log_more ();
}
- FChE
next prev parent reply other threads:[~2006-04-03 16:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-03 9:25 Li Guanglei
2006-04-03 9:59 ` bibo,mao
2006-04-03 16:00 ` Frank Ch. Eigler [this message]
2006-04-05 0:41 Guang Lei Li
2006-04-05 1:24 ` Frank Ch. Eigler
2006-04-05 2:46 ` Guang Lei Li
2006-04-05 12:03 ` Frank Ch. Eigler
2006-04-05 16:06 ` Guang Lei Li
2006-04-05 20:16 ` Frank Ch. Eigler
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=y0mk6a6bqdz.fsf@ton.toronto.redhat.com \
--to=fche@redhat.com \
--cc=guanglei@cn.ibm.com \
--cc=systemtap@sources.redhat.com \
/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).