From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbcERDbQ (ORCPT ); Tue, 17 May 2016 23:31:16 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:10470 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbcERDbO (ORCPT ); Tue, 17 May 2016 23:31:14 -0400 Subject: Re: [PATCH 02/17] perf tools: Add evlist channel helpers To: Arnaldo Carvalho de Melo References: <1463126174-119290-1-git-send-email-wangnan0@huawei.com> <1463126174-119290-3-git-send-email-wangnan0@huawei.com> <20160513130516.GH11346@kernel.org> CC: , , He Kuang , Arnaldo Carvalho de Melo , Jiri Olsa , Masami Hiramatsu , Namhyung Kim , Zefan Li , From: "Wangnan (F)" Message-ID: <573BE12F.5020603@huawei.com> Date: Wed, 18 May 2016 11:27:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160513130516.GH11346@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.573BE1FD.0104,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 236249a7e563b37e11121aab43b5d818 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/5/13 21:05, Arnaldo Carvalho de Melo wrote: > Em Fri, May 13, 2016 at 07:55:59AM +0000, Wang Nan escreveu: >> In this commit sereval helpers are introduced to support the principle > several > >> of channel. Channels hold different groups of evsels which configured >> differently. It will be used for overwritable evsels, which allows perf > why not use multiple evlists? An "evlist" is a "list of evsels", why do > we need yet another way of grouping evlists? > > - Arnaldo > There's an assumption all over perf that there's only one evlist: in 'struct record' there's an 'evlist' pointer, in 'struct session' there's also an 'evlist' pointer. Trying to change them to an array results in 181 errors, so I think fundamentally moving to multiple evlists is nearly impossible. Now I'm thinking introducing auxiliary evlists to perf record. We still obey one evlist assumption, only creates separated evlists for mmap. Thank you.