Bug 15942 - support abbreviated process.* probes with stap -x PID
Summary: support abbreviated process.* probes with stap -x PID
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 20:26 UTC by Frank Ch. Eigler
Modified: 2014-05-30 21:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2013-09-10 20:26:25 UTC
PR12427 introduced the ability to let a user abbreviate process
probes by inferring the path from the -c CMD argument.  We can do
the same with -x PID, perhaps the following way:

- stap --no-use-server -e 'probe process.foo {}' -x PID
  .... map to process("PATH") where PATH = readlink("/proc/PID/exe"),
  in the same place as PR12427 (dwarf_builder::build)

- stap --use-server -e 'probe process.foo {}' -x PID
  .... map to stap server_options "-c PATH" with same PATH
  (IOW, pretend to the stap-server that the user typed -c PATH).
Comment 1 Abe Jakop 2014-05-30 21:01:47 UTC
commit 3db41960a35e0593a5f33ab0128d55d833603849