Home
last modified time | relevance | path

Searched refs:test_string (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/lib/
A Dtest_string.c117 const char *test_string = "abcdefghijkl"; in strchr_selftest() local
122 for (i = 0; i < strlen(test_string) + 1; i++) { in strchr_selftest()
123 result = strchr(test_string, test_string[i]); in strchr_selftest()
124 if (result - test_string != i) in strchr_selftest()
136 result = strchr(test_string, 'z'); in strchr_selftest()
145 const char *test_string = "abcdefghijkl"; in strnchr_selftest() local
150 for (i = 0; i < strlen(test_string) + 1; i++) { in strnchr_selftest()
151 for (j = 0; j < strlen(test_string) + 2; j++) { in strnchr_selftest()
152 result = strnchr(test_string, j, test_string[i]); in strnchr_selftest()
158 if (result - test_string != i) in strnchr_selftest()
A Dtest-string_helpers.c34 struct test_string { struct
40 static const struct test_string strings[] __initconst = { argument
361 static const struct test_string strings_upper[] __initconst = {
372 static const struct test_string strings_lower[] __initconst = {
A Dtest_printf.c185 test_string(void) in test_string() function
794 test_string(); in selftest()
A DMakefile52 obj-$(CONFIG_STRING_SELFTEST) += test_string.o
/linux-6.3-rc2/tools/perf/tests/
A Dapi-io.c87 static int do_test_get_char(const char *test_string, size_t buf_size) in do_test_get_char() argument
94 if (setup_test(path, test_string, buf_size, &io)) in do_test_get_char()
97 for (i = 0; i < strlen(test_string); i++) { in do_test_get_char()
100 EXPECT_EQUAL(ch, test_string[i]); in do_test_get_char()
130 static int do_test_get_hex(const char *test_string, in do_test_get_hex() argument
141 if (setup_test(path, test_string, 4, &io)) in do_test_get_hex()
211 static int do_test_get_dec(const char *test_string, in do_test_get_dec() argument
222 if (setup_test(path, test_string, 4, &io)) in do_test_get_dec()
/linux-6.3-rc2/drivers/platform/x86/
A Dsamsung-laptop.c144 const char *test_string; member
159 .test_string = "SECLINUX",
222 .test_string = "SwSmi@",
1388 for (i = 0; sabi_configs[i].test_string != NULL; ++i) { in samsung_sabi_init()
1391 samsung->config->test_string); in samsung_sabi_init()
1440 samsung->config->test_string); in samsung_sabi_init()
/linux-6.3-rc2/drivers/firmware/efi/libstub/
A Defistub.h507 void *test_string; member
512 u32 test_string; member
/linux-6.3-rc2/kernel/trace/
A Dtrace_events_filter.c710 static __always_inline char *test_string(char *str) in test_string() function
778 str = test_string(*addr); in filter_pred_pchar()
/linux-6.3-rc2/
A DMAINTAINERS8620 F: lib/test_string.c

Completed in 38 milliseconds