lkml.org 
[lkml]   [2010]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4 v3][RFC] Infrastructure for compact call location representation
On Fri, Jun 11, 2010 at 01:43:00PM -0700, Randy Dunlap wrote:
> On Fri, 11 Jun 2010 13:33:56 -0700 David VomLehn wrote:
>
> > This patch allows the location of a call to be recorded as a small integer,
> > with each call location ("callsite") assigned a new value the first time
> > the code in that location is executed. Locations can be recorded as a
> > an address or as a __FILE__/__LINE__ pair. The later is easier to read, but
> > requires significantly more space.
>
> Did you happen to look at what drivers/base/power/trace.c does for callsite
> recording?

No, but at one point I did have a similar implementation working. I moved
away from it because I was leery of add yet another section to vmlinux.lds.S
for such a narrow range of functionality. If adding a section makes sense
to others, I'll do it since I felt it was overall a better solution.

--
David VL


\
 
 \ /
  Last update: 2010-06-11 23:25    [W:0.033 / U:1.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site