From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: andrey mirtchovski MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020421162852.D7ECA19988@mail.cse.psu.edu> Subject: [9fans] kprof Date: Sun, 21 Apr 2002 10:30:30 -0600 Topicbox-Message-UUID: 79294cb6-eaca-11e9-9e20-41e7f4b1d025 i'm trying to modify kprof to provide a syscall tree the same way 'prof -d' does, but i can't figure out how to handle the data accumulated in devkprof.c's _kproftimer(). i understand the current way it works -- storing the total time the kernel has spent in a certain function, but what i can't figure out is how to store the actual PC values for the entire timespan between a start and a stop command. one way is to create a (presumably large!) array and incrementally store the current PC value at each call to _kproftimer(), but is that a decent solution? am i right in assuming (based on observations :) that no syscall can be executed in _kproftimer()? andrey