Messages in this thread | | | From | Namhyung Kim <> | Subject | Re: [PATCH 3/5] perf tools: Allocate thread map_groups dynamicaly | Date | Mon, 17 Mar 2014 16:13:53 +0900 |
| |
On Fri, 14 Mar 2014 15:00:04 +0100, Jiri Olsa wrote: > Moving towards sharing map groups within a process threads. > > Because of this we need the map groups to be dynamically > allocated. No other functional change is intended in here. > @@ -664,7 +664,7 @@ void thread__find_addr_map(struct thread *thread, > al->cpumode = cpumode; > al->filtered = false; > > - if (machine == NULL) { > + if ((machine == NULL) || (mg == NULL)) { > al->map = NULL; > return; > }
What about the kernel threads? I guess they're not using thread->mg but machine->kmaps instead?
Thanks, Namhyung
| |