diff options
author | fche <fche> | 2005-11-08 19:45:59 +0000 |
---|---|---|
committer | fche <fche> | 2005-11-08 19:45:59 +0000 |
commit | 4893e4b2858af12d916c3915a97336cdb0c8236b (patch) | |
tree | 23b50e5f0c3a13760cddf3a10ed796ed1eeb852f /tapsets.cxx | |
parent | 446ffd97017f72652b64c43bf25fc5fccbb3ddf0 (diff) | |
download | systemtap-steved-4893e4b2858af12d916c3915a97336cdb0c8236b.tar.gz systemtap-steved-4893e4b2858af12d916c3915a97336cdb0c8236b.tar.xz systemtap-steved-4893e4b2858af12d916c3915a97336cdb0c8236b.zip |
2005-11-08 Frank Ch. Eigler <fche@redhat.com>
* tapsets.cxx (blacklisted_p): Tolerate NULL filename parameter.
* src/testsuite/semok/twenty.stp: New test to enumerate everything
dwarfly probeable.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 7b0d2b78..d9a75340 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1710,7 +1710,8 @@ dwarf_query::blacklisted_p(string const & funcname, // properly generalized, perhaps via a table populated from script // files. A "noprobe kernel.function("...")" construct might do // the trick. - string filename_s = filename ? filename : ""; // is passed as const char* + if (filename == 0) filename = ""; // possibly 0 + string filename_s = filename; // is passed as const char* if (funcname == "do_IRQ" || filename_s == "kernel/kprobes.c" || 0 == fnmatch ("arch/*/kernel/kprobes.c", filename, 0) || |