Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H 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 = { "" } },
18 { .ids = { 3, 1 }, .strs = { "s1", "f1", "f2" } },
19 { .ids = { 1, 5 }, .strs = { "u1", "f1", "f2" } },
20 { .ids = {}, .strs = { "e1", "v1", "v2" } },
21 { .ids = {}, .strs = { "fw1" } },
[all …]
H A Dbtf.c8134 static void dump_btf_strings(const char *strs, __u32 len) in do_test_dedup()
8136 const char *cur = strs; in do_test_dedup()
8139 while (cur < strs + len) { in do_test_dedup()
8054 dump_btf_strings(const char * strs,__u32 len) dump_btf_strings() argument
/linux/tools/perf/util/
H 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()
127 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find()
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()
[all …]
H 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()
/linux/drivers/base/test/
H A Dproperty-entry-test.c268 const char *strs[10]; in pe_test_strings() local
281 error = fwnode_property_read_string_array(node, "str", strs, 1); in pe_test_strings()
283 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
286 error = fwnode_property_read_string_array(node, "str", strs, 2); in pe_test_strings()
288 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
293 error = fwnode_property_read_string_array(node, "no-str", strs, 1); in pe_test_strings()
303 error = fwnode_property_read_string_array(node, "strs", strs, 3); in pe_test_strings()
305 KUNIT_EXPECT_STREQ(test, strs[0], "string-a"); in pe_test_strings()
306 KUNIT_EXPECT_STREQ(test, strs[1], "string-b"); in pe_test_strings()
308 error = fwnode_property_read_string_array(node, "strs", strs, 1); in pe_test_strings()
[all …]
/linux/tools/lib/bpf/
H 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()
/linux/sound/firewire/dice/
H A Ddice-proc.c29 static const char *str_from_array(const char *const strs[], unsigned int count, in str_from_array() argument
33 return strs[i]; in str_from_array()
/linux/drivers/counter/
H A Dcounter-sysfs.c210 return sysfs_emit(buf, "%s\n", avail->strs[data]); in counter_comp_u32_show()
261 err = __sysfs_match_string(avail->strs, avail->num_items, buf); in counter_comp_u32_store()
481 const char *const strs[], char *buf) in enums_available_show() argument
487 len += sysfs_emit_at(buf, len, "%s\n", strs[enums[index]]); in enums_available_show()
499 len += sysfs_emit_at(buf, len, "%s\n", avail->strs[index]); in strs_available_show()
/linux/security/apparmor/
H A Dpolicy_unpack.c460 static bool unpack_trans_table(struct aa_ext *e, struct aa_str_table *strs) in unpack_trans_table() argument
482 strs->table = table; in unpack_trans_table()
483 strs->size = size; in unpack_trans_table()
530 aa_free_str_table(strs); in unpack_trans_table()
/linux/include/uapi/drm/
H A Dvmwgfx_drm.h1270 __u64 strs; member
/linux/tools/testing/kunit/
H 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))