From 88637c31488f4987cc63c3f71263917dd98ca9cf Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 20 Oct 2010 11:51:34 -0400 Subject: [PATCH] PR10745: access hidden kernel tracepoints Including xfs_types.h unconditionally on installations with no kernel debuginfo would cause normal tracepoint processing to fail too. * tapsets.cxx (tracepoint_extra_decls): Include xfs_types.h only if we know the kernel source tree. --- tapsets.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tapsets.cxx b/tapsets.cxx index 4db4f1345..9e9244203 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -7898,7 +7898,8 @@ static vector tracepoint_extra_decls (systemtap_session& s) if (s.kernel_config["CONFIG_XFS_FS"] != string("")) { they_live.push_back ("#define XFS_BIG_BLKNOS 1"); - they_live.push_back ("#include \"fs/xfs/xfs_types.h\""); // in kernel-source tree + if (s.kernel_source_tree != "") + they_live.push_back ("#include \"fs/xfs/xfs_types.h\""); // in kernel-source tree they_live.push_back ("struct xfs_mount;"); they_live.push_back ("struct xfs_inode;"); they_live.push_back ("struct xfs_buf;"); -- 2.43.5