Lines Matching refs:mfd
1367 int mfd; in prof_open_maps() local
1374 mfd = open(filename, O_RDONLY); in prof_open_maps()
1376 return (mfd); in prof_open_maps()
1395 int mfd; in prof_dump_maps() local
1399 mfd = prof_open_maps("/proc/curproc/map"); in prof_dump_maps()
1401 mfd = -1; // Not implemented in prof_dump_maps()
1406 mfd = prof_open_maps("/proc/%d/task/%d/maps", pid, pid); in prof_dump_maps()
1407 if (mfd == -1) in prof_dump_maps()
1408 mfd = prof_open_maps("/proc/%d/maps", pid); in prof_dump_maps()
1411 if (mfd != -1) { in prof_dump_maps()
1430 nread = read(mfd, &prof_dump_buf[prof_dump_buf_end], in prof_dump_maps()
1440 if (mfd != -1) in prof_dump_maps()
1441 close(mfd); in prof_dump_maps()