Add support for printing kernel traces

Add a 'trace' command which uses the debugfs file created by the scoutfs
kernel module to read and print trace messages.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-05-28 11:10:08 -07:00
parent 29c1f529f1
commit 54867b0f9c
3 changed files with 201 additions and 0 deletions
+2
View File
@@ -24,12 +24,14 @@ extern unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char);
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef int s32;
typedef unsigned long long u64;
typedef signed long long s64;
typedef u8 __u8;
typedef u16 __u16;
typedef u32 __u32;
typedef s32 __s32;
typedef u64 __u64;
typedef u16 __bitwise __le16;