]> sourceware.org Git - systemtap.git/commitdiff
Update tracepoint finding logic for the 'swiotlb' tracepoint group.
authorDavid Smith <dsmith@redhat.com>
Wed, 5 Apr 2017 17:50:43 +0000 (12:50 -0500)
committerDavid Smith <dsmith@redhat.com>
Wed, 5 Apr 2017 17:50:43 +0000 (12:50 -0500)
* tapsets.cxx (tracepoint_extra_decls): Add support for the 'swiotlb'
  tracepoint group.

tapsets.cxx

index ef86fc109910dc321e24a51e8cd08081aed4b497..40db2e0bd10bed9b58cb77f78870de9ce1625bfb 100644 (file)
@@ -11189,6 +11189,12 @@ static vector<string> tracepoint_extra_decls (systemtap_session& s,
        they_live.push_back ("#include <linux/blkdev.h>");
     }
 
+  if (header.find("swiotlb") != string::npos)
+    {
+      if (header_exists(s, "/include/linux/swiotlb.h"))
+       they_live.push_back ("#include <linux/swiotlb.h>");
+    }
+
   return they_live;
 }
 
This page took 0.040854 seconds and 5 git commands to generate.