Searched refs:max_len (Results 1 – 5 of 5) sorted by relevance
/kernel/ |
D | sysctl-test.c | 316 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() local 318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min() 328 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min() 330 max_len); in sysctl_test_api_dointvec_write_single_less_int_min() 334 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min() 354 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_greater_int_max() local 356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max() 361 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "%lu", in sysctl_test_api_dointvec_write_single_greater_int_max() 363 max_len); in sysctl_test_api_dointvec_write_single_greater_int_max() 366 KUNIT_ASSERT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_greater_int_max()
|
/kernel/debug/kdb/ |
D | kdb_support.c | 126 int kallsyms_symbol_complete(char *prefix_name, int max_len) in kallsyms_symbol_complete() argument 138 prev_len = min_t(int, max_len-1, in kallsyms_symbol_complete()
|
D | kdb_private.h | 87 extern int kallsyms_symbol_complete(char *prefix_name, int max_len);
|
/kernel/events/ |
D | core.c | 522 u64 max_len = READ_ONCE(perf_sample_allowed_ns); in perf_sample_event_took() local 527 if (max_len == 0) in perf_sample_event_took() 542 if (avg_len <= max_len) in perf_sample_event_took() 546 __report_allowed = max_len; in perf_sample_event_took()
|
/kernel/trace/ |
D | trace.c | 2810 int max_len = PAGE_SIZE - struct_size(entry, array, 1); in trace_event_buffer_lock_reserve() local 2831 if (val == 1 && likely(len <= max_len)) { in trace_event_buffer_lock_reserve()
|