Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 110) sorted by relevance

12345

/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.c30 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/
Dbusy_loop.S94 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/
Dcheck.S15 bne 1f
18 bne 1f
25 bne 1f
29 bne 1f
32 bne 1f
35 bne 1f
38 bne 1f
41 bne 1f
44 bne 1f
47 bne 1f
[all …]
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dworkqueues.h76 #define INIT_WORK(w, f) \ argument
79 (w)->func = (f); \
82 #define INIT_DELAYED_WORK(w, f) INIT_WORK(&(w)->work, (f)) argument
84 #define __WORK_INITIALIZER(n, f) { \ argument
87 .func = f \
91 #define __DELAYED_WORK_INITIALIZER(n, f, tflags) { \ argument
92 .work = __WORK_INITIALIZER((n).work, (f)), \
95 #define DECLARE_WORK(n, f) \ argument
98 #define DECLARE_DELAYED_WORK(n, f) \ argument
99 struct delayed_work n = __DELAYED_WORK_INITIALIZER(n, f, 0)
/tools/lib/subcmd/
Dsigchain.c21 static int sigchain_push(int sig, sigchain_fun f) in sigchain_push() argument
27 s->old[s->n] = signal(sig, f); in sigchain_push()
47 void sigchain_push_common(sigchain_fun f) in sigchain_push_common() argument
49 sigchain_push(SIGINT, f); in sigchain_push_common()
50 sigchain_push(SIGHUP, f); in sigchain_push_common()
51 sigchain_push(SIGTERM, f); in sigchain_push_common()
52 sigchain_push(SIGQUIT, f); in sigchain_push_common()
53 sigchain_push(SIGPIPE, f); in sigchain_push_common()
Dparse-options.h125 …(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_… argument
150 #define OPT_CALLBACK(s, l, v, a, h, f) \ argument
151 …ACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f) }
152 #define OPT_CALLBACK_NOOPT(s, l, v, a, h, f) \ argument
153 …(s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .flags = PARSE_OPT…
154 #define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \ argument
155 …(s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .defval = (intptr_…
156 #define OPT_CALLBACK_DEFAULT_NOOPT(s, l, v, a, h, f, d) \ argument
158 .value = (v), .arg = (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\
160 #define OPT_CALLBACK_OPTARG(s, l, v, d, a, h, f) \ argument
[all …]
/tools/testing/selftests/powerpc/math/
Dfpu_asm.S18 bne cr1,1f
21 bne cr1,1f
24 bne cr1,1f
27 bne cr1,1f
30 bne cr1,1f
33 bne cr1,1f
36 bne cr1,1f
39 bne cr1,1f
42 bne cr1,1f
45 bne cr1,1f
[all …]
/tools/hv/
Dlsvmbus47 f = open('%s/%s/%s' % (vmbus_sys_path, dev_name, attr), 'r')
48 lines = f.readlines()
49 f.close()
61 for f in os.listdir(vmbus_sys_path):
62 vmbus_id = get_vmbus_dev_attr(f, 'id')[0].strip()
63 class_id = get_vmbus_dev_attr(f, 'class_id')[0].strip()
64 device_id = get_vmbus_dev_attr(f, 'device_id')[0].strip()
67 chn_vp_mapping = get_vmbus_dev_attr(f, 'channel_vp_mapping')
76 d.sysfs_path = '%s/%s' % (vmbus_sys_path, f)
/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c262 FILE *f; in start_verification_log() local
273 f = fopen(path, "w"); in start_verification_log()
275 if (!f) { in start_verification_log()
279 fp[tid] = f; in start_verification_log()
281 fprintf(f, "----------------------------------------------------------\n"); in start_verification_log()
282 fprintf(f, "PID = %d\n", rim_process_pid); in start_verification_log()
283 fprintf(f, "Thread id = %02d\n", tid); in start_verification_log()
284 fprintf(f, "Chunk Start Addr = 0x%016lx\n", (unsigned long)chunk_start); in start_verification_log()
285 fprintf(f, "Chunk Size = %d\n", size); in start_verification_log()
286 fprintf(f, "Next Store Addr = 0x%016lx\n", (unsigned long)addr); in start_verification_log()
[all …]
/tools/testing/selftests/powerpc/pmu/
Dlib.c156 FILE *f; in parse_proc_maps() local
159 f = fopen("/proc/self/maps", "r"); in parse_proc_maps()
160 if (!f) { in parse_proc_maps()
167 rc = fscanf(f, "%lx-%lx %*c%*c%c%*c %*x %*d:%*d %*d %127s\n", in parse_proc_maps()
184 fclose(f); in parse_proc_maps()
195 FILE *f; in require_paranoia_below() local
200 f = fopen(PARANOID_PATH, "r"); in require_paranoia_below()
201 if (!f) { in require_paranoia_below()
206 if (!fgets(buf, sizeof(buf), f)) { in require_paranoia_below()
223 fclose(f); in require_paranoia_below()
/tools/include/linux/
Dspinlock.h11 #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) argument
12 #define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x) argument
/tools/net/
Dbpf_dbg.c216 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/
Dcommon_tests32 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/lib/traceevent/
Dplugin_mac80211.c31 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/perf/util/scripting-engines/
Dtrace-event-perl.c541 struct format_field *f; in perl_generate_script() local
621 for (f = event->format.fields; f; f = f->next) { in perl_generate_script()
627 fprintf(ofp, "$%s", f->name); in perl_generate_script()
640 for (f = event->format.fields; f; f = f->next) { in perl_generate_script()
648 fprintf(ofp, "%s=", f->name); in perl_generate_script()
649 if (f->flags & FIELD_IS_STRING || in perl_generate_script()
650 f->flags & FIELD_IS_FLAG || in perl_generate_script()
651 f->flags & FIELD_IS_SYMBOLIC) in perl_generate_script()
653 else if (f->flags & FIELD_IS_SIGNED) in perl_generate_script()
664 for (f = event->format.fields; f; f = f->next) { in perl_generate_script()
[all …]
/tools/perf/util/
Dsetup.py40 ext_sources = [f.strip() for f in file('util/python-ext-sources')
41 if len(f.strip()) > 0 and f[0] != '#']
Dvdso.c160 static int vdso__do_copy_compat(FILE *f, int fd) in vdso__do_copy_compat() argument
166 count = fread(buf, 1, sizeof(buf), f); in vdso__do_copy_compat()
167 if (ferror(f)) in vdso__do_copy_compat()
169 if (feof(f)) in vdso__do_copy_compat()
180 FILE *f; in vdso__copy_compat() local
183 f = popen(prog, "r"); in vdso__copy_compat()
184 if (!f) in vdso__copy_compat()
187 err = vdso__do_copy_compat(f, fd); in vdso__copy_compat()
189 if (pclose(f) == -1) in vdso__copy_compat()
/tools/testing/selftests/powerpc/signal/
Dsignal.S18 bc 4,3,1f
28 beq 1f
35 bc 4,3,2f
/tools/testing/selftests/powerpc/benchmarks/
Dnull_syscall.c70 FILE *f; in get_proc_frequency() local
80 f = fopen("/proc/cpuinfo", "r"); in get_proc_frequency()
81 if (f == NULL) in get_proc_frequency()
86 while (fgets(line, sizeof(line), f) != NULL) { in get_proc_frequency()
110 fclose(f); in get_proc_frequency()
/tools/testing/selftests/vm/
Dmlock-random-test.c48 FILE *f; in get_proc_locked_vm_size() local
53 f = fopen("/proc/self/status", "r"); in get_proc_locked_vm_size()
54 if (!f) { in get_proc_locked_vm_size()
59 while (fgets(line, 1024, f)) { in get_proc_locked_vm_size()
65 fclose(f); in get_proc_locked_vm_size()
68 fclose(f); in get_proc_locked_vm_size()
74 fclose(f); in get_proc_locked_vm_size()
Dthuge-gen.c82 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() local
83 if (!f) in default_huge_page_size()
85 while (getline(&line, &linelen, f) > 0) { in default_huge_page_size()
113 FILE *f; in read_sysfs() local
121 f = fopen(buf, "r"); in read_sysfs()
122 if (!f) { in read_sysfs()
127 if (getline(&line, &linelen, f) > 0) { in read_sysfs()
130 fclose(f); in read_sysfs()
/tools/build/tests/ex/
Dex.c8 int f(void);
18 f(); in main()
/tools/perf/tests/
Dmake18 FULL_O := $(shell readlink -f $(PERF_O) || echo $(PERF_O))
21 FULL_O := $(shell readlink -f $(O) || echo $(O))
121 MAKE_F := $(MAKE) -f $(MK)
178 test_make_tags = test -f tags
179 test_make_cscope = test -f cscope.out
190 test_make_python_perf_so := test -f $(PERF_O)/python/perf.so
192 test_make_perf_o := test -f $(PERF_O)/perf.o
193 test_make_util_map_o := test -f $(PERF_O)/util/map.o
194 test_make_util_pmu_bison_o := test -f $(PERF_O)/util/pmu-bison.o
237 test_make_install_man := test -f $$TMP_DEST/share/man/man1/perf.1
[all …]
/tools/testing/selftests/powerpc/tm/
Dtm-syscall-asm.S8 beq 1f
19 beq 1f
/tools/testing/selftests/efivarfs/
Defivarfs.sh141 for f in $file_list; do
142 local file=$efivarfs_mount/$f-$test_guid
180 for f in $file_list; do
181 local file=$efivarfs_mount/$f

12345