Lines Matching refs:mfd
1403 int mfd; in prof_open_maps() local
1410 mfd = open(filename, O_RDONLY); in prof_open_maps()
1412 return (mfd); in prof_open_maps()
1431 int mfd; in prof_dump_maps() local
1435 mfd = prof_open_maps("/proc/curproc/map"); in prof_dump_maps()
1437 mfd = -1; // Not implemented in prof_dump_maps()
1442 mfd = prof_open_maps("/proc/%d/task/%d/maps", pid, pid); in prof_dump_maps()
1443 if (mfd == -1) in prof_dump_maps()
1444 mfd = prof_open_maps("/proc/%d/maps", pid); in prof_dump_maps()
1447 if (mfd != -1) { in prof_dump_maps()
1466 nread = read(mfd, &prof_dump_buf[prof_dump_buf_end], in prof_dump_maps()
1476 if (mfd != -1) in prof_dump_maps()
1477 close(mfd); in prof_dump_maps()