]> sourceware.org Git - systemtap.git/commitdiff
rhbz1972828: tapsets: iommu tracepoints
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 24 Jun 2021 17:30:38 +0000 (13:30 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 24 Jun 2021 17:30:38 +0000 (13:30 -0400)
Disable detection of intel-iommu tracepoint family on non-x86
platforms, because the 5.13ish kernel headers for this tracepoint
include references to functions like clcache_flush_range which don't
exist on all non-x86.

tapsets.cxx

index a5e41129f5e22593b9dfbb5e461a8d2d2cb6c85f..20e0cb68f3b2110f9cf6f0de1beda2e29eadc200 100644 (file)
@@ -11930,6 +11930,13 @@ static vector<string> tracepoint_extra_decls (systemtap_session& s,
        they_live.push_back ("#include <linux/phy.h>");
     }
 
+  if (header.find("intel_iommu") != string::npos && s.architecture != "x86_64" && s.architecture != "i386")
+    {
+      // need asm/cacheflush.h for clflush_cache_range() used in that header,
+      // but this function does not exist on e.g. ppc
+      they_live.push_back ("#error nope");
+    }
+
   if (header.find("wbt") != string::npos)
     {
       // blk-wbt.h gets included as "../../../block/blk-wbt.h", so we
This page took 0.041232 seconds and 5 git commands to generate.