summaryrefslogtreecommitdiffstats
path: root/src/collectors/ebpf.plugin/ebpf.c
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2024-05-23 17:38:51 +0300
committerGitHub <noreply@github.com>2024-05-23 14:38:51 +0000
commited6d0c4542bc7941a808961c94a4d81f4cebb478 (patch)
tree5e1ae97431d8608a5c96e678b7fa9b2885a12bfa /src/collectors/ebpf.plugin/ebpf.c
parente9b53787db1780bda498a6299de786834a579dc3 (diff)
Simplify and unify the way we are handling versions. (#17693)
* Define a single variable to identify OS. * Remove comments. * Move version-detection logic to separate module. * s/VERSION/NETDATA_VERSION/g * Hard-code NETDATA_VERSION wherever possible. Now `program_version` is only used for getting or setting the host's field. * Update version variables * Add license, fix variable name and provide better message.
Diffstat (limited to 'src/collectors/ebpf.plugin/ebpf.c')
-rw-r--r--src/collectors/ebpf.plugin/ebpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collectors/ebpf.plugin/ebpf.c b/src/collectors/ebpf.plugin/ebpf.c
index 92af75f100..de2b6e1444 100644
--- a/src/collectors/ebpf.plugin/ebpf.c
+++ b/src/collectors/ebpf.plugin/ebpf.c
@@ -2272,7 +2272,7 @@ void ebpf_print_help()
"\n"
" [-]-core Use CO-RE when available(Working in progress).\n"
"\n",
- VERSION,
+ NETDATA_VERSION,
(year >= 116) ? year + 1900 : 2020);
}
@@ -3249,7 +3249,7 @@ static void ebpf_parse_args(int argc, char **argv)
break;
}
case EBPF_OPTION_VERSION: {
- printf("ebpf.plugin %s\n", VERSION);
+ printf("ebpf.plugin %s\n", NETDATA_VERSION);
exit(0);
}
case EBPF_OPTION_HELP: {