Searched refs:smaps (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/tools/testing/selftests/vm/
H A Dmlock2-tests.c153 file = fopen("/proc/self/smaps", "r"); seek_to_smaps_entry()
155 perror("fopen smaps"); seek_to_smaps_entry()
189 FILE *smaps; is_vmflag_set() local
191 smaps = seek_to_smaps_entry(addr); is_vmflag_set()
192 if (!smaps) { is_vmflag_set()
193 printf("Unable to parse /proc/self/smaps\n"); is_vmflag_set()
197 while (getline(&line, &size, smaps) > 0) { is_vmflag_set()
212 fclose(smaps); is_vmflag_set()
224 FILE *smaps = NULL; is_vma_lock_on_fault() local
234 smaps = seek_to_smaps_entry(addr); is_vma_lock_on_fault()
235 if (!smaps) { is_vma_lock_on_fault()
236 printf("Unable to parse /proc/self/smaps\n"); is_vma_lock_on_fault()
240 while (getline(&line, &size, smaps) > 0) { is_vma_lock_on_fault()
250 printf("Unable to parse smaps entry for Size\n"); is_vma_lock_on_fault()
256 while (getline(&line, &size, smaps) > 0) { is_vma_lock_on_fault()
266 printf("Unable to parse smaps entry for Rss\n"); is_vma_lock_on_fault()
275 if (smaps) is_vma_lock_on_fault()
276 fclose(smaps); is_vma_lock_on_fault()
/linux-4.4.14/fs/proc/
H A Dbase.c26 * A new process specific entry (smaps) included in /proc. It shows the
47 * Overall revision about smaps.
2773 REG("smaps", S_IRUGO, proc_pid_smaps_operations),
3121 REG("smaps", S_IRUGO, proc_tid_smaps_operations),

Completed in 119 milliseconds