Home
last modified time | relevance | path

Searched refs:ALLOCINFO_STR_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/alloc_tag/
H A Dallocinfo_ioctl_test.c72 strncmp(tag_data->tag.function, procfs_entry->tag.function, ALLOCINFO_STR_SIZE)) { in match_entry()
78 strncmp(tag_data->tag.filename, procfs_entry->tag.filename, ALLOCINFO_STR_SIZE)) { in match_entry()
112 if (len >= ALLOCINFO_STR_SIZE) in allocinfo_str()
113 str += (len - ALLOCINFO_STR_SIZE) + 1; in allocinfo_str()
119 strncpy(dest, allocinfo_str(src), ALLOCINFO_STR_SIZE - 1); in allocinfo_copy_str()
120 dest[ALLOCINFO_STR_SIZE - 1] = '\0'; in allocinfo_copy_str()
156 filter->fields.filename, ALLOCINFO_STR_SIZE)) in get_filtered_procfs_entries()
161 filter->fields.function, ALLOCINFO_STR_SIZE)) in get_filtered_procfs_entries()
299 strncpy(filter.fields.filename, target_filename, ALLOCINFO_STR_SIZE); in test_filename_filter()
311 strncpy(filter.fields.function, target_function, ALLOCINFO_STR_SIZE); in test_function_filter()
[all …]
/linux/include/uapi/linux/
H A Dalloc_tag.h22 #define ALLOCINFO_STR_SIZE 64 macro
30 char modname[ALLOCINFO_STR_SIZE];
31 char function[ALLOCINFO_STR_SIZE];
32 char filename[ALLOCINFO_STR_SIZE];
/linux/mm/
H A Dalloc_tag.c187 * ALLOCINFO_STR_SIZE, preserving the trailing characters.
197 if (len >= ALLOCINFO_STR_SIZE) in allocinfo_str()
198 str += (len - ALLOCINFO_STR_SIZE) + 1; in allocinfo_str()
205 strscpy_pad(dest, allocinfo_str(src), ALLOCINFO_STR_SIZE); in allocinfo_copy_str()
211 return strncmp(allocinfo_str(str), template, ALLOCINFO_STR_SIZE); in allocinfo_cmp_str()