On Fri, Oct 09, 2015 at 07:29:34PM +0200, Milian Wolff wrote:

SNIP

> > ;-)
> > 
> > any chance this could be done also for util/unwind-libdw.c ?
> 
> That patch looks much better than mine. I'll try it out later next week and 
> will also have a look at util/unwind-libdw.c. Question: How can I test the 
> behavior of the latter? Do I need to uninstall libunwind, or can I change the 
> unwinder at runtime somehow (env var?).

It's either libunwind or libdw compiled in, so I'd suggest
generic test (see below) and compile with make variables
NO_LIBUNWIND=1 or NO_LIBDW_DWARF_UNWIND=1 to get desired
unwinder compiled in

> 
> Also, are there unit tests for this behavior somewhere?

please check tests/dwarf-unwind.c, I think you can add similar test

thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to