<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 7:47 PM, Fred Hebert <span dir="ltr"><<a href="mailto:mononcqc@ferd.ca" target="_blank">mononcqc@ferd.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 09/21, Lukas Larsson wrote:<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Do you mean something like what is possible today with {message,{caller}}<br>
and/or {message,{process_dump}}? i.e. dbg:tracer(),dbg:p(all,c),<br>
dbg:tp(lists,map, [{'_',[],[{message,{caller}}]}]).<br>
</blockquote>
<br></span>
I used mostly the trace BIFs directly. I'm guessing this would be the 'meta' specs if it exists?<br></blockquote><div><br></div><div>No, it uses the message part of the match spec syntax: <a href="http://www.erlang.org/doc/apps/erts/match_spec.html">http://www.erlang.org/doc/apps/erts/match_spec.html</a></div><div> </div><div>The match spec is just handed to erlang:trace_pattern, so erlang:trace_pattern({lists,map,'_'}, [{'_',[],[{message,{caller}}]}], []) gives the caller (not the entire call chain).</div><div><br></div><div>I'm not really sure when the meta stuff is used outside of {return_trace}.</div></div><br></div></div>