Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp613565ybg; Mon, 1 Jun 2020 09:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxT4pyruZVLrMlIRmR+xj1SPcpLMMLJNzSfiQVyvMRLoeRB/C0L7nEsqOwCfikI+vkg61/ X-Received: by 2002:a05:6402:17af:: with SMTP id j15mr21753818edy.67.1591029846449; Mon, 01 Jun 2020 09:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591029846; cv=none; d=google.com; s=arc-20160816; b=KmrY+0fCrMSKqj+khAhKwuIOa2FmVzmfC3PhSupvV0SIV+c1HH6V2NtyHtUSry2G6W D2CQ5xYgnObp9N0cNC9QOyr68v+9+xhx3A305aVZ5P4Lo3NNv42lJmCwThKaeLIFUcvS GgbUPHnNh3o+f0WKopGMP2rf3De8orCs1aWWHwIhRaN5d1KHVv47Q3f5BWS+fL/nVPZE TuYElKx495QHgHaBSVqVZK60G/4IbICNTtj+6pih8a15cZmp7yfcnW4d4kQqpRDcVjoj dM9CuBROO0Pe8boLFg768D0OWf+PE9geHoRSI20/mQFWos+/cU785mVfnqF9xwRO9unK 1e4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject:ironport-sdr :ironport-sdr; bh=LUZpy2O4oyKI4ZQkpabiv1I7Nx7Px0WyAwi47zhblGI=; b=QwK9GNtCE7Xv+vm+zOY+7wW1KjLxVmCKtDvhgqu9Xbw1ReECAS6u3+7Rws4O7e1ClE FDYXHfx0QvBOAAodIlZ24oEJ52iFgz2q35n0YD0mcjctup0BNrb8XG+NMFwrxRWJmQ6V rq4YgSYZvzFR0/hkSJg1O1T8XNfrwMfmrR2vkyNkn8BizpE9PVWrPxS3zqYtTgfCdWmb kV8qWiAoIrbAdToALXimK7QgQRzofLnQ5ZeS/22Z7CYGvdypo7UbYkc1kuYG7De4u79Z 1zdT/tIf94FihwMeQiJhSr1gVMgGfiWiaj9BcSdhp/ByTDMUUy3tUzgVzQ0thpKICKEH R/zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si11755516edn.74.2020.06.01.09.43.42; Mon, 01 Jun 2020 09:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726218AbgFAQKk (ORCPT + 99 others); Mon, 1 Jun 2020 12:10:40 -0400 Received: from mga06.intel.com ([134.134.136.31]:29708 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgFAQKk (ORCPT ); Mon, 1 Jun 2020 12:10:40 -0400 IronPort-SDR: DWsjnQqXwoaQ/bfzlveifQpL0nch8I4/c/0GAalQoL4B7LjFCTWJKJ1NX3TBgPf8mdmbFpD+le tWS1OpMRDTqg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 09:10:38 -0700 IronPort-SDR: ZPJE5U+525shpNbMA5Dz+2ejoOqQBle4L0fAcJgpaaXBJs2S0OBulYLfWMcPU5XksttKdDkQBM dfyiHg3WV4LQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,461,1583222400"; d="scan'208";a="312000597" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 01 Jun 2020 09:10:38 -0700 Received: from [10.249.230.65] (abudanko-mobl.ccr.corp.intel.com [10.249.230.65]) by linux.intel.com (Postfix) with ESMTP id 7FAA9580378; Mon, 1 Jun 2020 09:10:36 -0700 (PDT) Subject: Re: [PATCH v4 04/10] perf stat: factor out event handling loop into a function From: Alexey Budankov To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel References: <653fe5f3-c986-a841-1ed8-0a7d2fa24c00@linux.intel.com> <5f42c6c5-c301-accd-928e-4304fb1c15d0@linux.intel.com> <20200531181905.GB881900@krava> <63f1e2dd-ca1d-125a-cb83-d89f40433edc@linux.intel.com> Organization: Intel Corp. Message-ID: <47d1cde8-5bc9-cdd3-6f04-b9c5a659f736@linux.intel.com> Date: Mon, 1 Jun 2020 19:10:35 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <63f1e2dd-ca1d-125a-cb83-d89f40433edc@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.06.2020 10:38, Alexey Budankov wrote: > > On 31.05.2020 21:19, Jiri Olsa wrote: >> On Mon, May 25, 2020 at 05:19:45PM +0300, Alexey Budankov wrote: >> >> SNIP >> >>> @@ -544,12 +598,10 @@ static enum counter_recovery stat_handle_error(struct evsel *counter) >>> static int __run_perf_stat(int argc, const char **argv, int run_idx) >>> + dispatch_events(-1, &stat_config); >> >> hum, from the discussion we had on v3 I expected more smaller patches >> with easy changes, so the change is more transparent and easy to review >> >> as I said before this part really makes me worried and needs to be as clear >> as possible.. please introdce the new function first and replace the factored >> places separately, also more verbose changelog would help ;-) > > Ok. Will try to reshape the patch that way. Please see v5. It puts this refactoring part into several smaller consecutive changes to make review and possible bisecting activity easier. Let me know if some other parts of the patch set also require similar breakdown. ~Alexey