Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 641) sorted by relevance

12345678910>>...26

/tools/testing/selftests/bpf/
Dtest_btf.h22 #define BTF_ARRAY_ENC(type, index_type, nr_elems) \ argument
23 (type), (index_type), (nr_elems)
24 #define BTF_TYPE_ARRAY_ENC(type, index_type, nr_elems) \ argument
26 BTF_ARRAY_ENC(type, index_type, nr_elems)
34 #define BTF_VAR_ENC(name, type, linkage) \ argument
35 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_VAR, 0, 0), type), (linkage)
36 #define BTF_VAR_SECINFO_ENC(type, offset, size) \ argument
37 (type), (offset), (size)
39 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument
40 (name), (type), (bits_offset)
[all …]
/tools/objtool/arch/x86/
Ddecode.c107 unsigned int *len, enum insn_type *type, in arch_decode_instruction() argument
133 *type = INSN_OTHER; in arch_decode_instruction()
171 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
173 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
183 op->src.type = OP_SRC_REG; in arch_decode_instruction()
185 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
194 op->src.type = OP_SRC_POP; in arch_decode_instruction()
195 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
205 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
206 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
[all …]
/tools/perf/tests/attr/
Dtest-stat-detailed-310 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 …]
Dtest-stat-detailed-210 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 …]
Dtest-stat-detailed-110 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 …]
Dtest-stat-default9 type=1
15 type=1
21 type=1
27 type=1
33 type=0
40 type=0
47 type=0
54 type=0
61 type=0
68 type=0
[all …]
/tools/lib/bpf/
Dnlattr.c50 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/powerpc/mm/
Dstack_expansion_ldst.c42 … consume_stack(unsigned long target_sp, unsigned long stack_high, int delta, enum access_type type) in consume_stack() argument
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()
157 static void test_one_type(enum access_type type, unsigned long page_size, unsigned long rlim_cur) in test_one_type() argument
[all …]
/tools/bpf/bpftool/
Dcgroup.c38 enum bpf_attach_type type; in parse_attach_type() local
40 for (type = 0; type < __MAX_BPF_ATTACH_TYPE; type++) { in parse_attach_type()
41 if (attach_type_name[type] && in parse_attach_type()
42 is_prefix(str, attach_type_name[type])) in parse_attach_type()
43 return type; in parse_attach_type()
91 static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) in count_attached_bpf_progs() argument
96 ret = bpf_prog_query(cgroup_fd, type, query_flags, NULL, in count_attached_bpf_progs()
106 enum bpf_attach_type type; in cgroup_has_attached_progs() local
109 for (type = 0; type < __MAX_BPF_ATTACH_TYPE; type++) { in cgroup_has_attached_progs()
110 int count = count_attached_bpf_progs(cgroup_fd, type); in cgroup_has_attached_progs()
[all …]
/tools/perf/tests/
Dsample-parsing.c35 u64 type, u64 read_format) in samples_same() argument
39 if (type & PERF_SAMPLE_IDENTIFIER) in samples_same()
42 if (type & PERF_SAMPLE_IP) in samples_same()
45 if (type & PERF_SAMPLE_TID) { in samples_same()
50 if (type & PERF_SAMPLE_TIME) in samples_same()
53 if (type & PERF_SAMPLE_ADDR) in samples_same()
56 if (type & PERF_SAMPLE_ID) in samples_same()
59 if (type & PERF_SAMPLE_STREAM_ID) in samples_same()
62 if (type & PERF_SAMPLE_CPU) in samples_same()
65 if (type & PERF_SAMPLE_PERIOD) in samples_same()
[all …]
Devsel-roundtrip-name.c15 int type, op, err = 0, ret = 0, i, idx; in perf_evsel__roundtrip_cache_name_test() local
22 for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) { in perf_evsel__roundtrip_cache_name_test()
25 if (!evsel__is_cache_op_valid(type, op)) in perf_evsel__roundtrip_cache_name_test()
29 __evsel__hw_cache_type_op_res_name(type, op, i, name, sizeof(name)); in perf_evsel__roundtrip_cache_name_test()
40 for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) { in perf_evsel__roundtrip_cache_name_test()
43 if (!evsel__is_cache_op_valid(type, op)) in perf_evsel__roundtrip_cache_name_test()
47 __evsel__hw_cache_type_op_res_name(type, op, i, name, sizeof(name)); in perf_evsel__roundtrip_cache_name_test()
Dperf-record.c178 const u32 type = event->header.type; in test__PERF_RECORD() local
179 const char *name = perf_event__name(type); in test__PERF_RECORD()
182 if (type < PERF_RECORD_MAX) in test__PERF_RECORD()
183 nr_events[type]++; in test__PERF_RECORD()
224 if ((type == PERF_RECORD_COMM || in test__PERF_RECORD()
225 type == PERF_RECORD_MMAP || in test__PERF_RECORD()
226 type == PERF_RECORD_MMAP2 || in test__PERF_RECORD()
227 type == PERF_RECORD_FORK || in test__PERF_RECORD()
228 type == PERF_RECORD_EXIT) && in test__PERF_RECORD()
234 if ((type == PERF_RECORD_COMM || in test__PERF_RECORD()
[all …]
/tools/perf/trace/beauty/
Dkcmp.c19 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()
Dioctl.c130 type = _IOC_TYPE(cmd), in ioctl__scnprintf_cmd() local
135 int type; in ioctl__scnprintf_cmd() member
138 { .type = '$', .scnprintf = ioctl__scnprintf_perf_cmd, }, in ioctl__scnprintf_cmd()
139 ['A' - '$'] = { .type = 'A', .scnprintf = ioctl__scnprintf_sndrv_pcm_cmd, }, in ioctl__scnprintf_cmd()
140 ['T' - '$'] = { .type = 'T', .scnprintf = ioctl__scnprintf_tty_cmd, }, in ioctl__scnprintf_cmd()
141 ['U' - '$'] = { .type = 'U', .scnprintf = ioctl__scnprintf_sndrv_ctl_cmd, }, in ioctl__scnprintf_cmd()
142 ['d' - '$'] = { .type = 'd', .scnprintf = ioctl__scnprintf_drm_cmd, }, in ioctl__scnprintf_cmd()
143 [0xAE - '$'] = { .type = 0xAE, .scnprintf = ioctl__scnprintf_kvm_cmd, }, in ioctl__scnprintf_cmd()
144 [0xAF - '$'] = { .type = 0xAF, .scnprintf = ioctl__scnprintf_vhost_virtio_cmd, }, in ioctl__scnprintf_cmd()
148 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) { in ioctl__scnprintf_cmd()
[all …]
/tools/lib/subcmd/
Dparse-options.h102 enum parse_opt_type type; member
118 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + … argument
120 #define OPT_END() { .type = OPTION_END }
121 #define OPT_PARENT(p) { .type = OPTION_END, .parent = (p) }
122 #define OPT_ARGUMENT(l, h) { .type = OPTION_ARGUMENT, .long_name = (l), .help = (h) }
123 #define OPT_GROUP(h) { .type = OPTION_GROUP, .help = (h) }
124 #define OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .val…
125 #define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), …
126 #define OPT_BOOLEAN_FLAG(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name…
128 { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), \
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_btf_map_in_map.c7 __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 …]
/tools/lib/symbol/
Dkallsyms.h13 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));
Dkallsyms.c8 u8 kallsyms2elf_type(char type) in kallsyms2elf_type() argument
10 type = tolower(type); in kallsyms2elf_type()
11 return (type == 't' || type == 'w') ? STT_FUNC : STT_OBJECT; in kallsyms2elf_type()
33 char type, u64 start)) in kallsyms__parse() argument
/tools/lib/traceevent/
Devent-parse.c92 enum tep_func_arg_type type; member
838 static int event_item_type(enum tep_event_type type) in event_item_type() argument
840 switch (type) { in event_item_type()
869 switch (arg->type) { in free_arg()
896 free(arg->typecast.type); in free_arg()
999 enum tep_event_type type; in __read_token() local
1008 type = get_type(ch); in __read_token()
1009 if (type == TEP_EVENT_NONE) in __read_token()
1010 return type; in __read_token()
1014 switch (type) { in __read_token()
[all …]
/tools/perf/util/
Dparse-events.y75 %type <num> PE_VALUE
76 %type <num> PE_VALUE_SYM_HW
77 %type <num> PE_VALUE_SYM_SW
78 %type <num> PE_VALUE_SYM_TOOL
79 %type <num> PE_RAW
80 %type <num> PE_TERM
81 %type <num> value_sym
82 %type <str> PE_NAME
83 %type <str> PE_BPF_OBJECT
84 %type <str> PE_BPF_SOURCE
[all …]
Dparse-events-hybrid.c19 int type, int pmu_type) in config_hybrid_attr() argument
35 attr->type = type; in config_hybrid_attr()
46 __u32 type = attr->type; in create_event_hybrid() local
49 config_hybrid_attr(attr, config_type, pmu->type); in create_event_hybrid()
57 attr->type = type; in create_event_hybrid()
103 attr->type = pmu->type; in create_raw_event_hybrid()
145 if (attr->type == PERF_TYPE_SOFTWARE) in parse_events__add_numeric_hybrid()
152 if (attr->type != PERF_TYPE_RAW) { in parse_events__add_numeric_hybrid()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c72 const char *intel_pt_pkt_name(enum intel_pt_pkt_type type) in intel_pt_pkt_name() argument
74 return packet_name[type]; in intel_pt_pkt_name()
94 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
108 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
117 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop()
126 packet->type = INTEL_PT_CBR; in intel_pt_get_cbr()
142 packet->type = INTEL_PT_VMCS; in intel_pt_get_vmcs()
151 packet->type = INTEL_PT_OVF; in intel_pt_get_ovf()
168 packet->type = INTEL_PT_PSB; in intel_pt_get_psb()
174 packet->type = INTEL_PT_PSBEND; in intel_pt_get_psbend()
[all …]
/tools/include/linux/
Dkernel.h36 #define container_of(ptr, type, member) ({ \ argument
37 const typeof(((type *)0)->member) * __mptr = (ptr); \
38 (type *)((char *)__mptr - offsetof(type, member)); })
57 #define max_t(type, x, y) max((type)x, (type)y) argument
58 #define min_t(type, x, y) min((type)x, (type)y) argument
Dobjtool.h17 u8 type; member
50 #define UNWIND_HINT(sp_reg, sp_offset, type, end) \ argument
57 ".byte " __stringify(type) "\n\t" \
124 .macro UNWIND_HINT type:req sp_reg=0 sp_offset=0 end=0
131 .byte \type
156 #define UNWIND_HINT(sp_reg, sp_offset, type, end) \
163 .macro UNWIND_HINT type:req sp_reg=0 sp_offset=0 end=0
/tools/firewire/
Dlist.h47 #define list_entry(link, type, member) \ argument
48 ((type *)((char *)(link)-(unsigned long)(&((type *)0)->member)))
50 #define list_head(list, type, member) \ argument
51 list_entry((list)->next, type, member)
53 #define list_tail(list, type, member) \ argument
54 list_entry((list)->prev, type, member)

12345678910>>...26