Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/alloc_tag/
H A Dallocinfo_ioctl_test.c85 static bool match_entries(const struct allocinfo_tag_data_vec *procfs_entries, in match_entries() argument
92 if (procfs_entries->count != tags->count) { in match_entries()
94 tags->count, procfs_entries->count); in match_entries()
97 for (i = 0; i < procfs_entries->count; i++) { in match_entries()
98 if (!match_entry(&procfs_entries->tag[i], &tags->tag[i], in match_entries()
123 static int get_filtered_procfs_entries(struct allocinfo_tag_data_vec *procfs_entries, in get_filtered_procfs_entries() argument
135 memset(procfs_entries, 0, sizeof(*procfs_entries)); in get_filtered_procfs_entries()
136 while (fgets(line, sizeof(line), fp) && procfs_entries->count < VEC_MAX_ENTRIES) { in get_filtered_procfs_entries()
177 memcpy(&procfs_entries->tag[procfs_entries->count++], &procfs_entry, in get_filtered_procfs_entries()
249 struct allocinfo_tag_data_vec *procfs_entries = malloc(sizeof(*procfs_entries)); in run_filter_test() local
[all …]