summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-17 12:28:11 -0700
committerJosh Stone <jistone@redhat.com>2010-03-17 12:28:11 -0700
commit4763f7139043dccebdc110fe1d8912670c528c70 (patch)
tree1d8a77a59ce28a760e38a1b9280dd5351424b4ce /tapsets.cxx
parent83ea76b1c27ffd25dfcec5805f54cc5e29d80bf7 (diff)
downloadsystemtap-steved-4763f7139043dccebdc110fe1d8912670c528c70.tar.gz
systemtap-steved-4763f7139043dccebdc110fe1d8912670c528c70.tar.xz
systemtap-steved-4763f7139043dccebdc110fe1d8912670c528c70.zip
Move the perf CONFIG check
IMO, it's better to contain the CONFIG check inside the perf code. * tapsets.cxx (register_standard_tapsets): Always call perf register. * tapset-perfmon.cxx (register_tapset_perf): Do the CONFIG check here.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index a1474617..4b6a3781 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6724,9 +6724,7 @@ register_standard_tapsets(systemtap_session & s)
// length supported with address only, not symbol names
//perf event based probe
- if (s.kernel_config["CONFIG_PERF_EVENTS"] == string("y") ) {
- register_tapset_perf(s);
- }
+ register_tapset_perf(s);
}