tools/bpf: Remove unused variable from runqslower
authorZhu Jun <zhujun2@cmss.chinamobile.com>
Wed, 25 Sep 2024 10:00:05 +0000 (03:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Oct 2024 00:47:35 +0000 (17:47 -0700)
This variable is never referenced in the code, just remove it.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240925100005.3989-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/runqslower/runqslower.bpf.c

index 9a5c1f008fe60302d36df1fcb259b14767011b57..fced54a3adf642d96db7b0edc6f5b0b6bd3a5265 100644 (file)
@@ -70,7 +70,6 @@ int handle__sched_switch(u64 *ctx)
        struct task_struct *next = (struct task_struct *)ctx[2];
        struct runq_event event = {};
        u64 *tsp, delta_us;
-       long state;
        u32 pid;
 
        /* ivcsw: treat like an enqueue event and store timestamp */