Skip to content

Commit

Permalink
remove redundant spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Yuntao Wang <[email protected]>
  • Loading branch information
ytcoode authored and yonghong-song committed Feb 19, 2022
1 parent 6ff0511 commit 6ae2077
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ make -j10
make install
```
after install , you may add bcc directory to your $PATH, which you can add to ~/.bashrc
after install, you may add bcc directory to your $PATH, which you can add to ~/.bashrc
```
bcctools=/usr/share/bcc/tools
bccexamples=/usr/share/bcc/examples
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/http_filter/http-parse-complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int http_filter(struct __sk_buff *skb) {
unsigned long p[7];
int i = 0;
for (i = 0; i < 7; i++) {
p[i] = load_byte(skb , payload_offset + i);
p[i] = load_byte(skb, payload_offset + i);
}

//find a match with an HTTP message
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/http_filter/http-parse-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int http_filter(struct __sk_buff *skb) {
unsigned long p[7];
int i = 0;
for (i = 0; i < 7; i++) {
p[i] = load_byte(skb , payload_offset + i);
p[i] = load_byte(skb, payload_offset + i);
}

//find a match with an HTTP message
Expand Down
2 changes: 1 addition & 1 deletion libbpf-tools/filetop.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static int print_stat(struct filetop_bpf *obj)
time(&t);
tm = localtime(&t);
strftime(ts, sizeof(ts), "%H:%M:%S", tm);
memset(buf, 0 , sizeof(buf));
memset(buf, 0, sizeof(buf));
n = fread(buf, 1, sizeof(buf), f);
if (n)
printf("%8s loadavg: %s\n", ts, buf);
Expand Down
2 changes: 1 addition & 1 deletion libbpf-tools/oomkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static void handle_event(void *ctx, int cpu, void *data, __u32 data_sz)

f = fopen("/proc/loadavg", "r");
if (f) {
memset(buf, 0 , sizeof(buf));
memset(buf, 0, sizeof(buf));
n = fread(buf, 1, sizeof(buf), f);
fclose(f);
}
Expand Down
2 changes: 1 addition & 1 deletion src/cc/perf_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int perf_reader_mmap(struct perf_reader *reader) {
return -1;
}

reader->base = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE , MAP_SHARED, reader->fd, 0);
reader->base = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, reader->fd, 0);
if (reader->base == MAP_FAILED) {
perror("mmap");
return -1;
Expand Down
2 changes: 1 addition & 1 deletion tools/ext4slower.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
// own function, for reads. So we need to trace that and then filter on ext4,
// which I do by checking file->f_op.
// The new Linux version (since form 4.10) uses ext4_file_read_iter(), And if the 'CONFIG_FS_DAX'
// is not set ,then ext4_file_read_iter() will call generic_file_read_iter(), else it will call
// is not set, then ext4_file_read_iter() will call generic_file_read_iter(), else it will call
// ext4_dax_read_iter(), and trace generic_file_read_iter() will fail.
int trace_read_entry(struct pt_regs *ctx, struct kiocb *iocb)
{
Expand Down

0 comments on commit 6ae2077

Please sign in to comment.