This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] don't require .config and Module.symvers for dyninst runtime
- From: Adrian Negreanu <groleo at gmail dot com>
- To: systemtap at sourceware dot org
- Cc: Adrian Negreanu <adrian dot m dot negreanu at intel dot com>
- Date: Fri, 8 Nov 2013 15:24:08 +0200
- Subject: [PATCH] don't require .config and Module.symvers for dyninst runtime
- Authentication-results: sourceware.org; auth=none
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