ebpf_functions.h 989 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_EBPF_FUNCTIONS_H
  3. #define NETDATA_EBPF_FUNCTIONS_H 1
  4. // configuration file & description
  5. #define NETDATA_DIRECTORY_FUNCTIONS_CONFIG_FILE "functions.conf"
  6. #define NETDATA_EBPF_FUNCTIONS_MODULE_DESC "Show information about current function status."
  7. // function list
  8. #define EBPF_FUNCTION_THREAD "ebpf_thread"
  9. #define EBPF_PLUGIN_THREAD_FUNCTION_DESCRIPTION "Detailed information about eBPF threads."
  10. #define EBPF_PLUGIN_THREAD_FUNCTION_ERROR_THREAD_NOT_FOUND "ebpf.plugin does not have thread named "
  11. #define EBPF_PLUGIN_FUNCTIONS(NAME, DESC) do { \
  12. fprintf(stdout, PLUGINSD_KEYWORD_FUNCTION " \"" NAME "\" 10 \"%s\"\n", DESC); \
  13. } while(0)
  14. #define EBPF_THREADS_SELECT_THREAD "thread:"
  15. #define EBPF_THREADS_ENABLE_CATEGORY "enable:"
  16. #define EBPF_THREADS_DISABLE_CATEGORY "disable:"
  17. #define EBPF_THREAD_STATUS_RUNNING "running"
  18. #define EBPF_THREAD_STATUS_STOPPED "stopped"
  19. void *ebpf_function_thread(void *ptr);
  20. #endif