summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-08-21 13:29:50 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-08-21 13:29:50 -0400
commitb6921d5942950cb988318c36ee0e0792311f1ccc (patch)
treec6093273bdc69fd0d617edb2d1a718a82530e313 /tapsets.cxx
parent73812da575ff92ea388c8bb16e42a9c5aaa6ee20 (diff)
downloadsystemtap-steved-b6921d5942950cb988318c36ee0e0792311f1ccc.tar.gz
systemtap-steved-b6921d5942950cb988318c36ee0e0792311f1ccc.tar.xz
systemtap-steved-b6921d5942950cb988318c36ee0e0792311f1ccc.zip
cleanup: rename task_finder_target->pathname -> procname
The previous name made it easy to misread the purpose of this field. It is only for matching executable names, not for shared libraries. * runtime/task_finder.c (task_finder_target): Rename field. (*): Adjust. * tapset-itrace.cxx, tapset-utrace.cxx, tapsets.cxx, translate.cxx: Ditto.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 04d03503..f94bea99 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -4432,8 +4432,8 @@ uprobe_derived_probe_group::emit_module_decls (systemtap_session& s)
if (p->pid != 0)
s.op->line() << " .pid=" << p->pid;
else if (p->section == ".absolute")
- s.op->line() << " .pathname=" << lex_cast_qstring(p->module) << ", ";
- // else ".dynamic" gets pathname=0, pid=0, activating task_finder "global tracing"
+ s.op->line() << " .procname=" << lex_cast_qstring(p->module) << ", ";
+ // else ".dynamic" gets procname=0, pid=0, activating task_finder "global tracing"
s.op->line() << "},";
if (p->section != ".absolute")
s.op->line() << " .pathname=" << lex_cast_qstring(p->module) << ", ";
@@ -4684,7 +4684,7 @@ uprobe_derived_probe_group::emit_module_init (systemtap_session& s)
s.op->newline() << "for (i=0; i<" << probes.size() << "; i++) {";
s.op->newline(1) << "struct stap_uprobe_spec *sups = & stap_uprobe_specs[i];";
s.op->newline() << "probe_point = sups->pp;"; // for error messages
- s.op->newline() << "if (sups->finder.pathname) sups->finder.callback = & stap_uprobe_process_found;";
+ s.op->newline() << "if (sups->finder.procname) sups->finder.callback = & stap_uprobe_process_found;";
s.op->newline() << "else if (sups->pathname) sups->finder.mmap_callback = & stap_uprobe_mmap_found;";
s.op->newline() << "rc = stap_register_task_finder_target (& sups->finder);";