Skip to content

Commit 6da721e

Browse files
committed
Remove extra whitespace at the end of a line.
1 parent 5bbcfb1 commit 6da721e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/tracing/undump.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22
# @lint-avoid-python-3-compatibility-imports
3-
#
3+
#
44
# undump Dump UNIX socket packets.
55
# For Linux, uses BCC, eBPF. Embedded C.
66
# USAGE: undump [-h] [-t] [-p PID]
@@ -35,7 +35,7 @@
3535
description="Dump UNIX socket packets",
3636
formatter_class=argparse.RawDescriptionHelpFormatter,
3737
epilog=examples)
38-
38+
3939
parser.add_argument("-p", "--pid",
4040
help="trace this PID only")
4141
args = parser.parse_args()
@@ -75,22 +75,22 @@
7575
7676
FILTER_PID
7777
78-
struct sk_buff *skb = (struct sk_buff *)PT_REGS_PARM1(ctx);
78+
struct sk_buff *skb = (struct sk_buff *)PT_REGS_PARM1(ctx);
7979
8080
struct recv_data_t *data = unix_data.lookup(&zero);
81-
if (!data)
81+
if (!data)
8282
return 0;
8383
8484
unsigned int data_len = skb->len;
8585
if(data_len > MAX_PKT)
8686
return 0;
87-
87+
8888
void *iodata = (void *)skb->data;
8989
data->recv_len = data_len;
90-
90+
9191
bpf_probe_read(data->pkt, data_len, iodata);
9292
unix_recv_events.perf_submit(ctx, data, data_len+sizeof(u32));
93-
93+
9494
return 0;
9595
}
9696
"""

examples/tracing/undump_example.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Tracing PID=49264 UNIX socket packets ... Hit Ctrl-C to end
2929

3030
# Here print bytes of receive
3131
PID 49264 Recv 13 bytes
32-
48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 0a
32+
48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 0a
3333
PID 49264 Recv 8 bytes
3434
61 62 63 64 65 66 67 0a
3535
```

0 commit comments

Comments
 (0)