Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 4 of 4) sorted by relevance

/kernel/
Dsysctl-test.c319 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() local
321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min()
331 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min()
333 max_len); in sysctl_test_api_dointvec_write_single_less_int_min()
337 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min()
357 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_greater_int_max() local
359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max()
364 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "%lu", in sysctl_test_api_dointvec_write_single_greater_int_max()
366 max_len); in sysctl_test_api_dointvec_write_single_greater_int_max()
369 KUNIT_ASSERT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_greater_int_max()
/kernel/debug/kdb/
Dkdb_private.h87 extern int kallsyms_symbol_complete(char *prefix_name, int max_len);
Dkdb_support.c186 int kallsyms_symbol_complete(char *prefix_name, int max_len) in kallsyms_symbol_complete() argument
198 prev_len = min_t(int, max_len-1, in kallsyms_symbol_complete()
/kernel/events/
Dcore.c515 u64 max_len = READ_ONCE(perf_sample_allowed_ns); in perf_sample_event_took() local
520 if (max_len == 0) in perf_sample_event_took()
535 if (avg_len <= max_len) in perf_sample_event_took()
539 __report_allowed = max_len; in perf_sample_event_took()