Lines Matching refs:bpf_text
53 bpf_text = """#include <uapi/linux/ptrace.h> variable
58 bpf_text += "#define ONCPU\n"
60 bpf_text += """
129 bpf_text = bpf_text.replace('FILTER', 'tgid != %s' % args.pid) variable
131 bpf_text = bpf_text.replace('FILTER', '0') variable
133 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000000;') variable
136 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000;') variable
144 bpf_text = bpf_text.replace('STORAGE', variable
146 bpf_text = bpf_text.replace('STORE', variable
151 bpf_text = bpf_text.replace('STORAGE', 'BPF_HISTOGRAM(dist);') variable
152 bpf_text = bpf_text.replace('STORE', variable
155 print(bpf_text)
159 b = BPF(text=bpf_text)