/external/bcc/tools/ |
D | runqlat.py | 69 bpf_text = """ variable 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 237 bpf_text = bpf_text.replace('STORE', 'pidns_key_t key = ' + variable 242 bpf_text = bpf_text.replace('STORAGE', 'BPF_HISTOGRAM(dist);') variable [all …]
|
D | opensnoop.py | 81 bpf_text = """ variable 155 bpf_text = bpf_text.replace('PID_TID_FILTER', variable 158 bpf_text = bpf_text.replace('PID_TID_FILTER', variable 161 bpf_text = bpf_text.replace('PID_TID_FILTER', '') variable 163 bpf_text = bpf_text.replace('UID_FILTER', variable 166 bpf_text = bpf_text.replace('UID_FILTER', '') variable 168 bpf_text = bpf_text.replace('FLAGS_FILTER', variable 171 bpf_text = bpf_text.replace('FLAGS_FILTER', '') variable 173 bpf_text = '\n'.join(x for x in bpf_text.split('\n') variable
|
D | funclatency.py | 100 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 …]
|
D | cpudist.py | 53 bpf_text = """#include <uapi/linux/ptrace.h> variable 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
|
D | biolatency.py | 50 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
|
D | tcpretrans.py | 46 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
|
D | capable.py | 100 bpf_text = """ variable 150 bpf_text = bpf_text.replace('FILTER1', variable 153 bpf_text = bpf_text.replace('FILTER2', 'if (audit == 0) { return 0; }') variable 155 bpf_text = "#define KERNEL_STACKS\n" + bpf_text variable 157 bpf_text = "#define USER_STACKS\n" + bpf_text variable 158 bpf_text = bpf_text.replace('FILTER1', '') variable 159 bpf_text = bpf_text.replace('FILTER2', '') variable 160 bpf_text = bpf_text.replace('FILTER3', variable
|
D | tcpconnect.py | 59 bpf_text = """ variable 170 bpf_text = bpf_text.replace('FILTER_PID', variable 175 bpf_text = bpf_text.replace('FILTER_PORT', variable 178 bpf_text = bpf_text.replace('FILTER_UID', variable 181 bpf_text = bpf_text.replace('FILTER_PID', '') variable 182 bpf_text = bpf_text.replace('FILTER_PORT', '') variable 183 bpf_text = bpf_text.replace('FILTER_UID', '') variable
|
D | runqlen.py | 119 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
|
D | fileslower.py | 61 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
|
D | funcslower.py | 78 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
|
D | ext4slower.py | 64 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
|
D | btrfsslower.py | 63 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
|
D | tcplife.py | 68 bpf_text = """ variable 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
|
D | nfsslower.py | 64 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
|
D | xfsslower.py | 60 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
|
D | zfsslower.py | 63 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
|
D | runqslower.py | 59 bpf_text = """ variable 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' % args.pid) variable 223 bpf_text = bpf_text.replace('FILTER_PID', '0') variable
|
D | ext4dist.py | 60 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
|
D | btrfsdist.py | 60 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
|
D | filetop.py | 67 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
|
D | offcputime.py | 113 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
|
/external/bcc/tools/old/ |
D | softirqs.py | 53 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
|
D | profile.py | 128 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
|
/external/bcc/examples/usdt_sample/scripts/ |
D | lat_avg.py | 39 bpf_text = open(bpf_text_shared, 'r').read() variable 99 bpf_text = bpf_text.replace("SAMPLE_COUNT", str(this_count)) variable 100 bpf_text = bpf_text.replace("FILTER_STRING", this_filter) variable 102 bpf_text = bpf_text.replace("FILTER", "if (!filter(start_data.input)) { return 0; }") variable 104 bpf_text = bpf_text.replace("FILTER", "") variable
|