Re: [PATCH 29/48] perf callchain: Maintain libunwind's address space in map_groups

From: Jiri Olsa
Date: Fri Sep 14 2018 - 15:00:12 EST


On Fri, Sep 14, 2018 at 03:15:47PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Thu, Sep 13, 2018 at 02:54:31PM +0200, Jiri Olsa escreveu:
> > Currently the address_space was kept in thread struct but it's more
> > appropriate to keep it in map_groups as it's maintained throughout
> > exec's with timestamps. Also we should not flush the address space
> > after exec since it still can be accessed when used with an indexed
> > data file.
> >
> > Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> > Link: http://lkml.kernel.org/n/tip-hjryh6x2yfnrz8g0djhez24z@xxxxxxxxxxxxxx
> > Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
> > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
> > ---
> > tools/perf/util/map.h | 5 ++++-
> > tools/perf/util/thread.h | 1 -
> > tools/perf/util/unwind-libunwind-local.c | 28 ++++++++++++++----------
> > tools/perf/util/unwind-libunwind.c | 9 ++++----
> > tools/perf/util/unwind.h | 7 +++---
> > 5 files changed, 29 insertions(+), 21 deletions(-)
> >
> > diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
> > index 02c6f6962eb1..b1efe57b8563 100644
> > --- a/tools/perf/util/map.h
> > +++ b/tools/perf/util/map.h
> > @@ -65,10 +65,13 @@ struct maps {
> >
> > struct map_groups {
> > struct maps maps;
> > - struct machine *machine;
> > + struct machine *machine;
> > refcount_t refcnt;
> > u64 timestamp;
> > struct list_head list;
>
> Hey, avoid these distractions, this doesn't change anything and besides

it bothers me.. ;-)

jirka