]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix symbolic enum printing in ftrace output
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 18 Dec 2018 22:32:29 +0000 (14:32 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 19 Dec 2018 22:02:01 +0000 (14:02 -0800)
commitb0e9fc5b9572f7e618f020eeb6edeb88e30ef26f
tree30a2b71b5904cacbd4554951a38843b8074f9ff7
parent6e233b0dd34f9d8fceb8a5059f3535e43069b7a8
xfs: fix symbolic enum printing in ftrace output

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 <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_types.h
fs/xfs/xfs_aops.h
fs/xfs/xfs_trace.h