| /tools/testing/selftests/ublk/ |
| A D | null.c | 51 sqe->buf_index = tag; in __setup_nop_io() 59 int tag) in null_queue_zc_io() argument 66 io_uring_prep_buf_register(sqe[0], 0, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in null_queue_zc_io() 67 sqe[0]->user_data = build_user_data(tag, in null_queue_zc_io() 74 io_uring_prep_buf_unregister(sqe[2], 0, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in null_queue_zc_io() 82 int tag) in null_queue_auto_zc_io() argument 111 if (ublk_completed_tgt_io(t, q, tag)) in ublk_null_io_done() 116 int tag) in ublk_null_queue_io() argument 126 queued = null_queue_zc_io(t, q, tag); in ublk_null_queue_io() 131 ublk_queued_tgt_io(t, q, tag, queued); in ublk_null_queue_io() [all …]
|
| A D | file_backed.c | 50 sqe[0]->buf_index = tag; in loop_queue_tgt_rw_io() 59 io_uring_prep_buf_register(sqe[0], 0, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in loop_queue_tgt_rw_io() 61 sqe[0]->user_data = build_user_data(tag, in loop_queue_tgt_rw_io() 67 sqe[1]->buf_index = tag; in loop_queue_tgt_rw_io() 71 io_uring_prep_buf_unregister(sqe[2], 0, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in loop_queue_tgt_rw_io() 106 int tag) in ublk_loop_queue_io() argument 108 int queued = loop_queue_tgt_io(t, q, tag); in ublk_loop_queue_io() 110 ublk_queued_tgt_io(t, q, tag, queued); in ublk_loop_queue_io() 119 struct ublk_io *io = ublk_get_io(q, tag); in ublk_loop_io_done() 133 if (ublk_completed_tgt_io(t, q, tag)) in ublk_loop_io_done() [all …]
|
| A D | kublk.h | 118 int tag; member 286 cmd->tag = tag; in io_uring_prep_buf_register() 301 cmd->tag = tag; in io_uring_prep_buf_unregister() 313 q->ios[tag].result = res; in ublk_set_io_res() 318 return q->ios[tag].result; in ublk_get_io_res() 329 return &q->io_cmd_buf[tag]; in ublk_get_iod() 342 return &q->ios[tag]; in ublk_get_io() 346 unsigned tag, int res) in ublk_complete_io() argument 348 struct ublk_io *io = &q->ios[tag]; in ublk_complete_io() 356 unsigned tag, int queued) in ublk_queued_tgt_io() argument [all …]
|
| A D | fault_inject.c | 42 struct ublk_queue *q, int tag) in ublk_fault_inject_queue_io() argument 44 const struct ublksrv_io_desc *iod = ublk_get_iod(q, tag); in ublk_fault_inject_queue_io() 52 sqe->user_data = build_user_data(tag, ublksrv_get_op(iod), 0, q->q_id, 1); in ublk_fault_inject_queue_io() 54 ublk_queued_tgt_io(t, q, tag, 1); in ublk_fault_inject_queue_io() 63 unsigned tag = user_data_to_tag(cqe->user_data); in ublk_fault_inject_tgt_io_done() local 64 const struct ublksrv_io_desc *iod = ublk_get_iod(q, tag); in ublk_fault_inject_tgt_io_done() 69 if (ublk_completed_tgt_io(t, q, tag)) in ublk_fault_inject_tgt_io_done() 70 ublk_complete_io(t, q, tag, iod->nr_sectors << 9); in ublk_fault_inject_tgt_io_done()
|
| A D | stripe.c | 135 struct ublk_io *io = ublk_get_io(q, tag); in stripe_queue_tgt_rw_io() 147 sqe[0]->user_data = build_user_data(tag, in stripe_queue_tgt_rw_io() 161 sqe[i]->buf_index = tag; in stripe_queue_tgt_rw_io() 197 int tag) in stripe_queue_tgt_io() argument 205 ret = handle_flush(t, q, iod, tag); in stripe_queue_tgt_io() 225 int tag) in ublk_stripe_queue_io() argument 227 int queued = stripe_queue_tgt_io(t, q, tag); in ublk_stripe_queue_io() 229 ublk_queued_tgt_io(t, q, tag, queued); in ublk_stripe_queue_io() 239 struct ublk_io *io = ublk_get_io(q, tag); in ublk_stripe_io_done() 265 if (ublk_completed_tgt_io(t, q, tag)) { in ublk_stripe_io_done() [all …]
|
| /tools/testing/selftests/arm64/tags/ |
| A D | tags_test.c | 11 #define SHIFT_TAG(tag) ((uint64_t)(tag) << 56) argument 12 #define SET_TAG(ptr, tag) (((uint64_t)(ptr) & ~SHIFT_TAG(0xff)) | \ argument 13 SHIFT_TAG(tag)) 18 unsigned long tag = 0; in main() local 31 tag = 0x42; in main() 32 ptr = (struct utsname *)SET_TAG(ptr, tag); in main()
|
| /tools/testing/radix-tree/ |
| A D | tag_check.c | 24 item_tag_set(tree, index, tag); in __simple_checks() 25 ret = item_tag_get(tree, index, tag); in __simple_checks() 27 ret = tag_tagged_items(tree, first, ~0UL, 10, tag, !tag); in __simple_checks() 29 ret = item_tag_get(tree, index, !tag); in __simple_checks() 34 ret = item_tag_get(tree, index, tag); in __simple_checks() 132 char *thrash_state, int tag) in gang_check() argument 140 index, BATCH, tag))) { in gang_check() 216 item_tag_set(tree, index, tag); in do_thrash() 217 item_tag_set(tree, index, tag); in do_thrash() 230 item_tag_clear(tree, index, tag); in do_thrash() [all …]
|
| A D | test.c | 12 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_set() argument 14 return radix_tree_tag_set(root, index, tag); in item_tag_set() 18 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_clear() argument 20 return radix_tree_tag_clear(root, index, tag); in item_tag_clear() 23 int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_get() argument 25 return radix_tree_tag_get(root, index, tag); in item_tag_get() 210 if (slot->tags[tag][i]) { in verify_node() 217 tag, slot->shift, tagged, anyset); in verify_node() 232 if (verify_node(slot->slots[i], tag, in verify_node() 233 !!test_bit(i, slot->tags[tag]))) { in verify_node() [all …]
|
| A D | test.h | 43 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag); 45 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag); 46 int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag); 48 void verify_tag_consistency(struct radix_tree_root *root, unsigned int tag); 55 int root_tag_get(struct radix_tree_root *root, unsigned int tag);
|
| /tools/testing/selftests/arm64/mte/ |
| A D | check_tags_inclusion.c | 52 int tag, run, ret, result = KSFT_PASS; in check_single_included_tags() local 59 for (tag = 0; (tag < MT_TAG_COUNT) && (result == KSFT_PASS); tag++) { in check_single_included_tags() 60 ret = mte_switch_mode(mode, MT_INCLUDE_VALID_TAG(tag), false); in check_single_included_tags() 67 if (MT_FETCH_TAG((uintptr_t)ptr) == tag) { in check_single_included_tags() 70 MT_INCLUDE_VALID_TAG(tag)); in check_single_included_tags() 84 int tag, run, result = KSFT_PASS; in check_multiple_included_tags() local 92 for (tag = 0; (tag < MT_TAG_COUNT - 1) && (result == KSFT_PASS); tag++) { in check_multiple_included_tags() 93 excl_mask |= 1 << tag; in check_multiple_included_tags() 99 if (MT_FETCH_TAG((uintptr_t)ptr) < tag) { in check_multiple_included_tags()
|
| /tools/perf/util/ |
| A D | dwarf-aux.c | 272 int tag; in __die_get_real_type() local 278 tag = dwarf_tag(vr_die); in __die_get_real_type() 1027 int tag; in __die_find_variable_cb() local 1029 tag = dwarf_tag(die_mem); in __die_find_variable_cb() 1109 int tag, ret; in die_get_typename_from_type() local 1436 if (tag != DW_TAG_variable && tag != DW_TAG_formal_parameter) in __die_find_var_reg_cb() 1584 if (tag != DW_TAG_variable && tag != DW_TAG_formal_parameter) in __die_collect_vars_cb() 2017 int tag; in die_get_member_type() local 2021 if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { in die_get_member_type() 2036 while (tag == DW_TAG_structure_type || tag == DW_TAG_union_type) { in die_get_member_type() [all …]
|
| A D | units.c | 14 while (i->tag) { in parse_tag_value() 15 char *s = strchr(str, i->tag); in parse_tag_value()
|
| A D | demangle-rust-v0.c | 614 switch(tag) { in basic_type() 1159 uint8_t tag; in printer_print_path() local 1168 switch(tag) { in printer_print_path() 1238 if (tag != 'M') { in printer_print_path() 1335 uint8_t tag; in printer_print_const() local 1351 switch(tag) { in printer_print_const() 1441 switch(tag) { in printer_print_const() 1597 uint8_t tag; in printer_print_type() local 1609 switch (tag) { in printer_print_type() 1620 if (tag != 'R') { in printer_print_type() [all …]
|
| A D | units.h | 9 char tag; member
|
| /tools/testing/selftests/bpf/ |
| A D | test_maps.h | 9 #define CHECK(condition, tag, format...) ({ \ argument 12 printf("%s(%d):FAIL:%s ", __func__, __LINE__, tag); \
|
| A D | test_tag.c | 91 static void tag_from_fdinfo(int fd_prog, uint8_t *tag, uint32_t len) in tag_from_fdinfo() argument 106 ret = hex2bin(tag, buff + prefix_len, len); in tag_from_fdinfo() 114 static void tag_from_alg(int insns, uint8_t *tag, uint32_t len) in tag_from_alg() argument 137 size = read(fd_alg, tag, len); in tag_from_alg() 144 static void tag_dump(const char *prefix, uint8_t *tag, uint32_t len) in tag_dump() argument 150 printf("%02x", tag[i]); in tag_dump()
|
| A D | test_progs.h | 197 #define _CHECK(condition, tag, duration, format...) ({ \ argument 202 fprintf(stdout, "%s:FAIL:%s ", __func__, tag); \ 206 __func__, tag, duration); \ 223 #define CHECK(condition, tag, format...) \ argument 224 _CHECK(condition, tag, duration, format) 225 #define CHECK_ATTR(condition, tag, format...) \ argument 226 _CHECK(condition, tag, tattr.duration, format)
|
| /tools/testing/selftests/cgroup/ |
| A D | test_hugetlb_memcg.c | 25 char *p, *q, *path = "/proc/meminfo", *tag = "Hugepagesize:"; in get_hugepage_size() local 47 if (tag) { in get_hugepage_size() 48 p = strstr(buf, tag); in get_hugepage_size() 51 p += strlen(tag); in get_hugepage_size()
|
| /tools/perf/tests/ |
| A D | stat.c | 11 u64 tag, u64 val) in has_term() argument 16 if ((config->data[i].tag == tag) && in has_term()
|
| /tools/bpf/bpftool/ |
| A D | common.c | 810 static int prog_fd_by_nametag(void *nametag, int **fds, bool tag) in prog_fd_by_nametag() argument 845 if (tag && memcmp(nametag, info.tag, BPF_TAG_SIZE)) { in prog_fd_by_nametag() 850 if (!tag) { in prog_fd_by_nametag() 900 unsigned char tag[BPF_TAG_SIZE]; in prog_parse_fds() local 904 if (sscanf(**argv, BPF_TAG_FMT, tag, tag + 1, tag + 2, in prog_parse_fds() 905 tag + 3, tag + 4, tag + 5, tag + 6, tag + 7) in prog_parse_fds() 912 return prog_fd_by_nametag(tag, fds, true); in prog_parse_fds()
|
| /tools/testing/selftests/sgx/ |
| A D | sigstruct.c | 214 uint64_t tag; member 230 mrecreate.tag = MRECREATE; in mrenclave_ecreate() 241 uint64_t tag; member 252 mreadd.tag = MREADD; in mrenclave_eadd() 260 uint64_t tag; member 273 mreextend.tag = MREEXTEND; in mrenclave_eextend()
|
| /tools/perf/arch/arm64/util/ |
| A D | mem-events.c | 6 #define E(t, n, s, l, a) { .tag = t, .name = n, .event_name = s, .ldlat = l, .aux_event = a }
|
| /tools/perf/arch/powerpc/util/ |
| A D | mem-events.c | 6 #define E(t, n, s, l, a) { .tag = t, .name = n, .event_name = s, .ldlat = l, .aux_event = a }
|
| /tools/testing/selftests/drivers/net/ |
| A D | xdp.py | 415 tag = format(random.randint(65, 90), "02x") 419 _set_xdp_map("map_xdp_setup", TestConfig.ADJST_TAG.value, int(tag, 16)) 438 expected_data = test_str + (offset * chr(int(tag, 16))) 550 tag = format(random.randint(65, 90), '02x') 555 _set_xdp_map("map_xdp_setup", TestConfig.ADJST_TAG.value, int(tag, 16)) 573 expected_data = chr(int(tag, 16)) * (0 - offset) + test_str
|
| /tools/testing/selftests/net/lib/ |
| A D | xdp_native.bpf.c | 318 __u8 tag; in xdp_adjst_tail_grow_data() local 336 tag = (__u8)(*val); in xdp_adjst_tail_grow_data() 339 __builtin_memcpy(&tmp_buff[i], &tag, 1); in xdp_adjst_tail_grow_data() 369 __u8 tag; in xdp_adjst_tail() local 462 __u8 tag; in xdp_adjst_head_grow_data() local 475 tag = (__u8)(*val); in xdp_adjst_head_grow_data() 477 __builtin_memcpy(&data_buff[i], &tag, 1); in xdp_adjst_head_grow_data()
|