Re: [PATCH 3/4 v3][RFC] Infrastructure for compact call locationrepresentation
From: David VomLehn
Date: Fri Jun 11 2010 - 17:23:46 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/