[m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread Steve Reinhardt
Took me a lot longer than it should have in retrospect, but here's the problem (from --trace-flags=SyscallVerbose): 594199893000: global: opening file /proc/meminfo 594199893000: system.cpu: syscall open returns 4 594200152000: system.cpu: syscall fstat called w/arguments

Re: [m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread nathan binkert
I added support for this kind of file mapping stuff for the m5 command so I could load multiple files into the simulator in full system mode. The python portion of this work could easily be ported to SE mode. Unless you want diffs now, I'll work on getting this stuff in the tree after ISCA. It

Re: [m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread Steve Reinhardt
No rush... we've lived with this for quite a while, at least we know why now. On Tue, Nov 18, 2008 at 3:10 PM, nathan binkert [EMAIL PROTECTED] wrote: I added support for this kind of file mapping stuff for the m5 command so I could load multiple files into the simulator in full system mode.

Re: [m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread gblack
That makes a lot of sense. I had thought before about an SE chroot, especially when I was thinking about getting dynamic linking to work. I think it is sort of overkill, but it probably wouldn't be -that- bad to implement. It would also help protect against a crazy defunct simulation destroying

Re: [m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread Ali Saidi
I did some digging and I figured it out. There is a libc function (posix.1): int sysconf(int name). The various system parameters you can query vary from the maximum number of arguments to the number of free physical pages in the system. Parser doesn't call this function directly, however

Re: [m5-dev] parser error (was Re: changeset in m5: Update stats for brk fix (cset f28f020f3006).)

2008-11-18 Thread gblack
I'd vote for 2 since you may get unrealistic results otherwise. I don't think this is what that person on the mailing list is seeing since they're out of memory at tick 0. Gabe Quoting Ali Saidi [EMAIL PROTECTED]: I did some digging and I figured it out. There is a libc function (posix.1):