tools: remove unnecessary calls to bpf_probe_read
Most of these calls have been rendered useless by a9f96c0 ("Recognize
context member dereferences despite array accesses (#1828)").
diff --git a/tools/runqslower.py b/tools/runqslower.py
index a28a823..7a1869c 100755
--- a/tools/runqslower.py
+++ b/tools/runqslower.py
@@ -145,11 +145,7 @@
{
// TP_PROTO(struct task_struct *p)
struct task_struct *p = (struct task_struct *)ctx->args[0];
- u32 tgid, pid;
-
- bpf_probe_read(&tgid, sizeof(tgid), &p->tgid);
- bpf_probe_read(&pid, sizeof(pid), &p->pid);
- return trace_enqueue(tgid, pid);
+ return trace_enqueue(p->tgid, p->pid);
}
RAW_TRACEPOINT_PROBE(sched_wakeup_new)