diff options
author | bolinfest <bolinfest@gmail.com> | 2018-09-21 14:06:33 -0700 |
---|---|---|
committer | yonghong-song <ys114321@gmail.com> | 2018-09-21 14:06:33 -0700 |
commit | 89aefcc9a89216da3558b891e0d6cb235b0e07a0 (patch) | |
tree | 756c0c674bd4ca440a038ec3ff2c9f6eba108001 | |
parent | f7b1fb340f99cd7dc1caf76f71ce955bbf090cc2 (diff) | |
download | bcc-89aefcc9a89216da3558b891e0d6cb235b0e07a0.zip bcc-89aefcc9a89216da3558b891e0d6cb235b0e07a0.tar.gz bcc-89aefcc9a89216da3558b891e0d6cb235b0e07a0.tar.bz2 |
Remove unused ts field in val_t in opensnoop.py. (#1981)
Note this allows us to eliminate the `bpf_ktime_get_ns()`
call from `trace_entry()`.
-rwxr-xr-x | tools/opensnoop.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/opensnoop.py b/tools/opensnoop.py index e1a0108..a0657d4 100755 --- a/tools/opensnoop.py +++ b/tools/opensnoop.py @@ -61,7 +61,6 @@ bpf_text = """ struct val_t { u64 id; - u64 ts; char comm[TASK_COMM_LEN]; const char *fname; }; @@ -87,7 +86,6 @@ int trace_entry(struct pt_regs *ctx, int dfd, const char __user *filename) FILTER if (bpf_get_current_comm(&val.comm, sizeof(val.comm)) == 0) { val.id = id; - val.ts = bpf_ktime_get_ns(); val.fname = filename; infotmp.update(&id, &val); } |