diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 17:36:36 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 17:36:36 -0400 |
commit | e34d5d1388d3c7817313685e3f7424ffc158474f (patch) | |
tree | ac39f35f47beae8d304e772f653f8d9331290670 /tapset-utrace.cxx | |
parent | 1beb508976ba5a79758ffe6e174f47a64225f449 (diff) | |
download | systemtap-steved-e34d5d1388d3c7817313685e3f7424ffc158474f.tar.gz systemtap-steved-e34d5d1388d3c7817313685e3f7424ffc158474f.tar.xz systemtap-steved-e34d5d1388d3c7817313685e3f7424ffc158474f.zip |
PR10746: improve error message on utrace-less kernels
* tapset-itrace.exp (itrace_derived_probe ctor): Fail if !CONFIG_UTRACE.
* tapset-utrace.exp (utrace_derived_probe ctor): Fail if !CONFIG_UTRACE.
* tapsets.cxx (dwarf_builder::build): Fail process.* if !CONFIG_UTRACE.
* testsuite/semko/utrace.stp: New test.
Diffstat (limited to 'tapset-utrace.cxx')
-rw-r--r-- | tapset-utrace.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tapset-utrace.cxx b/tapset-utrace.cxx index d2ce9dd7..4e98fbf6 100644 --- a/tapset-utrace.cxx +++ b/tapset-utrace.cxx @@ -118,6 +118,9 @@ utrace_derived_probe::utrace_derived_probe (systemtap_session &s, has_path(hp), path(pn), pid(pd), flags(f), target_symbol_seen(false) { + if (s.kernel_config["CONFIG_UTRACE"] != string("y")) + throw semantic_error ("process probes not available without kernel CONFIG_UTRACE"); + // Expand local variables in the probe body utrace_var_expanding_visitor v (s, l, name, flags); v.replace (this->body); |