From 4763f7139043dccebdc110fe1d8912670c528c70 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 17 Mar 2010 12:28:11 -0700 Subject: 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. --- tapsets.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tapsets.cxx') 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); } -- cgit