Skip to content

Commit

Permalink
tools: Remove unused variable stub
Browse files Browse the repository at this point in the history
Signed-off-by: Hengqi Chen <[email protected]>
  • Loading branch information
chenhengqi committed Oct 17, 2021
1 parent 4f64e93 commit b271b8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tools/readahead.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"""

bpf_text_kfunc = """
KFUNC_PROBE(RA_FUNC, void *unused)
KFUNC_PROBE(RA_FUNC)
{
u32 pid = bpf_get_current_pid_tgid();
u8 one = 1;
Expand All @@ -102,7 +102,7 @@
return 0;
}
KRETFUNC_PROBE(RA_FUNC, void *unused)
KRETFUNC_PROBE(RA_FUNC)
{
u32 pid = bpf_get_current_pid_tgid();
u8 zero = 0;
Expand Down
10 changes: 5 additions & 5 deletions tools/vfsstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def usage():
"""

bpf_text_kfunc = """
KFUNC_PROBE(vfs_read, int unused) { stats_increment(S_READ); return 0; }
KFUNC_PROBE(vfs_write, int unused) { stats_increment(S_WRITE); return 0; }
KFUNC_PROBE(vfs_fsync, int unused) { stats_increment(S_FSYNC); return 0; }
KFUNC_PROBE(vfs_open, int unused) { stats_increment(S_OPEN); return 0; }
KFUNC_PROBE(vfs_create, int unused) { stats_increment(S_CREATE); return 0; }
KFUNC_PROBE(vfs_read) { stats_increment(S_READ); return 0; }
KFUNC_PROBE(vfs_write) { stats_increment(S_WRITE); return 0; }
KFUNC_PROBE(vfs_fsync) { stats_increment(S_FSYNC); return 0; }
KFUNC_PROBE(vfs_open) { stats_increment(S_OPEN); return 0; }
KFUNC_PROBE(vfs_create) { stats_increment(S_CREATE); return 0; }
"""

is_support_kfunc = BPF.support_kfunc()
Expand Down

0 comments on commit b271b8a

Please sign in to comment.