From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] kprof From: andrey mirtchovski MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020421203357.6E119199BE@mail.cse.psu.edu> Date: Sun, 21 Apr 2002 14:35:40 -0600 Topicbox-Message-UUID: 796ca33a-eaca-11e9-9e20-41e7f4b1d025 i managed to do something like what i wanted by modifying devkprof.c like: allocate 10mins * 60 secs * 1000ms for storing the pc, then at each call store the pc value passed to _kproftimer() in the array. (so, it only works for 10 minutes, which is plenty enough for what we're looking at) then the kprof executable prints out the corresponding function name assiciated with this pc... here's how the final output looks like (note, i piped it uniq to avoid crud): ..... 01ced i8259isr 46a8e v6tov4 00301 halt 5fac0 runproc 00301 halt 01ced i8259isr 00301 halt 01ced i8259isr 00301 halt 5c35b seg 00301 halt 01ced i8259isr 00301 halt 5f8d0 runproc 00301 halt 69f21 ilock 00301 halt 01ced i8259isr 6edd2 poolfree 00301 halt 0a75d transmit ..... unfortunately it's not as good as prof -d, but paired with the normal kprof output some information could be gleaned from it. if anyone needs the diffs, mail me privately