Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp278544pxb; Sat, 21 Aug 2021 02:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx51ANtSJy6QN5AVJRcpECxpVZH3AK+RV+AUI/SylbOXWJ7NzW0yUwD0Uw6eiv1iWRxwjyK X-Received: by 2002:a02:7348:: with SMTP id a8mr21282253jae.116.1629537732415; Sat, 21 Aug 2021 02:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629537732; cv=none; d=google.com; s=arc-20160816; b=z2eeej42aWCpIvsn5HpDBx6j0E8Tf9pyytxTgIbXnod0LQyvtTw/fgFbJ/gT1TlifS EbT53qOLOO6z0yJxrh3M8GaryYO8l4X7iY04aPJV77znNJQhFacDCVnLC1KYZVOUEN0Z VLndXS+jSHoiguqpXXQjcA6mxclWSmddWyN84JNP3M1QmfPr0trLBMqe7BzT7JmMhkMz sYmHb7ycJLi37PKV+urAxpRDsNKDH36p2VAiWrRh1D5IYRGcH5IB8PuKhv3bLQx5eVbn ELRxbZlaSDcytlOCKQvawfyedh3SAoKjGfsosSOaQdTOcS8jOhVxl1XWnH+uKbUpiO8J w1jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TQW9vFf14CSQ8/UctEQPnfJzPFIegK8ITMd5pacLu0s=; b=1K/ByRrU72BWX5GUFILkS4jCEMTG6BTB1x+zT4QtRYteqEDANQuEdez8lsytpscwaM mKcb2iTrS84YsrXoILX/3mZaiU84AcIRklJu1hR+FfNI+UMZVGiOpimVZ8U0dYgcS+YS 7RUwZ7cnOEV3raBPrcSV2nn1aSxGjXetA5Yt5HM8Ev8L2OCB1o1oZIxMISR14baavUpu 3fX7ldNpUmKgoMLDG88Q+oGw+qkhGUBBuMIcAlrUfIeq7zKUoEGES/MtXXRW2na8XOMd qTQYnijJUrnGDeYBIb8MtzAgM/xEl5+4by7Cpvu9NgNmQ6AKoKp4apw7CXSzdCzBtkcF XqIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oPSURToH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si9360681ill.124.2021.08.21.02.22.01; Sat, 21 Aug 2021 02:22:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oPSURToH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234293AbhHUJV2 (ORCPT + 99 others); Sat, 21 Aug 2021 05:21:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234295AbhHUJUw (ORCPT ); Sat, 21 Aug 2021 05:20:52 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408A5C0612AC; Sat, 21 Aug 2021 02:20:07 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id h9so25216803ejs.4; Sat, 21 Aug 2021 02:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TQW9vFf14CSQ8/UctEQPnfJzPFIegK8ITMd5pacLu0s=; b=oPSURToHwIk6vpDnWikcvdiqa3NRcqB5AjozmrGNhz5bHbGqpeygl/kT/OUJcVSx60 8RaU/BSf0v4e317mZGJ+rBF71qk1Gvd6Vfqsu3Nt3AW4IlX9IjNMGx9/8TeqVMHUxNwv 4XKpBPmyQqWC4FihySXcEAO0lyt5Ym8DzU9ESlL63+KJyisG4VQtWJKSOQ1NWL6OuKeE 05/lNgfDdCmTzL3tsDg73k+gLEF0X4stcJUg7TxWDxS5VEcoOPAse9qiZ+5nawd9KzDx +qDZBj/2OggNBISVQAdHuwUsJZA7HfRa9iuIUBJs13N9+3XBd+nnoh9eAcv9UqFF2yxP crTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TQW9vFf14CSQ8/UctEQPnfJzPFIegK8ITMd5pacLu0s=; b=ZV+eDjWT2ZCNaQ+t/xq1H7RRdmxd/UjqSgf0prM8BMYlq9dbWYPtgJczh8Wunt0kZS ZPJz/XkjGosjaPcJmLmcIY0jVcXk9bCt5XIwcCMYp3TGhMy8z3VZ+w5kfILeE0efi/+k +VD0IG5rid5N/2/jDvI7RlUDqjeDwqlvcfLcEHVpXYrkgGKZzpRRmmOEzmVAZ+JKWKLk NAhG4zfFenbOM7Vkm6Yj38Z+1iipGblezFuYtUoJSfhG8/hz4oa0tdwsHcfR4ImoPi2a SuTDAGglUYMV8j4TKvx9/4tuCbXn9fQfsDFReWd+NyBee3awHhIihT0gB/DDl/1PyW4p gSCA== X-Gm-Message-State: AOAM533E5rwMd/uSKJa5QIAwgw0UEtwuZQppJofPNA1awOiQrK+Ou56H R9RV1+rvUE5yd8BCENgGxko= X-Received: by 2002:a17:906:eda3:: with SMTP id sa3mr26444608ejb.451.1629537605773; Sat, 21 Aug 2021 02:20:05 -0700 (PDT) Received: from honeypot.. (mob-176-243-254-204.net.vodafone.it. [176.243.254.204]) by smtp.googlemail.com with ESMTPSA id a25sm4003878ejv.91.2021.08.21.02.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 02:20:05 -0700 (PDT) From: Riccardo Mancini To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Riccardo Mancini Subject: [RFC PATCH v1 14/37] perf evsel: remove retry_sample_id goto label Date: Sat, 21 Aug 2021 11:19:20 +0200 Message-Id: <340af0d03408d6621fd9c742e311db18b3585b3b.1629490974.git.rickyman7@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As far as I can tell, there is no good reason, apart from optimization to have the retry_sample_id separate from fallback_missing_features. Probably, this label was added to avoid reapplying patches for missing features that had already been applied. However, missing features that have been added later have not used this optimization, always jumping to fallback_missing_features and reapplying all missing features. This patch removes that label, replacing it with fallback_missing_features. Signed-off-by: Riccardo Mancini --- tools/perf/util/evsel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index f61e5dd53f5d2859..7b4bb3229a16524e 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1825,7 +1825,6 @@ static int evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, evsel->core.attr.bpf_event = 0; if (perf_missing_features.branch_hw_idx) evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_HW_INDEX; -retry_sample_id: if (perf_missing_features.sample_id_all) evsel->core.attr.sample_id_all = 0; @@ -2006,7 +2005,7 @@ static int evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, } else if (!perf_missing_features.sample_id_all) { perf_missing_features.sample_id_all = true; pr_debug2_peo("switching off sample_id_all\n"); - goto retry_sample_id; + goto fallback_missing_features; } else if (!perf_missing_features.lbr_flags && (evsel->core.attr.branch_sample_type & (PERF_SAMPLE_BRANCH_NO_CYCLES | -- 2.31.1