On Tue, 17 Sep 2013 23:47:03 -0700, Luca Clementi <[email protected]> 
wrote:
> On Tue, Sep 17, 2013 at 5:12 AM, Masatake YAMATO <[email protected]> wrote:
>>> In the patch `delete_mmap_cache' is used as a trigger for updating
>>> proc/maps info cache.  It is called as expected when mmap and friends
>>> are traced.  However, if the tracing is disabled with -e option, strae
>>> misses the chance to updating the info cache.
>>
>> Could you review this patch for the bug I reported and merge if appreciated.
>>
>> `REQUIRED_BY_STACKTRACE' is introduced to trigger the `delete_mmap_cache'.
>>
> 
> It works for me.
> 
> Acked-by: Luca Clementi <[email protected]>
> 
> Thanks for the fix,
> Luca

Thank you for testing and reviewing.
I'll revise the patch for merging.

For revising I have a question about the original patch:

    int
    sys_waitid(struct tcb *tcp)
    {
            if (entering(tcp)) {
                    printxval(waitid_types, tcp->u_arg[0], "P_???");
                    tprintf(", %ld, ", tcp->u_arg[1]);
            }
            else {
    #ifdef USE_LIBUNWIND
                    if (stack_trace_enabled)
                            delete_mmap_cache(tcp);
    #endif

Why delete_mmap_cache invocation is needed after wait related system calls?

Regards,
Masatake YAMATO

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to