Re: [patch] Performance Counters for Linux, v4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, December 16, 2008 - 7:42 am

On Tue, 2008-12-16 at 08:42 +1100, Paul Mackerras wrote:

I don't think using ptrace in this case is a big issue - aside from the
fact that ptrace is crap in that you'd not be able to timec from a
debugger context :-(

The biggest objection to using ptrace was that ptrace was needed
_during_ the execution of the monitored load, thereby distorting the
load.

This case is different in that it would be used to start off the load.

Still it would be good if we could find another (elegant) way to fix
this.

Also, I'm pretty sure the regular 'time' suffers the very same issue and
counts the exec syscall as well - I saw that when I tinkered with the
execve argument code.

Furthermore, I think output of tools such as time and now timec are most
relevant when compared between runs - that is, the change in values
between runs, not the absolute values as such. At least, that's what I
usually do:

 time ./foo

tinker with foo.c

 time ./foo

if time2 < time1 :-)
else :-(


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] Performance Counters for Linux, v4, Ingo Molnar, (Sun Dec 14, 2:28 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Mon Dec 15, 4:59 am)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Mon Dec 15, 5:11 am)
Re: [patch] Performance Counters for Linux, v4, Vince Weaver, (Mon Dec 15, 10:44 am)
Re: [patch] Performance Counters for Linux, v4, Vince Weaver, (Mon Dec 15, 2:07 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Mon Dec 15, 2:42 pm)
Re: [patch] Performance Counters for Linux, v4, stephane eranian, (Mon Dec 15, 3:03 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Mon Dec 15, 3:13 pm)
Re: [patch] Performance Counters for Linux, v4, Pavel Machek, (Tue Dec 16, 5:22 am)
Re: [patch] Performance Counters for Linux, v4, Ingo Molnar, (Tue Dec 16, 5:50 am)
Re: [patch] Performance Counters for Linux, v4, Pavel Machek, (Tue Dec 16, 5:57 am)
Re: [patch] Performance Counters for Linux, v4, Ingo Molnar, (Tue Dec 16, 6:03 am)
Re: [patch] Performance Counters for Linux, v4, Arjan van de Ven, (Tue Dec 16, 6:13 am)
Re: [patch] Performance Counters for Linux, v4, Peter Zijlstra, (Tue Dec 16, 7:22 am)
Re: [patch] Performance Counters for Linux, v4, Peter Zijlstra, (Tue Dec 16, 7:42 am)
Re: [patch] Performance Counters for Linux, v4, Peter Zijlstra, (Tue Dec 16, 7:45 am)
Re: [patch] Performance Counters for Linux, v4, Vince Weaver, (Tue Dec 16, 9:55 am)
Re: [patch] Performance Counters for Linux, v4, Vince Weaver, (Tue Dec 16, 10:38 am)
Re: [patch] Performance Counters for Linux, v4, Corey Ashford, (Tue Dec 16, 12:47 pm)
Re: [patch] Performance Counters for Linux, v4, Pavel Machek, (Tue Dec 16, 1:04 pm)
Re: [patch] Performance Counters for Linux, v4, Vince Weaver, (Tue Dec 16, 1:55 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Tue Dec 16, 2:52 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Tue Dec 16, 4:06 pm)
Re: [patch] Performance Counters for Linux, v4, Ingo Molnar, (Tue Dec 16, 4:51 pm)
Re: [patch] Performance Counters for Linux, v4, Andi Kleen, (Tue Dec 16, 6:55 pm)
Re: [patch] Performance Counters for Linux, v4, stephane eranian, (Wed Dec 17, 12:34 am)
Re: [patch] Performance Counters for Linux, v4, Corey Ashford, (Fri Jan 16, 11:01 am)
Re: [patch] Performance Counters for Linux, v4, Maynard Johnson, (Fri Jan 16, 3:14 pm)
Re: [patch] Performance Counters for Linux, v4, Ingo Molnar, (Fri Jan 16, 4:11 pm)
Re: [patch] Performance Counters for Linux, v4, Paul Mackerras, (Fri Jan 16, 6:26 pm)
Re: [patch] Performance Counters for Linux, v4, Andi Kleen, (Sat Jan 17, 2:53 am)