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
2525 struct user_reg {
2626
2727 /* Input: Size of the user_reg structure being used */
28− __u32 size;
28+ __u32 size;
2929
3030 /* Input: Bit in enable address to use */
31− __u8 enable_bit;
31+ __u8 enable_bit;
3232
3333 /* Input: Enable size in bytes at address */
34− __u8 enable_size;
34+ __u8 enable_size;
3535
3636 /* Input: Flags for future use, set to 0 */
37− __u16 flags;
37+ __u16 flags;
3838
3939 /* Input: Address to update when enabled */
40− __u64 enable_addr;
40+ __u64 enable_addr;
4141
4242 /* Input: Pointer to string with event name, description and flags */
43− __u64 name_args;
43+ __u64 name_args;
4444
4545 /* Output: Index of the event to use when writing data */
46− __u32 write_index;
46+ __u32 write_index;
4747 } __attribute__((__packed__));
4848
4949 /*
@@ -52,19 +52,19 @@ struct user_reg { · 2 unmodified lines
5252 */
5353 struct user_unreg {
5454 /* Input: Size of the user_unreg structure being used */
55− __u32 size;
55+ __u32 size;
5656
5757 /* Input: Bit to unregister */
58− __u8 disable_bit;
58+ __u8 disable_bit;
5959
6060 /* Input: Reserved, set to 0 */
61− __u8 __reserved;
61+ __u8 __reserved;
6262
6363 /* Input: Reserved, set to 0 */
64− __u16 __reserved2;
64+ __u16 __reserved2;
6565
6666 /* Input: Address to unregister */
67− __u64 disable_addr;
67+ __u64 disable_addr;
6868 } __attribute__((__packed__));
6969
7070 #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