[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160708144828.GD31763@krava>
Date: Fri, 8 Jul 2016 16:48:28 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Wang Nan <wangnan0@...wei.com>
Cc: acme@...nel.org, lizefan@...wei.com, linux-kernel@...r.kernel.org,
pi3orama@....com, He Kuang <hekuang@...wei.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Jiri Olsa <jolsa@...nel.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Nilay Vaish <nilayvaish@...il.com>
Subject: Re: [PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for
overwritable events
On Thu, Jul 07, 2016 at 05:34:45AM +0000, Wang Nan wrote:
SNIP
> @@ -373,7 +402,23 @@ static int record__mmap_evlist(struct record *rec,
>
> static int record__mmap(struct record *rec)
> {
> - return record__mmap_evlist(rec, rec->evlist);
> + int err;
> +
> + err = record__create_overwrite_evlist(rec);
> + if (err)
> + return err;
> +
> + err = record__mmap_evlist(rec, rec->evlist, false);
> + if (err)
> + return err;
> +
> + if (!rec->overwrite_evlist)
> + return 0;
> +
> + err = record__mmap_evlist(rec, rec->overwrite_evlist, true);
> + if (err)
> + return err;
> + return 0;
same here:
return record__mmap_evlist(rec, rec->overwrite_evlist, true);
jirka
Powered by blists - more mailing lists