From 515a6a2d63cdf16c5bc599f0d29283289219d9a4 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 24 Jun 2021 13:30:38 -0400 Subject: [PATCH] rhbz1972828: tapsets: iommu tracepoints 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tapsets.cxx b/tapsets.cxx index a5e41129f..20e0cb68f 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -11930,6 +11930,13 @@ static vector tracepoint_extra_decls (systemtap_session& s, they_live.push_back ("#include "); } + 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 -- 2.43.5