Lines Matching refs:mfd
1345 int mfd; in prof_open_maps() local
1352 mfd = open(filename, O_RDONLY); in prof_open_maps()
1354 return (mfd); in prof_open_maps()
1361 int mfd; in prof_dump_maps() local
1365 mfd = prof_open_maps("/proc/curproc/map"); in prof_dump_maps()
1370 mfd = prof_open_maps("/proc/%d/task/%d/maps", pid, pid); in prof_dump_maps()
1371 if (mfd == -1) in prof_dump_maps()
1372 mfd = prof_open_maps("/proc/%d/maps", pid); in prof_dump_maps()
1375 if (mfd != -1) { in prof_dump_maps()
1394 nread = read(mfd, &prof_dump_buf[prof_dump_buf_end], in prof_dump_maps()
1404 if (mfd != -1) in prof_dump_maps()
1405 close(mfd); in prof_dump_maps()