Hello
In the file pfmon_os_v2x.c In the funcion get_unavail_regs_v2x() There is the code sequence fd = pfm_create_context(&ctx, NULL, NULL, 0); if (fd == -1) return -1; ret = pfm_getinfo_evtsets(fd, &setf, 1); if (ret == -1) { close(fd); return -1; } My problem is that on my MIPS machine (running 2.6.26 patched with perfmon2) the pfm_create_context() call is returning "0" as the fd. Then the pfm_getinfo_evtsets() call is returning -1, so then fd 0 gets closed. This is a problem because fd 0 is stdin, so if I am trying to profile a program that gets input from stdin it fails. I tried to track down where this problem was coming from, but there are so many compatability layers I can't easily follow where the problem is being introduced from. Any advice on the best way to track this down? Thanks, Vince ------------------------------------------------------------------------------ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel