[PATCH] don't require .config and Module.symvers for dyninst runtime

Adrian Negreanu groleo@gmail.com
Fri Nov 8 13:22:00 GMT 2013


From: Adrian Negreanu <adrian.m.negreanu@intel.com>

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
---
 main.cxx | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/main.cxx b/main.cxx
index 1fb056b..effc794 100644
--- a/main.cxx
+++ b/main.cxx
@@ -405,14 +405,16 @@ passes_0_4 (systemtap_session &s)
     }
 
   // Now that no further changes to s.kernel_build_tree can occur, let's use it.
-  if ((rc = s.parse_kernel_config ()) != 0
-      || (rc = s.parse_kernel_exports ()) != 0
-      || (rc = s.parse_kernel_functions ()) != 0)
-    {
-      // Try again with a server
-      s.set_try_server ();
-      return rc;
-    }
+  if (s.runtime_mode == systemtap_session::kernel_runtime) {
+    if ((rc = s.parse_kernel_config ()) != 0
+        || (rc = s.parse_kernel_exports ()) != 0
+        || (rc = s.parse_kernel_functions ()) != 0)
+      {
+        // Try again with a server
+        s.set_try_server ();
+        return rc;
+      }
+  }
 
   // Create the name of the C source file within the temporary
   // directory.  Note the _src prefix, explained in
-- 
1.8.0



More information about the Systemtap mailing list