Skip to content

Commit

Permalink
tidy up: delete value after use
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Sep 25, 2015
1 parent 6b8add0 commit 3736885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/funclatency
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ int trace_func_return(struct pt_regs *ctx)
if (tsp == 0) {
return 0; // missed start
}
start.delete(&pid);
delta = bpf_ktime_get_ns() - *tsp;
start.delete(&pid);
FACTOR
// store as histogram
Expand Down

0 comments on commit 3736885

Please sign in to comment.