/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.c | 30 static FILE *f; variable 41 if (f) in intel_pt_log_disable() 42 fflush(f); in intel_pt_log_disable() 58 fprintf(f, " "); in intel_pt_print_data() 60 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_data() 62 fprintf(f, " %02x", buf[i]); in intel_pt_print_data() 64 fprintf(f, " "); in intel_pt_print_data() 65 fprintf(f, " "); in intel_pt_print_data() 73 fprintf(f, " "); in intel_pt_print_no_data() 75 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_no_data() [all …]
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | busy_loop.S | 94 bne 1f 96 bne 1f 98 bne 1f 100 bne 1f 102 bne 1f 104 bne 1f 106 bne 1f 108 bne 1f 110 bne 1f 112 bne 1f [all …]
|
/tools/testing/selftests/powerpc/switch_endian/ |
D | check.S | 14 bne 1f 17 bne 1f 24 bne 1f 28 bne 1f 31 bne 1f 34 bne 1f 37 bne 1f 40 bne 1f 43 bne 1f 46 bne 1f [all …]
|
/tools/lguest/ |
D | extract | 12 for f; do 19 echo "$TMPDIR/$NUM already exits prior to $f" 23 echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM 29 echo "$TMPDIR/$NUM already exits prior to $f" 33 echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM 45 done < $f 51 for f in $TMPDIR/*; do 52 if [ "$LASTFILE" != $(cat $TMPDIR/.$(basename $f) ) ]; then 53 LASTFILE=$(cat $TMPDIR/.$(basename $f) ) 56 cat $f
|
/tools/perf/util/ |
D | sigchain.c | 19 static int sigchain_push(int sig, sigchain_fun f) in sigchain_push() argument 25 s->old[s->n] = signal(sig, f); in sigchain_push() 45 void sigchain_push_common(sigchain_fun f) in sigchain_push_common() argument 47 sigchain_push(SIGINT, f); in sigchain_push_common() 48 sigchain_push(SIGHUP, f); in sigchain_push_common() 49 sigchain_push(SIGTERM, f); in sigchain_push_common() 50 sigchain_push(SIGQUIT, f); in sigchain_push_common() 51 sigchain_push(SIGPIPE, f); in sigchain_push_common()
|
D | setup.py | 31 ext_sources = [f.strip() for f in file('util/python-ext-sources') 32 if len(f.strip()) > 0 and f[0] != '#']
|
D | parse-options.h | 114 …(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_… argument 134 #define OPT_CALLBACK(s, l, v, a, h, f) \ argument 135 …ON_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f) } 136 #define OPT_CALLBACK_NOOPT(s, l, v, a, h, f) \ argument 137 …_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .flags = PARSE_OPT… 138 #define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \ argument 139 …_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .defval = (intptr_… 140 #define OPT_CALLBACK_DEFAULT_NOOPT(s, l, v, a, h, f, d) \ argument 142 .value = (v), (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\ 144 #define OPT_CALLBACK_OPTARG(s, l, v, d, a, h, f) \ argument [all …]
|
D | vdso.c | 159 static int vdso__do_copy_compat(FILE *f, int fd) in vdso__do_copy_compat() argument 165 count = fread(buf, 1, sizeof(buf), f); in vdso__do_copy_compat() 166 if (ferror(f)) in vdso__do_copy_compat() 168 if (feof(f)) in vdso__do_copy_compat() 179 FILE *f; in vdso__copy_compat() local 182 f = popen(prog, "r"); in vdso__copy_compat() 183 if (!f) in vdso__copy_compat() 186 err = vdso__do_copy_compat(f, fd); in vdso__copy_compat() 188 if (pclose(f) == -1) in vdso__copy_compat()
|
D | config.c | 34 FILE *f; in get_next_char() local 37 if ((f = config_file) != NULL) { in get_next_char() 38 c = fgetc(f); in get_next_char() 41 c = fgetc(f); in get_next_char() 43 ungetc(c, f); in get_next_char() 422 FILE *f = fopen(filename, "r"); in perf_config_from_file() local 425 if (f) { in perf_config_from_file() 426 config_file = f; in perf_config_from_file() 431 fclose(f); in perf_config_from_file()
|
/tools/hv/ |
D | lsvmbus | 45 f = open('%s/%s/%s' % (vmbus_sys_path, dev_name, attr), 'r') 46 lines = f.readlines() 47 f.close() 59 for f in os.listdir(vmbus_sys_path): 60 vmbus_id = get_vmbus_dev_attr(f, 'id')[0].strip() 61 class_id = get_vmbus_dev_attr(f, 'class_id')[0].strip() 62 device_id = get_vmbus_dev_attr(f, 'device_id')[0].strip() 65 chn_vp_mapping = get_vmbus_dev_attr(f, 'channel_vp_mapping') 74 d.sysfs_path = '%s/%s' % (vmbus_sys_path, f)
|
/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 182 FILE *f; in parse_proc_maps() local 185 f = fopen("/proc/self/maps", "r"); in parse_proc_maps() 186 if (!f) { in parse_proc_maps() 193 rc = fscanf(f, "%lx-%lx %*c%*c%c%*c %*x %*d:%*d %*d %127s\n", in parse_proc_maps() 210 fclose(f); in parse_proc_maps() 221 FILE *f; in require_paranoia_below() local 226 f = fopen(PARANOID_PATH, "r"); in require_paranoia_below() 227 if (!f) { in require_paranoia_below() 232 if (!fgets(buf, sizeof(buf), f)) { in require_paranoia_below() 249 fclose(f); in require_paranoia_below()
|
/tools/net/ |
D | bpf_dbg.c | 216 static void bpf_disasm(const struct sock_filter f, unsigned int i) in bpf_disasm() argument 219 int val = f.k; in bpf_disasm() 222 switch (f.code) { in bpf_disasm() 302 val = i + 1 + f.k; in bpf_disasm() 423 val = f.code; in bpf_disasm() 431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm() 433 i + 1 + f.jt, i + 1 + f.jf); in bpf_disasm() 438 static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) in bpf_dump_curr() argument 444 f->code, f->jt, f->jf, f->k); in bpf_dump_curr() 446 bpf_disasm(*f, r->Pc); in bpf_dump_curr() [all …]
|
/tools/testing/selftests/pstore/ |
D | common_tests | 32 for f in `ls ${1}-${backend}-*`; do 33 prlog -e "\t${f}" 44 for f in $2; do 45 prlog -ne "\t${f} ... " 47 $3 $f
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 448 struct format_field *f; in perl_generate_script() local 507 for (f = event->format.fields; f; f = f->next) { in perl_generate_script() 513 fprintf(ofp, "$%s", f->name); in perl_generate_script() 526 for (f = event->format.fields; f; f = f->next) { in perl_generate_script() 534 fprintf(ofp, "%s=", f->name); in perl_generate_script() 535 if (f->flags & FIELD_IS_STRING || in perl_generate_script() 536 f->flags & FIELD_IS_FLAG || in perl_generate_script() 537 f->flags & FIELD_IS_SYMBOLIC) in perl_generate_script() 539 else if (f->flags & FIELD_IS_SIGNED) in perl_generate_script() 550 for (f = event->format.fields; f; f = f->next) { in perl_generate_script() [all …]
|
D | trace-event-python.c | 1039 struct format_field *f; in python_generate_script() local 1099 for (f = event->format.fields; f; f = f->next) { in python_generate_script() 1105 fprintf(ofp, "%s", f->name); in python_generate_script() 1118 for (f = event->format.fields; f; f = f->next) { in python_generate_script() 1126 fprintf(ofp, "%s=", f->name); in python_generate_script() 1127 if (f->flags & FIELD_IS_STRING || in python_generate_script() 1128 f->flags & FIELD_IS_FLAG || in python_generate_script() 1129 f->flags & FIELD_IS_ARRAY || in python_generate_script() 1130 f->flags & FIELD_IS_SYMBOLIC) in python_generate_script() 1132 else if (f->flags & FIELD_IS_SIGNED) in python_generate_script() [all …]
|
/tools/lib/traceevent/ |
D | plugin_mac80211.c | 31 struct format_field *f = pevent_find_field(event, name); in print_string() local 35 if (!f) { in print_string() 40 offset = f->offset; in print_string() 41 length = f->size; in print_string() 43 if (!strncmp(f->type, "__data_loc", 10)) { in print_string() 45 if (pevent_read_number_field(f, data, &v)) { in print_string()
|
/tools/testing/selftests/vm/ |
D | thuge-gen.c | 79 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() local 80 if (!f) in default_huge_page_size() 82 while (getline(&line, &linelen, f) > 0) { in default_huge_page_size() 110 FILE *f; in read_sysfs() local 118 f = fopen(buf, "r"); in read_sysfs() 119 if (!f) { in read_sysfs() 124 if (getline(&line, &linelen, f) > 0) { in read_sysfs() 127 fclose(f); in read_sysfs()
|
/tools/build/tests/ex/ |
D | ex.c | 7 int f(void); 17 f(); in main()
|
/tools/perf/tests/ |
D | make | 133 test_make_tags = test -f tags 134 test_make_cscope = test -f cscope.out 145 test_make_python_perf_so := test -f $(PERF)/python/perf.so 147 test_make_perf_o := test -f $(PERF)/perf.o 148 test_make_util_map_o := test -f $(PERF)/util/map.o 149 test_make_util_pmu_bison_o := test -f $(PERF)/util/pmu-bison.o 192 test_make_install_man := test -f $$TMP_DEST/share/man/man1/perf.1 211 test_make_python_perf_so_O := test -f $$TMP_O/python/perf.so 212 test_make_perf_o_O := test -f $$TMP_O/perf.o 213 test_make_util_map_o_O := test -f $$TMP_O/util/map.o [all …]
|
D | code-reading.c | 76 static int read_objdump_output(FILE *f, void *buf, size_t *len, u64 start_addr) in read_objdump_output() argument 88 ret = getline(&line, &line_len, f); in read_objdump_output() 89 if (feof(f)) in read_objdump_output() 133 FILE *f; in read_via_objdump() local 147 f = popen(cmd, "r"); in read_via_objdump() 148 if (!f) { in read_via_objdump() 153 ret = read_objdump_output(f, buf, &len, addr); in read_via_objdump() 160 pclose(f); in read_via_objdump() 405 FILE *f; in fs_something() local 409 f = fopen(test_file_name, "w+"); in fs_something() [all …]
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-syscall-asm.S | 7 beq 1f 18 beq 1f
|
/tools/testing/selftests/efivarfs/ |
D | efivarfs.sh | 140 for f in $file_list; do 141 local file=$efivarfs_mount/$f-$test_guid 179 for f in $file_list; do 180 local file=$efivarfs_mount/$f
|
/tools/testing/selftests/x86/ |
D | thunks_32.S | 36 jmp $0x33,$1f 44 .code32; push $1f; .code64 /* hack: can't have X86_64_32S relocation in 32-bit ELF */
|
D | thunks.S | 41 pushq $1f 49 jmp $0x33,$1f
|
/tools/firewire/ |
D | nosy-dump.c | 707 const struct packet_field *f = &pi->fields[i]; in decode_link_packet() local 710 if (f->flags & exclude_flags) in decode_link_packet() 712 if (include_flags && !(f->flags & include_flags)) in decode_link_packet() 715 if (f->offset < 0) in decode_link_packet() 716 offset = length * 8 + f->offset - 32; in decode_link_packet() 718 offset = f->offset; in decode_link_packet() 720 if (f->value_names != NULL) { in decode_link_packet() 723 bits = get_bits(packet, offset, f->width); in decode_link_packet() 724 printf("%s", f->value_names[bits]); in decode_link_packet() 725 } else if (f->width == 0) { in decode_link_packet() [all …]
|