Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 57) sorted by relevance

123

/tools/lib/traceevent/
Devent-parse-api.c61 void tep_set_flag(struct tep_handle *tep, int flag) in tep_set_flag() argument
64 tep->flags |= flag; in tep_set_flag()
74 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) in tep_clear_flag() argument
77 tep->flags &= ~flag; in tep_clear_flag()
88 bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag) in tep_test_flag() argument
91 return tep->flags & flag; in tep_test_flag()
/tools/perf/tests/
Dbpf-script-example.c39 int *flag = bpf_map_lookup_elem(&flip_table, &ind); in bpf_func__SyS_epoll_pwait() local
41 if (!flag) in bpf_func__SyS_epoll_pwait()
44 new_flag = !*flag; in bpf_func__SyS_epoll_pwait()
/tools/perf/util/
Dtrace-event-parse.c176 struct flag { struct
181 static const struct flag flags[] = { argument
197 unsigned long long eval_flag(const char *flag) in eval_flag() argument
206 if (isdigit(flag[0])) in eval_flag()
207 return strtoull(flag, NULL, 0); in eval_flag()
210 if (strcmp(flags[i].name, flag) == 0) in eval_flag()
Dcloexec.c14 static unsigned long flag = PERF_FLAG_FD_CLOEXEC; variable
100 flag = 0; in perf_event_open_cloexec_flag()
104 return flag; in perf_event_open_cloexec_flag()
Dprobe-file.h41 int probe_file__open(int flag);
42 int probe_file__open_both(int *kfd, int *ufd, int flag);
Dprobe-file.c103 int probe_file__open(int flag) in probe_file__open() argument
107 if (flag & PF_FL_UPROBE) in probe_file__open()
108 fd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open()
110 fd = open_kprobe_events(flag & PF_FL_RW); in probe_file__open()
112 print_open_warning(fd, flag & PF_FL_UPROBE); in probe_file__open()
117 int probe_file__open_both(int *kfd, int *ufd, int flag) in probe_file__open_both() argument
122 *kfd = open_kprobe_events(flag & PF_FL_RW); in probe_file__open_both()
123 *ufd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open_both()
Ddwarf-aux.c69 bool flag; in cu_getsrc_die() local
98 dwarf_linebeginstatement(line, &flag) != 0) in cu_getsrc_die()
102 } while (!flag); in cu_getsrc_die()
857 bool flag; in die_walk_lines() local
889 if (dwarf_lineendsequence(line, &flag) != 0 || flag) in die_walk_lines()
892 if (dwarf_linebeginstatement(line, &flag) != 0 || !flag) in die_walk_lines()
Dtrace-event.h51 unsigned long long eval_flag(const char *flag);
/tools/perf/arch/x86/tests/
Dintel-cqm.c45 int i, fd[2], flag, ret; in test__intel_cqm_count_nmi_context() local
51 flag = perf_event_open_cloexec_flag(); in test__intel_cqm_count_nmi_context()
84 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); in test__intel_cqm_count_nmi_context()
96 fd[1] = sys_perf_event_open(&pe, pid, -1, fd[0], flag); in test__intel_cqm_count_nmi_context()
/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c39 int flag; member
390 if (info->flag) { in TEST_F()
391 ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) { in TEST_F()
399 if (info->flag == CLONE_NEWPID) in TEST_F()
426 if (info->flag) { in TEST_F()
427 ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) { in TEST_F()
435 if (info->flag == CLONE_NEWPID) in TEST_F()
461 flags |= info->flag; in TEST_F()
480 if (info->flag == CLONE_NEWPID) in TEST_F()
504 flags |= info->flag; in TEST_F()
[all …]
/tools/memory-model/
Dlinux-kernel.bell56 flag ~empty Rcu-lock \ domain(rcu-rscs) as unbalanced-rcu-locking
57 flag ~empty Rcu-unlock \ range(rcu-rscs) as unbalanced-rcu-locking
72 flag ~empty Srcu-lock \ domain(srcu-rscs) as unbalanced-srcu-locking
73 flag ~empty Srcu-unlock \ range(srcu-rscs) as unbalanced-srcu-locking
76 flag ~empty rcu-rscs & (po ; [Sync-srcu] ; po) as invalid-sleep
79 flag ~empty different-values(srcu-rscs) as srcu-bad-nesting
Dlock.cat41 flag ~empty [M \ IW] ; loc ; [ALL-LOCKS] as mixed-lock-accesses
48 flag ~empty LKW \ range(lk-rmw) as unpaired-LKW
49 flag ~empty LKR \ domain(lk-rmw) as unpaired-LKR
58 flag ~empty [FW] ; loc ; [ALL-LOCKS] as lock-final
73 flag ~empty UL \ range(critical) as unmatched-unlock
/tools/testing/selftests/gpio/
Dgpio-mockup-chardev.c196 int gpio_pin_test(struct gpiochip_info *cinfo, int line, int flag, int value) in gpio_pin_test() argument
206 ret = gpiotools_request_linehandle(cinfo->name, lines, 1, flag, &data, in gpio_pin_test()
218 if (flag & GPIOHANDLE_REQUEST_INPUT) { in gpio_pin_test()
223 } else if (flag & GPIOHANDLE_REQUEST_OUTPUT) { in gpio_pin_test()
224 if (flag & GPIOHANDLE_REQUEST_ACTIVE_LOW) in gpio_pin_test()
237 cinfo->name, line, flag, value); in gpio_pin_test()
/tools/testing/selftests/sigaltstack/
Dsas.c34 int flag; member
53 p->flag = 1; in my_usr1()
68 if (!p->flag) { in my_usr1()
89 p->flag = 0; in my_usr2()
/tools/testing/selftests/powerpc/ptrace/
Dptrace-tm-spr.c12 int flag; member
82 if (!cptr->flag) in tm_spr()
105 pptr->flag = 1; in trace_tm_spr()
/tools/testing/selftests/net/
Dfin_ack_lat.c34 int flag = 1; in client() local
52 &flag, sizeof(flag))) in client()
/tools/perf/tests/attr/
Dbase-record4 # 0 or PERF_FLAG_FD_CLOEXEC flag
Dbase-stat4 # 0 or PERF_FLAG_FD_CLOEXEC flag
/tools/gpio/
Dgpio-utils.c59 unsigned int num_lines, unsigned int flag, in gpiotools_request_linehandle() argument
84 req.flags = flag; in gpiotools_request_linehandle()
87 if (flag & GPIOHANDLE_REQUEST_OUTPUT) in gpiotools_request_linehandle()
Dgpio-utils.h28 unsigned int num_lines, unsigned int flag,
/tools/bpf/bpftool/skeleton/
Dprofiler.bpf.c54 u32 flag = i; in BPF_PROG() local
56 ptrs[i] = bpf_map_lookup_elem(&fentry_readings, &flag); in BPF_PROG()
/tools/testing/selftests/powerpc/benchmarks/
Dmmap_bench.c73 if (options[option_index].flag != 0) in main()
/tools/perf/Documentation/
Ditrace.txt53 will not be reported. Each flag must be preceded by either '+' or '-'.
59 debug messages will or will not be logged. Each flag must be preceded
/tools/thermal/tmon/
Dtmon.h55 unsigned long flag; member
/tools/power/cpupower/
DToDo16 per_cpu_schedule flag is set.

123