Re: [patch 2/3] Latencytop instrumentations part 1

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frank Ch. Eigler <fche@...>
Cc: Arjan van de Ven <arjan@...>, Linux Kernel Mailing List <linux-kernel@...>, Linus Torvalds <torvalds@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>
Date: Friday, January 18, 2008 - 6:33 pm

On Fri, 18 Jan 2008 17:26:09 -0500
fche@redhat.com (Frank Ch. Eigler) wrote:


sure. Every instrumentation you see is of the nested kind (since the lowest level
of nesting is already automatic via wchan).

If markers can provide me the following semantics, I'd be MORE than happy to use markers:

If the code path is like this


set_latency_reason("Reading file");
    ....
    ....
          set_latency_reason("Allocating memory");
          kmalloc()  <--- blocks for 100 msec
          restore_latency_reason()
    ....
restore_latency_reason();

via several layers of functions, the requirement is that the 100 msec is accounted 
to "reading file" and not "Allocating memory". But if some other codepath hits the allocating memory function,
without an outer "set_latency_reason", it should be accounted to "Allocating memory".

If markers can provide that semantics ... you sold me.


-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Announce] Development release 0.1 of the LatencyTOP tool, Arjan van de Ven, (Fri Jan 18, 1:36 pm)
Re: Development release 0.1 of the LatencyTOP tool, KOSAKI Motohiro, (Sun Jan 20, 8:52 pm)
Re: [Announce] Development release 0.1 of the LatencyTOP tool, Arjan van de Ven, (Sat Jan 19, 1:16 am)
Re: [Announce] Development release 0.1 of the LatencyTOP tool, Arjan van de Ven, (Sat Jan 19, 1:25 am)
Re: [Announce] Development release 0.1 of the LatencyTOP tool, Arjan van de Ven, (Sat Jan 19, 1:34 am)
Re: [Announce] Development release 0.1 of the LatencyTOP tool, Arjan van de Ven, (Fri Jan 18, 2:35 pm)
[patch 3/3] LatencyTOP instrumentations part 2, Arjan van de Ven, (Fri Jan 18, 1:42 pm)
[patch 2/3] Latencytop instrumentations part 1, Arjan van de Ven, (Fri Jan 18, 1:40 pm)
Re: [patch 2/3] Latencytop instrumentations part 1, Frank Ch. Eigler, (Fri Jan 18, 6:26 pm)
Re: [patch 2/3] Latencytop instrumentations part 1, Arjan van de Ven, (Fri Jan 18, 6:33 pm)
Re: [patch 2/3] Latencytop instrumentations part 1, Frank Ch. Eigler, (Fri Jan 18, 7:11 pm)
Re: [patch 2/3] Latencytop instrumentations part 1, Arjan van de Ven, (Fri Jan 18, 7:20 pm)
Re: [patch 2/3] Latencytop instrumentations part 1, Arnaldo Carvalho de Melo, (Fri Jan 18, 6:47 pm)
[patch 1/3] LatencyTOP infrastructure patch, Arjan van de Ven, (Fri Jan 18, 1:39 pm)
Re: LatencyTOP infrastructure patch, KOSAKI Motohiro, (Mon Jan 21, 4:06 am)
Re: LatencyTOP infrastructure patch, Arjan van de Ven, (Mon Jan 21, 12:16 pm)
Re: [patch 1/3] LatencyTOP infrastructure patch, Dmitry Adamushko, (Sun Jan 20, 12:47 pm)
Re: [patch 1/3] LatencyTOP infrastructure patch, Dmitry Adamushko, (Sun Jan 20, 1:18 pm)