From: Darrick J. Wong Date: Wed, 27 Feb 2019 23:13:45 +0000 (-0600) Subject: xfs: fix symbolic enum printing in ftrace output X-Git-Tag: v5.0.0-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb6b5635b6a191d48d4dbfe00acd8cbd5dffe41;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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;