remove redundant spaces
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
diff --git a/INSTALL.md b/INSTALL.md
index 383406b..f681ac6 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -392,7 +392,7 @@
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 61cee0f..ef102ba 100644
--- a/examples/networking/http_filter/http-parse-complete.c
+++ b/examples/networking/http_filter/http-parse-complete.c
@@ -100,7 +100,7 @@
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 292cb7b..9afbe1e 100644
--- a/examples/networking/http_filter/http-parse-simple.c
+++ b/examples/networking/http_filter/http-parse-simple.c
@@ -71,7 +71,7 @@
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 70240d8..4e4554e 100644
--- a/libbpf-tools/filetop.c
+++ b/libbpf-tools/filetop.c
@@ -195,7 +195,7 @@
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 7c7c6f5..a3a91f0 100644
--- a/libbpf-tools/oomkill.c
+++ b/libbpf-tools/oomkill.c
@@ -38,7 +38,7 @@
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 4bcc5fe..f4c24fd 100644
--- a/src/cc/perf_reader.c
+++ b/src/cc/perf_reader.c
@@ -93,7 +93,7 @@
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 90663a5..5cd75ab 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)
{