Skip to content

Commit

Permalink
Update pid filter
Browse files Browse the repository at this point in the history
Update pid filter;  u32 pid = bpf_get_current_pid_tgid() >> 32;
  • Loading branch information
DavadDi authored and yonghong-song committed Apr 6, 2020
1 parent 5057bbe commit 15d7955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/filelife.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
// trace file creation time
int trace_create(struct pt_regs *ctx, struct inode *dir, struct dentry *dentry)
{
u32 pid = bpf_get_current_pid_tgid();
u32 pid = bpf_get_current_pid_tgid() >> 32;
FILTER
u64 ts = bpf_ktime_get_ns();
Expand All @@ -70,7 +70,7 @@
int trace_unlink(struct pt_regs *ctx, struct inode *dir, struct dentry *dentry)
{
struct data_t data = {};
u32 pid = bpf_get_current_pid_tgid();
u32 pid = bpf_get_current_pid_tgid() >> 32;
FILTER
Expand Down

0 comments on commit 15d7955

Please sign in to comment.