[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] the behavior of unw_set_caching_policy
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] the behavior of unw_set_caching_policy |
Date: |
Wed, 18 Dec 2013 14:44:18 +0530 |
On Wed, Dec 18, 2013 at 8:34 AM, Masatake YAMATO <address@hidden> wrote:
> Thank you for replying.
>
> You wrote "if you're unwinding from the same IP address repeatedly."
>
> About strace my understanding is that invalidation is required when
> the target process calls system call which modifies the address space
> like mmap and execve because even IP address is the same IP can point
> different library or executable. Is this correct?
That's right. You don't have to worry about data getting
mapped/unmapped. But dynamically generated code or code that gets
remapped at runtime needs cache invalidation.
There is a man page for libunwind-dynamic, with an API to be used by
JITs. But it was never tested on x86 to my knowledge.
-Arun