summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 4fa53a88..240af469 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -5868,8 +5868,11 @@ utrace_derived_probe::utrace_derived_probe (systemtap_session &s,
vector<probe_point::component*> comps;
if (hp)
comps.push_back (new probe_point::component(TOK_PROCESS, new literal_string(path)));
- else
+ else if (pid != 0)
comps.push_back (new probe_point::component(TOK_PROCESS, new literal_number(pid)));
+ else
+ comps.push_back (new probe_point::component(TOK_PROCESS));
+
switch (flags)
{
case UDPF_THREAD_BEGIN: