| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_field_iter.c | 11 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 D | btf.c | 8134 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/lib/bpf/ |
| H A D | features.c | 82 static const char strs[] = "\0int"; in probe_kern_btf() local 89 strs, sizeof(strs), token_fd)); in probe_kern_btf() 94 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func() local 107 strs, sizeof(strs), token_fd)); in probe_kern_btf_func() 112 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func_global() local 125 strs, sizeof(strs), token_fd)); in probe_kern_btf_func_global() 130 static const char strs[] = "\0x\0.data"; in probe_kern_btf_datasec() local 144 strs, sizeof(strs), token_fd)); in probe_kern_btf_datasec() 149 static const char strs[] = "\0x\0?.data"; in probe_kern_btf_qmark_datasec() local 163 strs, sizeof(strs), token_fd)); in probe_kern_btf_qmark_datasec() [all …]
|
| H A D | libbpf_probes.c | 257 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()
|
| H A D | linker.c | 2756 const void *strs; in bpf_linker__finalize() local 2768 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize() 2773 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
|
| /linux/tools/perf/util/ |
| H A D | comm.c | 19 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 D | stat-display.c | 91 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 D | property-entry-test.c | 268 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/security/apparmor/ |
| H A D | policy_unpack.c | 512 struct aa_str_table *strs) in unpack_strs_table() argument 536 strs->table = table; in unpack_strs_table() 537 strs->size = size; in unpack_strs_table() 556 table[i].strs = str; in unpack_strs_table() 568 aa_destroy_str_table(strs); in unpack_strs_table() 697 if ((tags->strs.size && !tags->strs.table) || in verify_tags() 698 (!tags->strs.size && tags->strs.table)) { in verify_tags() 703 if (!tags->sets.size && !tags->hdrs.size && !tags->strs.size) { in verify_tags() 705 } else if (!(tags->sets.size && tags->hdrs.size && tags->strs.size)) { in verify_tags() 737 if (idx >= tags->strs.size) { in verify_tags() [all …]
|
| H A D | lib.c | 134 kfree_sensitive(t->table[i].strs); in aa_resize_str_table() 157 kfree_sensitive(t->table[i].strs); in aa_destroy_str_table()
|
| H A D | policy.c | 105 aa_destroy_str_table(&tags->strs); in aa_destroy_tags()
|
| H A D | domain.c | 532 for (next = rules->file->trans.table[index].strs; next; in x_table_lookup()
|
| /linux/drivers/firmware/efi/ |
| H A D | cper.c | 85 const char * const strs[], unsigned int strs_size) in cper_print_bits() argument 94 str = strs[i]; in cper_print_bits() 140 const char * const strs[], unsigned int strs_size) in cper_bits_to_str() argument 158 size = strscpy(str, strs[i], len); in cper_bits_to_str()
|
| /linux/drivers/regulator/ |
| H A D | of_regulator.c | 902 int strs, i; in is_supply_name() local 904 strs = strlen(name); in is_supply_name() 906 if (strs < 8) in is_supply_name() 908 for (i = strs - 6; i > 0; i--) { in is_supply_name()
|
| /linux/sound/firewire/dice/ |
| H A D | dice-proc.c | 29 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 D | counter-sysfs.c | 210 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/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_msg.c | 959 if (!arg->stat || !arg->info || !arg->strs) in vmw_mksstat_add_ioctl() 1004 pdesc->strsStartVA = arg->strs; in vmw_mksstat_add_ioctl() 1035 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
|
| /linux/security/apparmor/include/ |
| H A D | lib.h | 142 char *strs; member
|
| H A D | policy.h | 98 struct aa_str_table strs; member
|
| /linux/include/uapi/drm/ |
| H A D | vmwgfx_drm.h | 1270 __u64 strs; member
|
| /linux/sound/core/ |
| H A D | pcm.c | 1015 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in pcm_class_show() local 1025 str = strs[pcm->dev_class]; in pcm_class_show()
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 390 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream: 391 return kunit_parser.LineStream(enumerate(strs, start=1))
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 567 const struct hclge_comm_stats_str strs[], in hclge_comm_get_count() argument 574 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count() 581 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument 588 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats() 591 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats() 599 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument 608 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings() 611 ethtool_puts(data, strs[i].desc); in hclge_comm_get_strings()
|