Home
last modified time | relevance | path

Searched refs:bpf_text (Results 1 – 25 of 92) sorted by relevance

1234

/external/bcc/tools/
Drunqlat.py69 bpf_text = """ variable
206 bpf_text += bpf_text_raw_tp
208 bpf_text += bpf_text_kprobe
213 bpf_text = bpf_text.replace('FILTER', 'tgid != %s' % args.pid) variable
215 bpf_text = bpf_text.replace('FILTER', '0') variable
217 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000000;') variable
220 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000;') variable
228 bpf_text = bpf_text.replace('STORAGE', variable
230 bpf_text = bpf_text.replace('STORE', variable
235 bpf_text = bpf_text.replace('STORAGE', variable
[all …]
Dcpudist.py53 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
[all …]
Dfunclatency.py100 bpf_text = """ variable
158 bpf_text = bpf_text.replace('FILTER', variable
161 bpf_text = bpf_text.replace('FILTER', '') variable
163 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000000;') variable
166 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000;') variable
169 bpf_text = bpf_text.replace('FACTOR', '') variable
172 bpf_text = bpf_text.replace('STORAGE', 'BPF_HASH(ipaddr, u32);\n' + variable
175 bpf_text = bpf_text.replace('ENTRYSTORE', variable
178 bpf_text = bpf_text.replace('STORE', variable
192 bpf_text = bpf_text.replace('STORAGE', 'BPF_HISTOGRAM(dist);') variable
[all …]
Dbiolatency.py50 bpf_text = """ variable
92 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000000;') variable
95 bpf_text = bpf_text.replace('FACTOR', 'delta /= 1000;') variable
98 bpf_text = bpf_text.replace('STORAGE', variable
100 bpf_text = bpf_text.replace('STORE', variable
106 bpf_text = bpf_text.replace('STORAGE', 'BPF_HISTOGRAM(dist);') variable
107 bpf_text = bpf_text.replace('STORE', variable
110 print(bpf_text)
115 b = BPF(text=bpf_text)
Dtcpretrans.py46 bpf_text = """ variable
187 bpf_text = bpf_text.replace("IPV4_INIT", struct_init['ipv4']['count']) variable
188 bpf_text = bpf_text.replace("IPV6_INIT", struct_init['ipv6']['count']) variable
189 bpf_text = bpf_text.replace("IPV4_CORE", count_core_base.replace("COUNT_STRUCT", 'ipv4_count')) variable
190 bpf_text = bpf_text.replace("IPV6_CORE", count_core_base.replace("COUNT_STRUCT", 'ipv6_count')) variable
192 bpf_text = bpf_text.replace("IPV4_INIT", struct_init['ipv4']['trace']) variable
193 bpf_text = bpf_text.replace("IPV6_INIT", struct_init['ipv6']['trace']) variable
194 bpf_text = bpf_text.replace("IPV4_CORE", "ipv4_events.perf_submit(ctx, &data4, sizeof(data4));") variable
195 bpf_text = bpf_text.replace("IPV6_CORE", "ipv6_events.perf_submit(ctx, &data6, sizeof(data6));") variable
198 print(bpf_text)
[all …]
Drunqslower.py59 bpf_text = """ variable
211 bpf_text += bpf_text_raw_tp
213 bpf_text += bpf_text_kprobe
217 bpf_text = bpf_text.replace('FILTER_US', '0') variable
219 bpf_text = bpf_text.replace('FILTER_US', 'delta_us <= %s' % str(min_us)) variable
221 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
223 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
225 print(bpf_text)
245 b = BPF(text=bpf_text)
Dfileslower.py61 bpf_text = """ variable
181 bpf_text = bpf_text.replace('MIN_US', str(min_ms * 1000)) variable
183 bpf_text = bpf_text.replace('TGID_FILTER', 'tgid != %d' % tgid) variable
185 bpf_text = bpf_text.replace('TGID_FILTER', '0') variable
187 bpf_text = bpf_text.replace('TYPE_FILTER', '0') variable
189 bpf_text = bpf_text.replace('TYPE_FILTER', '!S_ISREG(mode)') variable
192 print(bpf_text)
197 b = BPF(text=bpf_text)
Dcapable.py84 bpf_text = """ variable
115 bpf_text = bpf_text.replace('FILTER1', variable
118 bpf_text = bpf_text.replace('FILTER2', 'if (audit == 0) { return 0; }') variable
119 bpf_text = bpf_text.replace('FILTER1', '') variable
120 bpf_text = bpf_text.replace('FILTER2', '') variable
122 print(bpf_text)
125 b = BPF(text=bpf_text)
Drunqlen.py119 bpf_text = """ variable
165 bpf_text = bpf_text.replace('STORAGE', variable
167 bpf_text = bpf_text.replace('STORE', 'cpu_key_t key = {.slot = len}; ' + variable
171 bpf_text = bpf_text.replace('STORAGE', variable
173 bpf_text = bpf_text.replace('STORE', 'dist.increment(len);') variable
176 bpf_text = bpf_text.replace('RUNNABLE_WEIGHT_FIELD', 'unsigned long runnable_weight;') variable
178 bpf_text = bpf_text.replace('RUNNABLE_WEIGHT_FIELD', '') variable
181 print(bpf_text)
186 b = BPF(text=bpf_text)
Dtcplife.py68 bpf_text = """ variable
367 bpf_text += bpf_text_tracepoint
369 bpf_text += bpf_text_kprobe
373 bpf_text = bpf_text.replace('FILTER_PID', variable
378 bpf_text = bpf_text.replace('FILTER_DPORT', variable
383 bpf_text = bpf_text.replace('FILTER_LPORT', variable
385 bpf_text = bpf_text.replace('FILTER_PID', '') variable
386 bpf_text = bpf_text.replace('FILTER_DPORT', '') variable
387 bpf_text = bpf_text.replace('FILTER_LPORT', '') variable
390 print(bpf_text)
[all …]
Dbtrfsslower.py63 bpf_text = """ variable
275 bpf_text = bpf_text.replace('BTRFS_FILE_OPERATIONS', ops) variable
277 bpf_text = bpf_text.replace('FILTER_US', '0') variable
279 bpf_text = bpf_text.replace('FILTER_US', variable
282 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
284 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
286 print(bpf_text)
329 b = BPF(text=bpf_text)
Dext4slower.py64 bpf_text = """ variable
273 bpf_text = bpf_text.replace('EXT4_FILE_OPERATIONS', ops) variable
275 bpf_text = bpf_text.replace('FILTER_US', '0') variable
277 bpf_text = bpf_text.replace('FILTER_US', variable
280 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
282 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
284 print(bpf_text)
327 b = BPF(text=bpf_text)
Doffcputime.py113 bpf_text = """ variable
196 bpf_text = bpf_text.replace('THREAD_FILTER', thread_filter) variable
197 bpf_text = bpf_text.replace('STATE_FILTER', state_filter) variable
200 bpf_text = bpf_text.replace('STACK_STORAGE_SIZE', str(args.stack_storage_size)) variable
201 bpf_text = bpf_text.replace('MINBLOCK_US_VALUE', str(args.min_block_time)) variable
202 bpf_text = bpf_text.replace('MAXBLOCK_US_VALUE', str(args.max_block_time)) variable
216 bpf_text = bpf_text.replace('USER_STACK_GET', user_stack_get) variable
217 bpf_text = bpf_text.replace('KERNEL_STACK_GET', kernel_stack_get) variable
230 print(bpf_text)
235 b = BPF(text=bpf_text)
Dbtrfsdist.py60 bpf_text = """ variable
182 bpf_text = bpf_text.replace('BTRFS_FILE_OPERATIONS', ops) variable
183 bpf_text = bpf_text.replace('FACTOR', str(factor)) variable
185 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
187 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
189 print(bpf_text)
194 b = BPF(text=bpf_text)
Dfuncslower.py78 bpf_text = """ variable
209 bpf_text = bpf_text.replace('DURATION_NS', str(duration_ns)) variable
211 bpf_text = "#define GRAB_ARGS\n" + bpf_text variable
213 bpf_text = "#define USER_STACKS\n" + bpf_text variable
215 bpf_text = "#define KERNEL_STACKS\n" + bpf_text variable
217 bpf_text = bpf_text.replace('TGID_FILTER', 'tgid != %d' % args.tgid) variable
219 bpf_text = bpf_text.replace('TGID_FILTER', '0') variable
222 bpf_text += """
229 print(bpf_text)
233 b = BPF(text=bpf_text)
Dxfsslower.py60 bpf_text = """ variable
230 bpf_text = bpf_text.replace('FILTER_US', '0') variable
232 bpf_text = bpf_text.replace('FILTER_US', variable
235 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
237 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
239 print(bpf_text)
280 b = BPF(text=bpf_text)
Dfiletop.py67 bpf_text = """ variable
147 bpf_text = bpf_text.replace('TGID_FILTER', 'tgid != %d' % args.tgid) variable
149 bpf_text = bpf_text.replace('TGID_FILTER', '0') variable
151 bpf_text = bpf_text.replace('TYPE_FILTER', '0') variable
153 bpf_text = bpf_text.replace('TYPE_FILTER', '!S_ISREG(mode)') variable
156 print(bpf_text)
161 b = BPF(text=bpf_text)
Dext4dist.py60 bpf_text = """ variable
168 bpf_text = bpf_text.replace('EXT4_FILE_OPERATIONS', ops) variable
169 bpf_text = bpf_text.replace('FACTOR', str(factor)) variable
171 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
173 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
175 print(bpf_text)
180 b = BPF(text=bpf_text)
Dnfsslower.py64 bpf_text = """ variable
233 bpf_text = bpf_text.replace('FILTER_US', '0') variable
235 bpf_text = bpf_text.replace('FILTER_US', variable
238 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
240 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
242 print(bpf_text)
295 b = BPF(text=bpf_text)
Dzfsslower.py63 bpf_text = """ variable
226 bpf_text = bpf_text.replace('FILTER_US', '0') variable
228 bpf_text = bpf_text.replace('FILTER_US', variable
231 bpf_text = bpf_text.replace('FILTER_PID', 'pid != %s' % pid) variable
233 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
235 print(bpf_text)
278 b = BPF(text=bpf_text)
Dtcpconnect.py51 bpf_text = """ variable
155 bpf_text = bpf_text.replace('FILTER_PID', variable
160 bpf_text = bpf_text.replace('FILTER_PORT', variable
163 bpf_text = bpf_text.replace('FILTER_PID', '') variable
164 bpf_text = bpf_text.replace('FILTER_PORT', '') variable
167 print(bpf_text)
222 b = BPF(text=bpf_text)
/external/bcc/tools/old/
Dprofile.py128 bpf_text = """ variable
203 bpf_text = bpf_text.replace('THREAD_FILTER', thread_filter) variable
206 bpf_text = bpf_text.replace('STACK_STORAGE_SIZE', str(args.stack_storage_size)) variable
222 bpf_text = bpf_text.replace('USER_STACK_GET', user_stack_get) variable
223 bpf_text = bpf_text.replace('KERNEL_STACK_GET', kernel_stack_get) variable
226 bpf_text = bpf_text.replace('DO_KERNEL_RIP', '0') variable
229 bpf_text = bpf_text.replace('DO_KERNEL_RIP', '1') variable
241 bpf_text = bpf_text.replace('PERF_TRACE_EVENT', variable
243 bpf_text = bpf_text.replace('REGS_LOCATION', 'PT_REGS_PARM1(args)') variable
245 print(bpf_text)
[all …]
Dsoftirqs.py53 bpf_text = "" variable
55 bpf_text = """ variable
93 bpf_text = """ variable
135 bpf_text = bpf_text.replace('COMMON', variable
143 bpf_text = bpf_text.replace('STORE', variable
147 bpf_text = bpf_text.replace('STORE', variable
152 print(bpf_text)
155 b = BPF(text=bpf_text)
/external/bcc/examples/usdt_sample/scripts/
Dlat_avg.py38 bpf_text = open(bpf_text_shared, 'r').read() variable
39 bpf_text += """
98 bpf_text = bpf_text.replace("SAMPLE_COUNT", str(this_count)) variable
99 bpf_text = bpf_text.replace("FILTER_STRING", this_filter) variable
101 bpf_text = bpf_text.replace("FILTER", "if (!filter(start_data.input)) { return 0; }") variable
103 bpf_text = bpf_text.replace("FILTER", "") variable
112 bpf_ctx = BPF(text=bpf_text, usdt_contexts=[usdt_ctx], debug=debugLevel)
Dlat_dist.py32 bpf_text = open(bpf_text_shared, 'r').read() variable
33 bpf_text += """
74 bpf_text = bpf_text.replace("FILTER_STRING", this_filter) variable
76 bpf_text = bpf_text.replace("FILTER", "if (!filter(start_data.input)) { return 0; }") variable
78 bpf_text = bpf_text.replace("FILTER", "") variable
87 bpf_ctx = BPF(text=bpf_text, usdt_contexts=[usdt_ctx], debug=debugLevel)

1234