Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp212039pxb; Wed, 23 Mar 2022 16:33:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWiWEFPCxw/EdCULyEggJyHCQ/yOs2spo1yRud1EW3w9bzbNv+46WzQBypYZauA8THv5/q X-Received: by 2002:a17:906:af6b:b0:6df:83a9:67db with SMTP id os11-20020a170906af6b00b006df83a967dbmr2881357ejb.222.1648078432593; Wed, 23 Mar 2022 16:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648078432; cv=none; d=google.com; s=arc-20160816; b=JaPODDQJWBvDqdDm0p14ehXiTDb8+qyiqIYHFStXnejCActITTseiiO8lRmbCzAeyY j9mMNTBzA3Fqpf/WgGTY7bm0ldXo5XXXlZFBuvYamLxZ4EMVWFjYHsEvHUclzdaC4+wi 1Xokrb1z65sCvIzGBu7nUz3MrvatJ78TTkAIRT/i188sTthwDwmE1MONxjaVvJ+kvXg1 XcD9r+Qo7yXFp4sTJVS9S0OtFQB+e7O6+o7AWDOf7v+80J53WqSltAqL+26BGU5PJHaj IWmZ+phoyjecTV0dAHul57AdZkLuvCVmqCOUHC/4wfjZzYcF/AeJCPxZcen8PonhJioG sabQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=euW3Xs6OfTVpw/1xQDcJ02WLqSLNT67E/dIwSEeZ96o=; b=V0V97sAVMscNRWpISQtJuDuav2LsCJEGxvnYEY5Drfn/35dRgr2JXpwUJn7dkoFN6P abaKvpsJf3PrgH2GSN9IJJ0qreK6JHP2bd50ycjKBMqxaWZOAy0OqRLplcUMALSsybpv ZEa1Wc2mjB8wiAdvaxRRBvHSE2KVReYTrvlV1CuXb3wzB3ujIxygfpxtn0Vinfn98T4V TZ8fVNkjBCSHED1Uh3b7j5gpv+/4g2kpFCzz3+NUGAXe4GVqlQr7MdMyWew8WgDfeWBC UhbGw9UsCU5ZtdwxLWk38yyBZkmncb2FMo/PZkHMhVNmRvMEJtEfj0iwRJCc3uNmanBD xkrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id de30-20020a1709069bde00b006df76385e37si12924331ejc.727.2022.03.23.16.33.27; Wed, 23 Mar 2022 16:33:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237744AbiCVWTK (ORCPT + 99 others); Tue, 22 Mar 2022 18:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233046AbiCVWTJ (ORCPT ); Tue, 22 Mar 2022 18:19:09 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1BA12606; Tue, 22 Mar 2022 15:17:40 -0700 (PDT) Received: from fraeml713-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KNQly3HSxz67ZGL; Wed, 23 Mar 2022 06:15:26 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml713-chm.china.huawei.com (10.206.15.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 22 Mar 2022 23:17:38 +0100 Received: from [10.47.85.68] (10.47.85.68) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 22 Mar 2022 22:17:37 +0000 Message-ID: Date: Tue, 22 Mar 2022 22:17:36 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: perf version issues To: Arnaldo Carvalho de Melo CC: Ian Rogers , Jiri Olsa , "Linux Kernel Mailing List" , References: <8a75f3b1-2b99-1233-3a70-070311b6ebc1@huawei.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.47.85.68] X-ClientProxiedBy: lhreml730-chm.china.huawei.com (10.201.108.81) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/03/2022 20:11, Arnaldo Carvalho de Melo wrote: >> I have been finding that during my development that the output from "perf >> -v" may be incorrect in certain circumstances. I sent some patches to fix it >> up: >> https://lore.kernel.org/linux-perf-users/1645449409-158238-1-git-send-email-john.garry@huawei.com/T/#mf7234d2e331a53370c148eb4a0633d405a5c6832 >> >> Is there some issue that these cannot be processed? > So, while testing it I noticed that if we use 'git cherry-pick' it > doesn't trigger a rebuild, even having a new head:-\ > > I.e. with the two patches in at the HEAD, try: > > $ git log --oneline -2 > cb66befccba18fac (HEAD -> perf/core) perf tools: Fix version kernel tag > 4e666cdb06eede20 perf tools: Fix dependency for version file creation > $ make -C tools/perf O=/tmp/build/perf install-bin > $ perf -v > perf version 5.17.rc8.gcb66befccba1 > > Ok so far, now lets remove HEAD and leave just the first patch, that has > the ORIG_HEAD dependency to trigger a rebuild: > > $ git reset --hard HEAD~ > HEAD is now at 4e666cdb06eede20 perf tools: Fix dependency for version file creation > $ make -C tools/perf O=/tmp/build/perf install-bin > $ perf -v > perf version 5.17.rc8.g4e666cdb06ee > > Ok, detected and rebuilt, perf -v works as expected. ok, good > > Now lets try cherry picking your second patch: > > $ git cherry-pick cb66befccba18fac > [perf/core 8ff6a6c06a90a362] perf tools: Fix version kernel tag > Author: John Garry > Date: Mon Feb 21 21:16:49 2022 +0800 > 1 file changed, 4 insertions(+), 9 deletions(-) > $ make -C tools/perf O=/tmp/build/perf install-bin > $ perf -v > perf version 5.17.rc8.g4e666cdb06ee > > Now it doesn´t notice it and there is no automatic rebuild triggered, we > stay with the cset from before the cherry-pick:-\ > > $ git log --oneline -2 > 8ff6a6c06a90a362 (HEAD -> perf/core) perf tools: Fix version kernel tag > 4e666cdb06eede20 perf tools: Fix dependency for version file creation > $ > > Anyway, your patch works for some cases, so its an improvement and I'll > apply it, we can continue from there. Thanks, I just noticed the "reset --hard HEAD^" problem and not cherry-pick'ing. Let me check this tomorrow. john