diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-04-10 15:38:18 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-04-10 15:38:18 -0400 |
commit | 16442b904ea51eedfbef36edc9791f5904d81099 (patch) | |
tree | 9cd4caff6a5f1d95421780fe052b79c7d8f1d6ca /elaborate.h | |
parent | 2881ab63dced89cf57ccf5036eca0a2e6da8a00f (diff) | |
download | systemtap-steved-16442b904ea51eedfbef36edc9791f5904d81099.tar.gz systemtap-steved-16442b904ea51eedfbef36edc9791f5904d81099.tar.xz systemtap-steved-16442b904ea51eedfbef36edc9791f5904d81099.zip |
PR2949: listings mode (stap -l PROBE)
2008-04-10 Frank Ch. Eigler <fche@elastic.org>
PR 2949.
* session.h (listing_mode): New field.
* main.cxx (main): Test it. Enjoy it.
(usage): Document it.
* stap.1.in, stapex.5.in: Ditto.
* elaborate.cxx (print_error): Disable error messages in listing mode.
2008-04-10 Frank Ch. Eigler <fche@elastic.org>
PR 2949
* systemtap.base/cmd_parse.exp: Add "-l" listing test.
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elaborate.h b/elaborate.h index fc8fbbcb..30bf5bce 100644 --- a/elaborate.h +++ b/elaborate.h @@ -114,6 +114,8 @@ struct derived_probe: public probe derived_probe (probe* b, probe_point* l); probe* base; // the original parsed probe virtual probe* basest () { return base->basest(); } + // XXX: might be helpful for listing and stepwise expansion, but aliases/wildcards don't show up right + // virtual probe* almost_basest () { probe* bb = base->basest(); return (bb == base) ? this : bb; } virtual ~derived_probe () {} virtual void join_group (systemtap_session& s) = 0; virtual probe_point* sole_location () const; |