@cryptotaxi247 / netdata-1 / commits / 5194270c7

Remove unused script (#11516)

thiagoftsm committed Sep 15, 2021 at 18:41 UTC 5194270c73c1bfb616f3f40adc79b43ae9e3b955
4 files changed +6 -23
collectors/ebpf.plugin/Makefile.am
-9
@@ -3,10 +3,6 @@
3 AUTOMAKE_OPTIONS = subdir-objects
4 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
5
6 -CLEANFILES = \
7 - reset_netdata_trace.sh \
8 - $(NULL)
9 -
6 include $(top_srcdir)/build/subst.inc
7 SUFFIXES = .in
8
@@ -16,12 +12,7 @@ userebpfconfigdir=$(configdir)/ebpf.d
12 install-exec-local:
13 $(INSTALL) -d $(DESTDIR)$(userebpfconfigdir)
14
19 -dist_plugins_SCRIPTS = \
20 - reset_netdata_trace.sh \
21 - $(NULL)
22 -
15 dist_noinst_DATA = \
24 - reset_netdata_trace.sh.in \
16 README.md \
17 $(NULL)
18
collectors/ebpf.plugin/README.md
-5
@@ -597,9 +597,4 @@ shows how the lockdown module impacts `ebpf.plugin` based on the selected option
597 If you or your distribution compiled the kernel with the last combination, your system cannot load shared libraries
598 required to run `ebpf.plugin`.
599
600 -## Cleaning `kprobe_events`
601 -The eBPF collector adds entries to the file `/sys/kernel/debug/tracing/kprobe_events`, and cleans them on exit, unless
602 -another process prevents it. If you need to clean the eBPF entries safely, you can manually run the script
603 -`/usr/libexec/netdata/plugins.d/reset_netdata_trace.sh`.
604 -
600 [![analytics](https://www.google-analytics.com/collect?v=1&aip=1&t=pageview&_s=1&ds=github&dr=https%3A%2F%2Fgithub.com%2Fnetdata%2Fnetdata&dl=https%3A%2F%2Fmy-netdata.io%2Fgithub%2Fcollectors%2Febpf.plugin%2FREADME&_u=MAC~&cid=5792dfd7-8dc4-476b-af31-da2fdb9f93d2&tid=UA-64295674-3)](<>)
collectors/ebpf.plugin/reset_netdata_trace.sh.in deleted
-9
@@ -1,9 +0,0 @@
1 -#!/bin/bash
2 -
3 -KPROBE_FILE="/sys/kernel/debug/tracing/kprobe_events"
4 -
5 -DATA="$(grep _netdata_ $KPROBE_FILE| cut -d' ' -f1 | cut -d: -f2)"
6 -
7 -for I in $DATA; do
8 - echo "-:$I" > $KPROBE_FILE 2>/dev/null;
9 -done
netdata-installer.sh
+6
@@ -1665,6 +1665,12 @@ remove_old_ebpf() {
1665 echo >&2 "Removing old ebpf_kernel_reject_list.txt."
1666 rm -f "${NETDATA_PREFIX}/usr/lib/netdata/conf.d/ebpf_kernel_reject_list.txt"
1667 fi
1668 +
1669 + # Remove old reset script
1670 + if [ -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/reset_netdata_trace.sh" ]; then
1671 + echo >&2 "Removing old reset_netdata_trace.sh."
1672 + rm -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/reset_netdata_trace.sh"
1673 + fi
1674 }
1675
1676 install_ebpf() {