| /tools/testing/selftests/bpf/ |
| A D | test_btf.h | 25 (type), (index_type), (nr_elems) 28 BTF_ARRAY_ENC(type, index_type, nr_elems) 39 (type), (offset), (size) 42 (name), (type), (bits_offset) 48 #define BTF_TYPEDEF_ENC(name, type) \ argument 51 #define BTF_PTR_ENC(type) \ argument 54 #define BTF_CONST_ENC(type) \ argument 57 #define BTF_VOLATILE_ENC(type) \ argument 60 #define BTF_RESTRICT_ENC(type) \ argument 67 (name), (type) [all …]
|
| A D | netlink_helpers.h | 36 int addattr(struct nlmsghdr *n, int maxlen, int type); 37 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data); 38 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data); 39 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data); 40 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data); 41 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data); 42 int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen); 44 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
|
| /tools/perf/tests/shell/attr/ |
| A D | test-stat-detailed-2 | 10 type=1 16 type=1 22 type=1 28 type=1 34 type=0 41 type=0 48 type=0 55 type=0 62 type=0 69 type=0 [all …]
|
| A D | test-stat-detailed-3 | 10 type=1 16 type=1 22 type=1 28 type=1 34 type=0 41 type=0 48 type=0 55 type=0 62 type=0 69 type=0 [all …]
|
| A D | test-stat-detailed-1 | 10 type=1 16 type=1 22 type=1 28 type=1 34 type=0 41 type=0 48 type=0 55 type=0 62 type=0 69 type=0 [all …]
|
| A D | test-stat-default | 9 type=1 15 type=1 21 type=1 27 type=1 33 type=0 40 type=0 46 type=0 53 type=0 60 type=0 67 type=0 [all …]
|
| /tools/objtool/arch/x86/ |
| A D | decode.c | 181 insn->type = INSN_OTHER; in arch_decode_instruction() 197 insn->type = INSN_BUG; in arch_decode_instruction() 506 insn->type = INSN_NOP; in arch_decode_instruction() 560 insn->type = INSN_BUG; in arch_decode_instruction() 565 insn->type = INSN_NOP; in arch_decode_instruction() 622 insn->type = INSN_TRAP; in arch_decode_instruction() 637 insn->type = INSN_RETURN; in arch_decode_instruction() 692 insn->type = INSN_SYSRET; in arch_decode_instruction() 702 insn->type = INSN_CALL; in arch_decode_instruction() 714 insn->type = INSN_CLD; in arch_decode_instruction() [all …]
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| A D | hw_stats_l3.sh | 175 jq ".[].info.${type}_stats.request" 202 check_err $? "$type stats not reported" 209 check_err $? "$type stats reported as used before device request" 237 log_test "Reporting of $type stats usage" 265 check_err $? "$type stats reported as used after bounce" 267 check_err $? "$type stats reported as requested after bounce" 326 check_err $? "$type stats show < 20 packets after 2.5s passed" 351 log_test "Counter values in $type stats" 381 check_err $? "$type stats reported as used after bounce" 383 check_err $? "$type stats reported as requested after bounce" [all …]
|
| /tools/include/linux/ |
| A D | bitfield.h | 44 #define __scalar_type_to_unsigned_cases(type) \ argument 45 unsigned type: (unsigned type)0, \ 46 signed type: (unsigned type)0 58 #define __bf_cast_unsigned(type, x) ((__unsigned_scalar_typeof(type))(x)) argument 144 #define ____MAKE_OP(type,base,to,from) \ argument 145 static __always_inline __##type type##_encode_bits(base v, base field) \ 151 static __always_inline __##type type##_replace_bits(__##type old, \ 154 return (old & ~to(field)) | type##_encode_bits(val, field); \ 156 static __always_inline void type##p_replace_bits(__##type *p, \ 159 *p = (*p & ~to(field)) | type##_encode_bits(val, field); \ [all …]
|
| /tools/testing/selftests/rseq/ |
| A D | compiler.h | 38 std::remove_cv<std::remove_reference<decltype(x)>::type>::type 40 #define rseq_scalar_type_to_expr(type) \ argument 41 unsigned type: (unsigned type)0, \ 42 signed type: (signed type)0
|
| /tools/lib/bpf/ |
| A D | nlattr.c | 50 int type = nla_type(nla); in validate_nla() local 52 if (type < 0 || type > maxtype) in validate_nla() 55 pt = &policy[type]; in validate_nla() 57 if (pt->type > LIBBPF_NLA_TYPE_MAX) in validate_nla() 62 else if (pt->type != LIBBPF_NLA_UNSPEC) in validate_nla() 63 minlen = nla_attr_minlen[pt->type]; in validate_nla() 71 if (pt->type == LIBBPF_NLA_STRING) { in validate_nla() 113 int type = nla_type(nla); in libbpf_nla_parse() local 115 if (type > maxtype) in libbpf_nla_parse() 124 if (tb[type]) { in libbpf_nla_parse() [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | sev_smoke_test.c | 77 static void test_sync_vmsa(uint32_t type, uint64_t policy) in test_sync_vmsa() argument 195 if (type == KVM_X86_SNP_VM) in test_sev_smoke() 196 test_sev(guest, type, policy | SNP_POLICY_DBG); in test_sev_smoke() 198 test_sev(guest, type, policy | SEV_POLICY_NO_DBG); in test_sev_smoke() 199 test_sev(guest, type, policy); in test_sev_smoke() 201 if (type == KVM_X86_SEV_VM) in test_sev_smoke() 204 test_sev_shutdown(type, policy); in test_sev_smoke() 208 test_sync_vmsa(type, policy); in test_sev_smoke() 209 if (type == KVM_X86_SNP_VM) in test_sev_smoke() 210 test_sync_vmsa(type, policy | SNP_POLICY_DBG); in test_sev_smoke() [all …]
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | proc.c | 22 const char *type, size_t len) in lookup_type() argument 80 *dest = type; in netstat_read_type() 81 type->counters = reallocarray(type->counters, in netstat_read_type() 84 if (!type->counters) in netstat_read_type() 94 for (i = type->counters_nr; i < type->counters_nr + nr_elems; i++) { in netstat_read_type() 112 type->counters_nr += nr_elems; in netstat_read_type() 133 type->counters = reallocarray(type->counters, i + 1, in snmp6_read() 135 if (!type->counters) in snmp6_read() 137 nc = &type->counters[i]; in snmp6_read() 141 type->counters_nr = i; in snmp6_read() [all …]
|
| /tools/testing/selftests/arm64/fp/ |
| A D | sve-ptrace.c | 177 type->name); in ptrace_set_get_inherit() 187 type->name); in ptrace_set_get_inherit() 199 type->name); in ptrace_set_get_inherit() 205 type->name); in ptrace_set_get_inherit() 258 type->name, vl); in ptrace_set_get_vl() 309 type->name, ret); in ptrace_sve_fpsimd() 321 type->name); in ptrace_sve_fpsimd() 324 type->name); in ptrace_sve_fpsimd() 420 type->name, vl); in ptrace_set_sve_get_sve_data() 505 type->name, vl); in ptrace_set_sve_get_fpsimd_data() [all …]
|
| /tools/testing/selftests/powerpc/mm/ |
| A D | stack_expansion_ldst.c | 48 return consume_stack(target_sp, stack_high, delta, type); in consume_stack() 62 if (type == STORE) in consume_stack() 114 int child(unsigned int stack_used, int delta, enum access_type type) in child() argument 120 assert(consume_stack(stack_high - stack_used, stack_high, delta, type) == 0); in child() 123 type == LOAD ? "load" : "store", delta, stack_used, stack_high, in child() 129 static int test_one(unsigned int stack_used, int delta, enum access_type type) in test_one() argument 136 exit(child(stack_used, delta, type)); in test_one() 147 type == LOAD ? "load" : "store", delta, stack_used, in test_one() 163 assert(test_one(DEFAULT_SIZE, delta, type) == 0); in test_one_type() 165 assert(test_one(DEFAULT_SIZE, rlim_cur, type) == 0); in test_one_type() [all …]
|
| /tools/testing/selftests/net/af_unix/ |
| A D | unix_connect.c | 23 int type; in FIXTURE_VARIANT() local 32 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 41 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 50 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 59 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 68 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 77 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 86 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 95 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 124 self->server = socket(self->family, variant->type, 0); in TEST_F() [all …]
|
| /tools/lib/subcmd/ |
| A D | parse-options.h | 98 enum parse_opt_type type; member 114 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + … argument 116 #define OPT_END() { .type = OPTION_END } 117 #define OPT_PARENT(p) { .type = OPTION_END, .parent = (p) } 118 #define OPT_ARGUMENT(l, h) { .type = OPTION_ARGUMENT, .long_name = (l), .help = (h) } 119 #define OPT_GROUP(h) { .type = OPTION_GROUP, .help = (h) } 124 { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), \ 138 { .type = OPTION_STRING, .short_name = (s), .long_name = (l), \ 142 { .type = OPTION_STRING, .short_name = (s), .long_name = (l), \ 158 { .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l),\ [all …]
|
| /tools/perf/trace/beauty/ |
| A D | kcmp.c | 19 int type = syscall_arg__val(arg, 2); in syscall_arg__scnprintf_kcmp_idx() local 22 if (type != KCMP_FILE) in syscall_arg__scnprintf_kcmp_idx() 29 static size_t kcmp__scnprintf_type(int type, char *bf, size_t size, bool show_prefix) in kcmp__scnprintf_type() argument 32 return strarray__scnprintf(&strarray__kcmp_types, bf, size, "%d", show_prefix, type); in kcmp__scnprintf_type() 37 unsigned long type = arg->val; in syscall_arg__scnprintf_kcmp_type() local 39 if (type != KCMP_FILE) in syscall_arg__scnprintf_kcmp_type() 42 return kcmp__scnprintf_type(type, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_kcmp_type()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_btf_map_in_map.c | 7 __uint(type, BPF_MAP_TYPE_ARRAY); 15 __uint(type, BPF_MAP_TYPE_ARRAY); 22 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 28 __uint(type, BPF_MAP_TYPE_ARRAY); 45 __uint(type, BPF_MAP_TYPE_ARRAY); 54 __uint(type, BPF_MAP_TYPE_ARRAY); 62 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 67 __uint(type, BPF_MAP_TYPE_ARRAY); 82 __uint(type, BPF_MAP_TYPE_HASH_OF_MAPS); 98 __uint(type, BPF_MAP_TYPE_REUSEPORT_SOCKARRAY); [all …]
|
| A D | bpf_iter_ksym.c | 35 char type; in dump_ksym() local 53 type = iter->type; in dump_ksym() 56 type = iter->exported ? to_upper(type) : to_lower(type); in dump_ksym() 58 value, type, iter->name, iter->module_name); in dump_ksym() 60 BPF_SEQ_PRINTF(seq, "0x%llx %c %s ", value, type, iter->name); in dump_ksym()
|
| /tools/testing/selftests/net/ |
| A D | l2_tos_ttl_inherit.sh | 116 if [ "$type" = "gre" ] || [ "$type" = "vxlan" ]; then 135 if [ "$type" = "gre" ]; then 217 if [ "$type" = "gre" ]; then 219 elif [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 227 if [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 244 if [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 261 if [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 284 elif [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 290 if [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then 307 if [ "$type" = "vxlan" ] || [ "$type" = "geneve" ]; then [all …]
|
| /tools/lib/symbol/ |
| A D | kallsyms.h | 13 static inline u8 kallsyms2elf_binding(char type) in kallsyms2elf_binding() argument 15 if (type == 'W') in kallsyms2elf_binding() 18 return isupper(type) ? STB_GLOBAL : STB_LOCAL; in kallsyms2elf_binding() 21 u8 kallsyms2elf_type(char type); 27 char type, u64 start));
|
| /tools/perf/tests/ |
| A D | sample-parsing.c | 52 if (type & PERF_SAMPLE_IP) in samples_same() 55 if (type & PERF_SAMPLE_TID) { in samples_same() 60 if (type & PERF_SAMPLE_TIME) in samples_same() 63 if (type & PERF_SAMPLE_ADDR) in samples_same() 66 if (type & PERF_SAMPLE_ID) in samples_same() 72 if (type & PERF_SAMPLE_CPU) in samples_same() 75 if (type & PERF_SAMPLE_PERIOD) in samples_same() 78 if (type & PERF_SAMPLE_READ) { in samples_same() 107 if (type & PERF_SAMPLE_RAW) { in samples_same() 152 if (type & PERF_SAMPLE_WEIGHT) in samples_same() [all …]
|
| /tools/objtool/arch/loongarch/ |
| A D | orc.c | 23 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry() 27 switch (cfi->type) { in init_orc_entry() 29 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry() 32 orc->type = ORC_TYPE_END_OF_STACK; in init_orc_entry() 35 orc->type = ORC_TYPE_CALL; in init_orc_entry() 38 orc->type = ORC_TYPE_REGS; in init_orc_entry() 41 orc->type = ORC_TYPE_REGS_PARTIAL; in init_orc_entry() 44 ERROR_INSN(insn, "unknown unwind hint type %d", cfi->type); in init_orc_entry() 134 static const char *orc_type_name(unsigned int type) in orc_type_name() argument 136 switch (type) { in orc_type_name() [all …]
|
| A D | decode.c | 85 insn->type = INSN_CALL; in decode_insn_reg0i26_fomat() 125 op->src.type = OP_SRC_ADD; in decode_insn_reg2i12_fomat() 128 op->dest.type = OP_DEST_REG; in decode_insn_reg2i12_fomat() 160 op->src.type = OP_SRC_REG; in decode_insn_reg2i12_fomat() 173 insn->type = INSN_NOP; in decode_insn_reg2i12_fomat() 211 op->src.type = OP_SRC_REG; in decode_insn_reg2i14_fomat() 235 insn->type = INSN_RETURN; in decode_insn_reg2i16_fomat() 297 insn->type = INSN_OTHER; in arch_decode_instruction() 314 insn->type = INSN_NOP; in arch_decode_instruction() 317 insn->type = INSN_BUG; in arch_decode_instruction() [all …]
|