Commit 0698ac66 authored by Ian Rogers's avatar Ian Rogers Committed by Daniel Borkmann

tools, bpftool: Remove two unused variables.

Avoid an unused variable warning.
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Reviewed-by: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201027233646.3434896-2-irogers@google.com
parent 1e6f5dcc
...@@ -70,7 +70,7 @@ int BPF_PROG(fentry_XXX) ...@@ -70,7 +70,7 @@ int BPF_PROG(fentry_XXX)
static inline void static inline void
fexit_update_maps(u32 id, struct bpf_perf_event_value *after) fexit_update_maps(u32 id, struct bpf_perf_event_value *after)
{ {
struct bpf_perf_event_value *before, diff, *accum; struct bpf_perf_event_value *before, diff;
before = bpf_map_lookup_elem(&fentry_readings, &id); before = bpf_map_lookup_elem(&fentry_readings, &id);
/* only account samples with a valid fentry_reading */ /* only account samples with a valid fentry_reading */
...@@ -95,7 +95,7 @@ int BPF_PROG(fexit_XXX) ...@@ -95,7 +95,7 @@ int BPF_PROG(fexit_XXX)
{ {
struct bpf_perf_event_value readings[MAX_NUM_MATRICS]; struct bpf_perf_event_value readings[MAX_NUM_MATRICS];
u32 cpu = bpf_get_smp_processor_id(); u32 cpu = bpf_get_smp_processor_id();
u32 i, one = 1, zero = 0; u32 i, zero = 0;
int err; int err;
u64 *count; u64 *count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment