]> sourceware.org Git - systemtap.git/commitdiff
PR23488: support CONFIG_DEBUG_INFO_REDUCED kernels for typequery/tracequery .ko's
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 6 Aug 2018 22:29:23 +0000 (18:29 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 6 Aug 2018 22:29:23 +0000 (18:29 -0400)
This kconfig parameter kills use of @cast() and probably some
kernel.trace() usage, so we override it in those Makefiles.
(PS.  Real friends stop friends from reducing debuginfo.)

Reported-by: invano on #systemtap irc
buildrun.cxx

index 59b9e88caa7e72eb42355e64b20777f8f9440dfe..0e94ebcbd5f8ac84a16263f3f1ac5840c417ff0b 100644 (file)
@@ -931,7 +931,8 @@ make_tracequeries(systemtap_session& s, const map<string,string>& contents)
   omf << "EXTRA_CFLAGS := -g -Wno-implicit-function-declaration " << WERROR << endl;
   // RHBZ 655231: later rhel6 kernels' module-signing kbuild logic breaks out-of-tree modules
   omf << "CONFIG_MODULE_SIG := n" << endl;
-
+  // PR23488: need to override this kconfig, else we get no useful struct decls
+  omf << "CONFIG_DEBUG_INFO_REDUCED := " << endl;
   // PR18389: disable GCC's Identical Code Folding, since the stubs may look identical
   omf << "EXTRA_CFLAGS += $(call cc-option,-fno-ipa-icf)" << endl;
 
@@ -1009,6 +1010,9 @@ make_typequery_kmod(systemtap_session& s, const vector<string>& headers, string&
   // RHBZ 655231: later rhel6 kernels' module-signing kbuild logic breaks out-of-tree modules
   omf << "CONFIG_MODULE_SIG := n" << endl;
 
+  // PR23488: need to override this kconfig, else we get no useful struct decls
+  omf << "CONFIG_DEBUG_INFO_REDUCED := " << endl;
+  
   // NB: We use -include instead of #include because that gives us more power.
   // Using #include searches relative to the source's path, which in this case
   // is /tmp/..., so that's not helpful.  Using -include will search relative
This page took 0.026756 seconds and 5 git commands to generate.