Home
last modified time | relevance | path

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

/linux-6.6.21/lib/
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()
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 = {
Dtest_printf.c184 test_string(void) in test_string() function
819 test_string(); in selftest()
DMakefile52 obj-$(CONFIG_STRING_SELFTEST) += test_string.o
/linux-6.6.21/tools/perf/tests/
Dapi-io.c88 static int do_test_get_char(const char *test_string, size_t buf_size) in do_test_get_char() argument
95 if (setup_test(path, test_string, buf_size, &io)) in do_test_get_char()
98 for (i = 0; i < strlen(test_string); i++) { in do_test_get_char()
101 EXPECT_EQUAL(ch, test_string[i]); in do_test_get_char()
131 static int do_test_get_hex(const char *test_string, in do_test_get_hex() argument
142 if (setup_test(path, test_string, 4, &io)) in do_test_get_hex()
212 static int do_test_get_dec(const char *test_string, in do_test_get_dec() argument
223 if (setup_test(path, test_string, 4, &io)) in do_test_get_dec()
297 char test_string[1024]; in test_get_line() local
304 test_string[i] = 'a'; in test_get_line()
[all …]
/linux-6.6.21/drivers/platform/x86/
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.6.21/drivers/firmware/efi/libstub/
Defistub.h508 void *test_string; member
513 u32 test_string; member
/linux-6.6.21/kernel/trace/
Dtrace_events_filter.c799 static __always_inline char *test_string(char *str) in test_string() function
867 str = test_string(*addr); in filter_pred_pchar()
/linux-6.6.21/
DMAINTAINERS8769 F: lib/test_string.c