From b6921d5942950cb988318c36ee0e0792311f1ccc Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 21 Aug 2009 13:29:50 -0400 Subject: 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. --- translate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 7e0d9d96..56d6de4c 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1170,7 +1170,7 @@ c_unparser::emit_module_init () o->newline() << "if (rc) {"; o->newline(1) << "_stp_error (" << "\"couldn't initialize task-finder for %s\\n\"," - << "_stp_modules[i]->vmcb->pathname);"; + << "_stp_modules[i]->vmcb->procname);"; o->newline() << "goto out;"; o->newline(-1) << "}"; o->newline(-1) << "}"; @@ -4863,7 +4863,7 @@ dump_unwindsyms (Dwfl_Module *m, // NB: runtime/sym.c c->output << "static struct stap_task_finder_target _stp_vmcb_" << stpmod_idx << "= {\n"; c->output << "#ifdef CONFIG_UTRACE\n"; - c->output << ".pathname = " << lex_cast_qstring (mainfile) << ",\n"; + c->output << ".procname = " << lex_cast_qstring (mainfile) << ",\n"; c->output << ".mmap_callback = &_stp_tf_mmap_cb,\n"; c->output << ".munmap_callback = &_stp_tf_munmap_cb,\n"; c->output << "#endif\n"; -- cgit