Re: [RFC/PATCH 18/38] perf tools: Introduce thread__find_addr_location_by_time() and friends

2015-10-12 Thread Jiri Olsa
On Fri, Oct 02, 2015 at 02:18:59PM +0900, Namhyung Kim wrote: SNIP > +void thread__find_addr_map(struct thread *thread, u8 cpumode, > +enum map_type type, u64 addr, > +struct addr_location *al) > +{ > + al->thread = thread; > +

Re: [RFC/PATCH 18/38] perf tools: Introduce thread__find_addr_location_by_time() and friends

2015-10-12 Thread Jiri Olsa
On Fri, Oct 02, 2015 at 02:18:59PM +0900, Namhyung Kim wrote: SNIP > +void thread__find_addr_map(struct thread *thread, u8 cpumode, > +enum map_type type, u64 addr, > +struct addr_location *al) > +{ > + al->thread = thread; > +

[RFC/PATCH 18/38] perf tools: Introduce thread__find_addr_location_by_time() and friends

2015-10-01 Thread Namhyung Kim
These new functions are for find appropriate map (and symbol) at the given time when used with an indexed data file. This is based on the fact that map_groups list is sorted by time in the previous patch. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/event.c | 59

[RFC/PATCH 18/38] perf tools: Introduce thread__find_addr_location_by_time() and friends

2015-10-01 Thread Namhyung Kim
These new functions are for find appropriate map (and symbol) at the given time when used with an indexed data file. This is based on the fact that map_groups list is sorted by time in the previous patch. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim