Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/tools/power/cpupower/debug/i386/
A Dintel_gsic.c17 struct LRMI_regs r; in main() local
23 memset(&r, 0, sizeof(r)); in main()
25 r.eax = 0x0000E980; in main()
26 r.edx = 0x47534943; in main()
28 retval = LRMI_int(0x15, &r); in main()
34 if (r.eax == 0x47534943) { in main()
37 (r.eax >> 24) & 0xff, in main()
38 (r.eax >> 16) & 0xff, in main()
39 (r.eax >> 8) & 0xff, in main()
40 (r.eax) & 0xff); in main()
[all …]
/tools/testing/selftests/powerpc/include/
A Dinstructions.h80 #define __PPC_PREFIX_R(r) (((r) & 0x1) << 20) argument
117 #define PLBZ(t, a, r, d) PREFIX_MLS(PPC_INST_LBZ, t, a, r, d) argument
118 #define PLHZ(t, a, r, d) PREFIX_MLS(PPC_INST_LHZ, t, a, r, d) argument
119 #define PLHA(t, a, r, d) PREFIX_MLS(PPC_INST_LHA, t, a, r, d) argument
120 #define PLWZ(t, a, r, d) PREFIX_MLS(PPC_INST_LWZ, t, a, r, d) argument
121 #define PLWA(t, a, r, d) PREFIX_8LS(0xa4000000, t, a, r, d) argument
122 #define PLD(t, a, r, d) PREFIX_8LS(0xe4000000, t, a, r, d) argument
123 #define PLQ(t, a, r, d) PREFIX_8LS(0xe0000000, t, a, r, d) argument
127 #define PSTD(s, a, r, d) PREFIX_8LS(0xf4000000, s, a, r, d) argument
128 #define PSTQ(s, a, r, d) PREFIX_8LS(0xf0000000, s, a, r, d) argument
[all …]
/tools/lib/bpf/
A Dbtf_relocate.c215 for (id = r->nr_dist_base_types; id < r->nr_dist_base_types + r->nr_split_types; id++) { in btf_relocate_map_distilled_base()
367 if (r->id_map[id] && r->id_map[id] != BTF_IS_EMBEDDED) in btf_relocate_map_distilled_base()
427 *str_off += r->base_str_len - r->dist_str_len; in btf_relocate_rewrite_strs()
457 r.nr_dist_base_types = btf__type_cnt(r.dist_base_btf); in btf_relocate()
459 r.nr_split_types = nr_types - r.nr_dist_base_types; in btf_relocate()
460 r.btf = btf; in btf_relocate()
463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate()
464 r.str_map = calloc(btf_header(r.dist_base_btf)->str_len, sizeof(*r.str_map)); in btf_relocate()
469 if (!r.id_map || !r.str_map) { in btf_relocate()
483 r.id_map[id] = id + r.nr_base_types - r.nr_dist_base_types; in btf_relocate()
[all …]
/tools/perf/bench/
A Dpmu-scan.c46 struct pmu_scan_result *r; in save_result() local
49 r = realloc(results, (nr_pmus + 1) * sizeof(*r)); in save_result()
50 if (r == NULL) in save_result()
53 results = r; in save_result()
54 r = results + nr_pmus; in save_result()
57 r->is_core = pmu->is_core; in save_result()
62 r->nr_formats = 0; in save_result()
64 r->nr_formats++; in save_result()
67 nr_pmus, r->name, r->nr_caps, r->nr_aliases, r->nr_formats); in save_result()
77 struct pmu_scan_result *r; in check_result() local
[all …]
/tools/testing/selftests/tty/
A Dtty_tstamp_update.c31 int r = 0; in write_dev_tty() local
39 r = -EIO; in write_dev_tty()
42 return r; in write_dev_tty()
47 int r; in main() local
56 if (r < 0) { in main()
68 r = stat(tty, &st1); in main()
69 if (r < 0) { in main()
78 r = write_dev_tty(); in main()
79 if (r < 0) { in main()
85 r = stat(tty, &st2); in main()
[all …]
/tools/include/linux/
A Drefcount.h60 atomic_set(&r->refs, n); in refcount_set()
65 atomic_set(&r->refs, n); in refcount_set_release()
70 return atomic_read(&r->refs); in refcount_read()
81 bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() argument
83 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero()
94 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
112 static inline void refcount_inc(refcount_t *r) in refcount_inc() argument
128 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test()
140 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
151 bool refcount_dec_and_test(refcount_t *r) in refcount_dec_and_test() argument
[all …]
/tools/perf/util/
A Dcolor.c16 int r = 0; in __color_vsnprintf() local
30 r += vscnprintf(bf + r, size - r, fmt, args); in __color_vsnprintf()
32 r += scnprintf(bf + r, size - r, "%s", PERF_COLOR_RESET); in __color_vsnprintf()
34 r += scnprintf(bf + r, size - r, "%s", trail); in __color_vsnprintf()
35 return r; in __color_vsnprintf()
42 int r = 0; in __color_vfprintf() local
59 return r; in __color_vfprintf()
77 int r; in color_snprintf() local
82 return r; in color_snprintf()
88 int r; in color_fprintf() local
[all …]
A Dparse-regs-options.c16 const struct sample_reg *r = NULL; in __parse_regs() local
49 for (r = arch__sample_reg_masks(); r->name; r++) { in __parse_regs()
50 if (r->mask & mask) in __parse_regs()
51 fprintf(stderr, "%s ", r->name); in __parse_regs()
57 for (r = arch__sample_reg_masks(); r->name; r++) { in __parse_regs()
58 if ((r->mask & mask) && !strcasecmp(s, r->name)) in __parse_regs()
61 if (!r || !r->name) { in __parse_regs()
67 *mode |= r->mask; in __parse_regs()
A Dstrfilter.c75 node->r = r; in strfilter_node__alloc()
97 if (!cur->r || !last_op->r) in strfilter_node__new()
106 if (!cur->r || !root.r) in strfilter_node__new()
111 root.r = cur; in strfilter_node__new()
115 if (cur->r) in strfilter_node__new()
118 if (!cur->r) in strfilter_node__new()
123 if (cur->r) in strfilter_node__new()
133 if (cur->r) in strfilter_node__new()
136 if (!cur->r) in strfilter_node__new()
144 if (!cur->r) in strfilter_node__new()
[all …]
/tools/testing/selftests/memfd/
A Dfuse_test.c46 int r, fd; in mfd_assert_new() local
56 if (r < 0) { in mfd_assert_new()
66 long r; in mfd_assert_get_seals() local
69 if (r < 0) { in mfd_assert_get_seals()
74 return r; in mfd_assert_get_seals()
91 long r; in mfd_assert_add_seals() local
105 long r; in mfd_busy_add_seals() local
109 if (r < 0) in mfd_busy_add_seals()
112 s = r; in mfd_busy_add_seals()
121 return r; in mfd_busy_add_seals()
[all …]
/tools/bpf/
A Dbpf_dbg.c645 r->R = r->A; in bpf_single_step()
649 r->R = r->X; in bpf_single_step()
653 r->X = r->A; in bpf_single_step()
656 r->A = r->X; in bpf_single_step()
758 r->A = -r->A; in bpf_single_step()
773 r->A += r->X; in bpf_single_step()
779 r->A -= r->X; in bpf_single_step()
785 r->A *= r->X; in bpf_single_step()
820 r->A &= r->X; in bpf_single_step()
826 r->A |= r->X; in bpf_single_step()
[all …]
/tools/virtio/
A Dvirtio_test.c57 int r; in vq_notify() local
79 int r; in vhost_vq_setup() local
81 assert(r >= 0); in vhost_vq_setup()
84 assert(r >= 0); in vhost_vq_setup()
114 int r; in vq_info_add() local
129 int r; in vdev_info_init() local
204 r = 0; in run_test()
206 r = -1; in run_test()
213 r = -1; in run_test()
219 r = -1; in run_test()
[all …]
/tools/testing/selftests/bpf/progs/
A Dres_spin_lock.c29 int r; in res_spin_lock_test() local
39 if (r) in res_spin_lock_test()
40 return r; in res_spin_lock_test()
42 if (!r) { in res_spin_lock_test()
48 return r != -EDEADLK; in res_spin_lock_test()
54 int r; in res_spin_lock_test_AB() local
57 if (r) in res_spin_lock_test_AB()
58 return !r; in res_spin_lock_test_AB()
71 int r; in res_spin_lock_test_BA() local
74 if (r) in res_spin_lock_test_BA()
[all …]
A Dkmem_cache_iter.c43 struct kmem_cache_result *r; in slab_info_collector() local
53 r = bpf_map_lookup_elem(&slab_result, &idx); in slab_info_collector()
54 if (r == NULL) in slab_info_collector()
60 bpf_probe_read_kernel_str(r->name, sizeof(r->name), s->name); in slab_info_collector()
61 r->obj_size = s->size; in slab_info_collector()
63 if (!bpf_strncmp(r->name, 11, "task_struct")) in slab_info_collector()
64 bpf_map_update_elem(&slab_hash, &s, r->name, BPF_NOEXIST); in slab_info_collector()
96 struct kmem_cache_result *r; in open_coded_iter() local
98 r = bpf_map_lookup_elem(&slab_result, &open_coded_seen); in open_coded_iter()
99 if (!r) in open_coded_iter()
[all …]
/tools/net/ynl/samples/
A Drt-route.c12 static void rt_route_print(struct rt_route_getroute_rsp *r) in rt_route_print() argument
20 if (r->_hdr.rtm_table == RT_TABLE_LOCAL) in rt_route_print()
23 if (r->_present.oif) { in rt_route_print()
24 name = if_indextoname(r->oif, ifname); in rt_route_print()
29 if (r->_len.dst) { in rt_route_print()
30 route = inet_ntop(r->_hdr.rtm_family, r->dst, in rt_route_print()
32 printf("dst: %s/%d", route, r->_hdr.rtm_dst_len); in rt_route_print()
35 if (r->_len.gateway) { in rt_route_print()
36 route = inet_ntop(r->_hdr.rtm_family, r->gateway, in rt_route_print()
/tools/include/asm-generic/bitops/
A Dfls.h15 int r = 32; in generic_fls() local
21 r -= 16; in generic_fls()
25 r -= 8; in generic_fls()
29 r -= 4; in generic_fls()
33 r -= 2; in generic_fls()
37 r -= 1; in generic_fls()
39 return r; in generic_fls()
/tools/testing/selftests/hid/tests/
A Dtest_apple_keyboard.py155 self.call_input_event(r)
156 return [r]
171 r = uhdev.event(["F4"])
180 r = uhdev.event([])
204 r = uhdev.event([])
243 r = uhdev.event([])
257 r = uhdev.event(["F4"])
267 r = uhdev.event([])
303 r = uhdev.event(["F6"])
323 r = uhdev.event([])
[all …]
/tools/testing/selftests/kvm/arm64/
A Dsmccc_filter.c89 int r; in test_pad_must_be_zero() local
93 TEST_ASSERT(r < 0 && errno == EINVAL, in test_pad_must_be_zero()
103 int r; in test_filter_reserved_range() local
107 TEST_ASSERT(r < 0 && errno == EEXIST, in test_filter_reserved_range()
114 TEST_ASSERT(r < 0 && errno == EEXIST, in test_filter_reserved_range()
124 int r; in test_invalid_nr_functions() local
137 int r; in test_overflow_nr_functions() local
150 int r; in test_reserved_action() local
165 int r; in test_filter_overlap() local
248 int r; in kvm_supports_smccc_filter() local
[all …]
A Dno-vgic-v3.c12 #define __check_sr_read(r) \ argument
18 val = read_sysreg_s(SYS_ ## r); \
22 #define __check_sr_write(r) \ argument
26 write_sysreg_s(0, SYS_ ## r); \
31 #define check_sr_read(r) \ argument
33 __check_sr_read(r); \
37 #define check_sr_write(r) \ argument
39 __check_sr_write(r); \
43 #define check_sr_rw(r) \ argument
45 check_sr_read(r); \
[all …]
/tools/testing/selftests/pidfd/
A Dpidfd_fdinfo_test.c29 int r; in error_set() local
133 int r; in child_join() local
136 if (r < 0) in child_join()
140 error_set(err, r, "child %d reported: %d", child->pid, r); in child_join()
144 r = -1; in child_join()
148 return r; in child_join()
175 int r; in verify_fdinfo() local
221 int r; in child_fdinfo_nspid_test() local
232 if (r < 0) { in child_fdinfo_nspid_test()
239 if (r < 0) { in child_fdinfo_nspid_test()
[all …]
/tools/testing/selftests/kvm/
A Dirqfd_test.c30 int r, i; in juggle_eventfd_secondary() local
41 r = __kvm_irqfd(vm, GSI_BASE_SECONDARY, eventfd, 0); in juggle_eventfd_secondary()
42 TEST_ASSERT(!r || errno == EBUSY || errno == EBADF, in juggle_eventfd_secondary()
44 r, errno); in juggle_eventfd_secondary()
48 TEST_ASSERT(!r || errno == EBADF, in juggle_eventfd_secondary()
92 int r, i; in main() local
102 r = __kvm_irqfd(vm1, 11, __eventfd, 0); in main()
103 TEST_ASSERT(r && errno == EBUSY, in main()
104 "Wanted EBUSY, r = %d, errno = %d", r, errno); in main()
106 r = __kvm_irqfd(vm2, 12, __eventfd, 0); in main()
[all …]
A Dhardware_disable_test.c61 int r; in check_create_thread() local
63 r = pthread_create(thread, attr, f, arg); in check_create_thread()
69 int r; in check_set_affinity() local
77 int r; in check_join() local
79 r = pthread_join(thread, retval); in check_join()
153 int s, r; in main() local
167 r = (rand() % DELAY_US_MAX) + 1; in main()
168 pr_debug("%s: [%d] waiting %dus\n", __func__, i, r); in main()
169 usleep(r); in main()
170 r = waitpid(pid, &s, WNOHANG); in main()
[all …]
/tools/perf/ui/browsers/
A Dres_sample.c41 struct res_sample *r; in res_sample_browse() local
66 r = &res_samples[choice]; in res_sample_browse()
68 n = timestamp__scnprintf_nsec(r->time - context_len, trange, sizeof trange); in res_sample_browse()
70 timestamp__scnprintf_nsec(r->time + context_len, trange + n, sizeof trange - n); in res_sample_browse()
72 timestamp__scnprintf_nsec(r->time, tsample, sizeof tsample); in res_sample_browse()
81 r->cpu >= 0 ? "--cpu " : "", in res_sample_browse()
82 r->cpu >= 0 ? (sprintf(cpubuf, "%d", r->cpu), cpubuf) : "", in res_sample_browse()
83 r->tid ? "--tid " : "", in res_sample_browse()
84 r->tid ? (sprintf(tidbuf, "%d", r->tid), tidbuf) : "", in res_sample_browse()
90 r->tid ? "--show-switch-events --show-task-events " : "", in res_sample_browse()
/tools/perf/tests/shell/common/
A Dcheck_all_patterns_found.pl16 for $r (@regexps)
18 if (/$r/)
20 $found{$r} = 1; # FIXME: maybe add counters -- how many times was the regexp matched
25 for $r (@regexps)
27 unless (exists $found{$r})
29 print "Regexp not found: \"$r\"\n" unless $quiet;
A Dcheck_no_patterns_found.pl16 for $r (@regexps)
18 if (/$r/)
20 $found{$r} = 1;
25 for $r (@regexps)
27 if (exists $found{$r})
29 print "Regexp found: \"$r\"\n" unless $quiet;

Completed in 33 milliseconds

12345678910>>...13