History

tracing/user_events: Align structs with tabs for readability

Add tabs to make struct members easier to read and unify the style of the code. Link: https://lkml.kernel.org/r/20230328235219.203-13-beaub@linux.microsoft.com

Beau Belgrave committed 3 years ago

Commit a4c40c11 parent ce58e963 files · +60 −60Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/user_events.h+12−12
@@ -25,25 +25,25 @@ · 24 unmodified lines
25struct user_reg {25struct user_reg {
26 26
27 /* Input: Size of the user_reg structure being used */27 /* Input: Size of the user_reg structure being used */
28 __u32 size;28 __u32 size;
29 29
30 /* Input: Bit in enable address to use */30 /* Input: Bit in enable address to use */
31 __u8 enable_bit;31 __u8 enable_bit;
32 32
33 /* Input: Enable size in bytes at address */33 /* Input: Enable size in bytes at address */
34 __u8 enable_size;34 __u8 enable_size;
35 35
36 /* Input: Flags for future use, set to 0 */36 /* Input: Flags for future use, set to 0 */
37 __u16 flags;37 __u16 flags;
38 38
39 /* Input: Address to update when enabled */39 /* Input: Address to update when enabled */
40 __u64 enable_addr;40 __u64 enable_addr;
41 41
42 /* Input: Pointer to string with event name, description and flags */42 /* Input: Pointer to string with event name, description and flags */
43 __u64 name_args;43 __u64 name_args;
44 44
45 /* Output: Index of the event to use when writing data */45 /* Output: Index of the event to use when writing data */
46 __u32 write_index;46 __u32 write_index;
47} __attribute__((__packed__));47} __attribute__((__packed__));
48 48
49/*49/*
@@ -52,19 +52,19 @@ struct user_reg { · 2 unmodified lines
52 */52 */
53struct user_unreg {53struct user_unreg {
54 /* Input: Size of the user_unreg structure being used */54 /* Input: Size of the user_unreg structure being used */
55 __u32 size;55 __u32 size;
56 56
57 /* Input: Bit to unregister */57 /* Input: Bit to unregister */
58 __u8 disable_bit;58 __u8 disable_bit;
59 59
60 /* Input: Reserved, set to 0 */60 /* Input: Reserved, set to 0 */
61 __u8 __reserved;61 __u8 __reserved;
62 62
63 /* Input: Reserved, set to 0 */63 /* Input: Reserved, set to 0 */
64 __u16 __reserved2;64 __u16 __reserved2;
65 65
66 /* Input: Address to unregister */66 /* Input: Address to unregister */
67 __u64 disable_addr;67 __u64 disable_addr;
68} __attribute__((__packed__));68} __attribute__((__packed__));
69 69
70#define DIAG_IOC_MAGIC '*'70#define DIAG_IOC_MAGIC '*'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t