Skip to content

Commit

Permalink
uflow: drop unused timestamp field
Browse files Browse the repository at this point in the history
  • Loading branch information
myllynen committed Oct 5, 2018
1 parent 215fc84 commit 1c7e2a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/lib/uflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
struct call_t {
u64 depth; // first bit is direction (0 entry, 1 return)
u64 pid; // (tgid << 32) + pid from bpf_get_current...
u64 timestamp; // ns
char clazz[80];
char method[80];
};
Expand Down Expand Up @@ -89,7 +88,6 @@
FILTER_METHOD
data.pid = bpf_get_current_pid_tgid();
data.timestamp = bpf_ktime_get_ns();
depth = entry.lookup_or_init(&data.pid, &zero);
data.depth = DEPTH;
UPDATE
Expand Down Expand Up @@ -183,7 +181,6 @@ class CallEvent(ct.Structure):
_fields_ = [
("depth", ct.c_ulonglong),
("pid", ct.c_ulonglong),
("timestamp", ct.c_ulonglong),
("clazz", ct.c_char * 80),
("method", ct.c_char * 80)
]
Expand Down

0 comments on commit 1c7e2a8

Please sign in to comment.