Skip to content

Commit

Permalink
[eBPF] Modify warn-content that kernel address cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiping authored and lzf575 committed Sep 25, 2023
1 parent 0d1a19d commit 32cb26f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions agent/src/ebpf/user/profile/perf_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,12 @@ int start_continuous_profiler(int freq, tracer_callback_t callback)

if (check_kallsyms_addr_is_zero()) {
ebpf_warning(LOG_CP_TAG
"All kernel addresses in /proc/kallsyms are 0. Please add"
" 'CAP_SYSLOG' permission to the container to solve the "
"problem.\n");
"All kernel addresses in /proc/kallsyms are 0, Please"
" follow the steps below to resolve:\n"
"1 Make sure the content of the '/proc/sys/kernel/kpt"
"r_restrict' file is not 2, if it is 2 please set it "
"to 1.\n2 Add 'CAP_SYSLOG' permission to the containe"
"r.\n3 Restart the pod.");
return (-1);
}

Expand Down

0 comments on commit 32cb26f

Please sign in to comment.