diff --git a/INSTALL.md b/INSTALL.md index 383406b0513b..f681ac62ebd4 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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 diff --git a/examples/networking/http_filter/http-parse-complete.c b/examples/networking/http_filter/http-parse-complete.c index 61cee0fbab4c..ef102ba70a44 100644 --- a/examples/networking/http_filter/http-parse-complete.c +++ b/examples/networking/http_filter/http-parse-complete.c @@ -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 diff --git a/examples/networking/http_filter/http-parse-simple.c b/examples/networking/http_filter/http-parse-simple.c index 292cb7b44dd5..9afbe1ec05e3 100644 --- a/examples/networking/http_filter/http-parse-simple.c +++ b/examples/networking/http_filter/http-parse-simple.c @@ -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 diff --git a/libbpf-tools/filetop.c b/libbpf-tools/filetop.c index 70240d85e472..4e4554e0c5d3 100644 --- a/libbpf-tools/filetop.c +++ b/libbpf-tools/filetop.c @@ -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); diff --git a/libbpf-tools/oomkill.c b/libbpf-tools/oomkill.c index 7c7c6f57db2e..a3a91f0f8ccd 100644 --- a/libbpf-tools/oomkill.c +++ b/libbpf-tools/oomkill.c @@ -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); } diff --git a/src/cc/perf_reader.c b/src/cc/perf_reader.c index 4bcc5fed8398..f4c24fddbd33 100644 --- a/src/cc/perf_reader.c +++ b/src/cc/perf_reader.c @@ -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; diff --git a/tools/ext4slower.py b/tools/ext4slower.py index 90663a5854d5..5cd75abc3f52 100755 --- a/tools/ext4slower.py +++ b/tools/ext4slower.py @@ -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) {