<div class="gmail_quote">On Mon, Oct 17, 2011 at 15:10, Ben Widawsky <span dir="ltr"><<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Oct 17, 2011 at 02:25:01PM -0200, Eugeni Dodonov wrote:<br>
> This adds a hint on where the call trace originated from. This is more of<br>
> a guess, but still, it seems to be quite accurate on the traces I tested.<br>
><br>
> So it appears in the output like:<br>
><br>
> ...<br>
> 0x06c470c8: 0x780e0002: 3DSTATE_CC_STATE_POINTERS<br>
> 0x06c470cc: 0x00007f81: blend change 1<br>
> 0x06c470d0: 0x00007f01: depth stencil change 1<br>
> 0x06c470d4: 0x00007f41: cc change 1<br>
> 0x06c470d8: 0x78021302: 3DSTATE_SAMPLER_STATE_POINTERS: VS mod 1, GS<br>
> mod 1, PS mod 1<br>
> 0x06c470dc: 0x00000000: VS sampler state<br>
> 0x06c470e0: 0x00000000: GS sampler state<br>
> 0x06c470e4: 0x00007e00: WM sampler state<br>
> 0x06c470e8: 0x78150003: Possible origin: mesa<br>
> 0x06c470e8: 0x78150003: 3DSTATE_CONSTANT_VS_STATE<br>
> 0x06c470ec: 0x00000000: dword 1<br>
> 0x06c470f0: 0x00000000: dword 2<br>
> 0x06c470f4: 0x00000000: dword 3<br>
> 0x06c470f8: 0x00000000: dword 4<br>
> ...<br>
><br>
> Signed-off-by: Eugeni Dodonov <<a href="mailto:eugeni.dodonov@intel.com">eugeni.dodonov@intel.com</a>><br>
> ---<br>
<br>
</div>I have patches which I never posted which do something similar, but<br>
perhaps more useful. It gets a PID and a timestamp for each batch.<br>
Unfortunately those require kernel changes. If that sounds useful to<br>
you, I will clean them up and put them on the list.<br></blockquote><div><br>Yep, it looks interesting for me. I also have a work in progress which grabs the perf results and combines them with timestamps, but it is still far from finished. I could try to adapt it to your patches if you think it would be interesting.<br clear="all">
</div></div><br>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br></a><br>