Home
last modified time | relevance | path

Searched refs:strs (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dbtf_field_iter.c11 const char *strs[5]; member
13 { .ids = {}, .strs = {} },
14 { .ids = {}, .strs = { "int" } },
15 { .ids = {}, .strs = { "int64" } },
16 { .ids = { 1 }, .strs = { "" } },
17 { .ids = { 2, 1 }, .strs = { "" } },
21 { .ids = {}, .strs = { "fw1" } },
22 { .ids = { 1 }, .strs = { "t" } },
23 { .ids = { 2 }, .strs = { "" } },
24 { .ids = { 1 }, .strs = { "" } },
[all …]
A Dbtf.c8069 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument
8071 const char *cur = strs; in dump_btf_strings()
8074 while (cur < strs + len) { in dump_btf_strings()
/tools/lib/bpf/
A Dfeatures.c90 strs, sizeof(strs), token_fd)); in probe_kern_btf()
108 strs, sizeof(strs), token_fd)); in probe_kern_btf_func()
126 strs, sizeof(strs), token_fd)); in probe_kern_btf_func_global()
145 strs, sizeof(strs), token_fd)); in probe_kern_btf_datasec()
164 strs, sizeof(strs), token_fd)); in probe_kern_btf_qmark_datasec()
176 strs, sizeof(strs), token_fd)); in probe_kern_btf_float()
193 strs, sizeof(strs), token_fd)); in probe_kern_btf_decl_tag()
209 strs, sizeof(strs), token_fd)); in probe_kern_btf_type_tag()
316 fd = libbpf__load_raw_btf((char *)types, sizeof(types), strs, sizeof(strs), token_fd); in probe_module_btf()
452 strs, sizeof(strs), token_fd)); in probe_kern_btf_enum64()
[all …]
A Dlibbpf_probes.c257 const char strs[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_local_storage_btf() local
279 strs, sizeof(strs), 0); in load_local_storage_btf()
A Dlinker.c2754 const void *strs; in bpf_linker__finalize() local
2766 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize()
2771 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
/tools/perf/util/
A Dcomm.c19 struct comm_str **strs; member
32 _comm_strs.strs = calloc(16, sizeof(*_comm_strs.strs)); in comm_strs__init()
112 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last()
115 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last()
116 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last()
156 tmp = reallocarray(comm_strs->strs, in comm_strs__findnew()
158 sizeof(*comm_strs->strs)); in comm_strs__findnew()
163 comm_strs->strs = tmp; in comm_strs__findnew()
173 int cmp = strcmp(comm_str__str(comm_strs->strs[mid]), str); in comm_strs__findnew()
182 memmove(&comm_strs->strs[insert + 1], &comm_strs->strs[insert], in comm_strs__findnew()
[all …]
A Dstat-display.c91 const char * const strs[] = { in metric_threshold_classify__str() local
98 static_assert(ARRAY_SIZE(strs) - 1 == METRIC_THRESHOLD_GOOD, "missing enum value"); in metric_threshold_classify__str()
99 return strs[thresh]; in metric_threshold_classify__str()
/tools/testing/kunit/
A Dkunit_tool_test.py377 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream:
378 return kunit_parser.LineStream(enumerate(strs, start=1))

Completed in 25 milliseconds