From 3eb6b5635b6a191d48d4dbfe00acd8cbd5dffe41 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 27 Feb 2019 17:13:45 -0600 Subject: [PATCH] xfs: fix symbolic enum printing in ftrace output Source kernel commit: 85f8dff00a3193fe5659aa4c91adde31723c0d3d ftrace's __print_symbolic() has a (very poorly documented) requirement that any enum values used in the symbol to string translation table be wrapped in a TRACE_DEFINE_ENUM so that the enum value can be encoded in the ftrace ring buffer. Fix this unsatisfied requirement. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- libxfs/xfs_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index b9e6c8928..9a6541872 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -100,6 +100,10 @@ typedef void * xfs_failaddr_t; */ #define MAXNAMELEN 256 +/* + * This enum is used in string mapping in xfs_trace.h; please keep the + * TRACE_DEFINE_ENUMs for it up to date. + */ typedef enum { XFS_LOOKUP_EQi, XFS_LOOKUP_LEi, XFS_LOOKUP_GEi } xfs_lookup_t; -- 2.47.2