diff options
author | hunt <hunt> | 2005-09-06 17:40:12 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-09-06 17:40:12 +0000 |
commit | 4c5ff1bb5bb35cb35e30c45e385043c5f8383cd0 (patch) | |
tree | a6696d16ece8e98844a6bac3ac550f0bd99f77c9 /tapset | |
parent | c0b3ea3235ced04f5f372c98c5ea321e2da22c59 (diff) | |
download | systemtap-steved-4c5ff1bb5bb35cb35e30c45e385043c5f8383cd0.tar.gz systemtap-steved-4c5ff1bb5bb35cb35e30c45e385043c5f8383cd0.tar.xz systemtap-steved-4c5ff1bb5bb35cb35e30c45e385043c5f8383cd0.zip |
2005-09-06 Martin Hunt <hunt@redhat.com>
* tapset/context.stp: Add function target().
* stapfuncs.5.in (target): Document it.
* elaborate.h (struct systemtap_session): Add cmd and target_pid to
the struct.
* main.cxx (usage): Add secriptions of "-c" and "-x" options.
(main): Set s.cmd and s.target_pid.
* buildrun.cxx (stringify): Copy this utility func here too.
(run_pass): Add new options to set cmd and pid to the stpd
command line.
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/context.stp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp index 3e776547..bb4004bb 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -92,3 +92,8 @@ function print_stack(stk:string) %{ function pp:string () %{ strlcpy (THIS->__retvalue, CONTEXT->probe_point, MAXSTRINGLEN); %} + +function target:long () %{ + THIS->__retvalue = _stp_target; +%} + |