projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e6f5dc
)
tools, bpftool: Remove two unused variables.
author
Ian Rogers
<irogers@google.com>
Tue, 27 Oct 2020 23:36:46 +0000
(16:36 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 29 Oct 2020 14:23:18 +0000
(15:23 +0100)
Avoid an unused variable warning.
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20201027233646.3434896-2-irogers@google.com
tools/bpf/bpftool/skeleton/profiler.bpf.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/skeleton/profiler.bpf.c
b/tools/bpf/bpftool/skeleton/profiler.bpf.c
index
4e3512f
..
ce5b65e
100644
(file)
--- a/
tools/bpf/bpftool/skeleton/profiler.bpf.c
+++ b/
tools/bpf/bpftool/skeleton/profiler.bpf.c
@@
-70,7
+70,7
@@
int BPF_PROG(fentry_XXX)
static inline void
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);
/* only account samples with a valid fentry_reading */
@@
-95,7
+95,7
@@
int BPF_PROG(fexit_XXX)
{
struct bpf_perf_event_value readings[MAX_NUM_MATRICS];
u32 cpu = bpf_get_smp_processor_id();
- u32 i,
one = 1,
zero = 0;
+ u32 i, zero = 0;
int err;
u64 *count;