Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Execute a Memory Diagnosis Task

Symptom

Failed to execute a memory diagnosis task.

Possible Causes

Kernel parameters are incorrectly set.

Troubleshooting Procedure

Ensure that the kernel configuration is as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
CONFIG_UPROBES=y
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
# [optional, for tc filters]
CONFIG_NET_CLS_BPF=m
# [optional, for tc actions]
CONFIG_NET_ACT_BPF=m
CONFIG_BPF_JIT=y
# [for Linux kernel versions 4.1 through 4.6]
CONFIG_HAVE_BPF_JIT=y
# [for Linux kernel versions 4.7 and later]
CONFIG_HAVE_EBPF_JIT=y
# [optional, for kprobes]
CONFIG_BPF_EVENTS=y
# Need kernel headers through /sys/kernel/kheaders.tar.xz
CONFIG_IKHEADERS=y

BCC is used for data collection in a memory diagnosis task. For more possible causes and troubleshooting operations, see Installing BCC.