summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/reset_netdata_trace.sh.in
blob: 51d981ee3d373072ef643f9ba11b7c002b337c3d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

KPROBE_FILE="/sys/kernel/debug/tracing/kprobe_events"

DATA="$(grep _netdata_ $KPROBE_FILE| cut -d' ' -f1 | cut -d: -f2)"

for I in $DATA; do
    echo "-:$I" > $KPROBE_FILE 2>/dev/null;
done