Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5794767pxv; Wed, 7 Jul 2021 11:54:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmRRW4RUEBSY1TVBFMW+vOzpl/Kwgrmf4atDAU579tiAr2H9azvN7fHx8V1I5bAJ3iYAko X-Received: by 2002:a17:906:3181:: with SMTP id 1mr26037315ejy.36.1625684053286; Wed, 07 Jul 2021 11:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625684053; cv=none; d=google.com; s=arc-20160816; b=hPXpVp6mZJd+0XGEO1JRd6OuM459MNBn3UTKX5/5J0/LKn021IBKg5eSnAEAftgsFw DLEY8KWH0hFPad65drTIU+Q4PUvsXh0jp5BVari8QT0m5y0GMvfsqxc6oa5Icx9wnYwj VeQx60mbRgm3eXhqhKuXSldwZmkeKsXuYLE8pl4jya6W/HVxWzfVfk4lUvfBtB99KsDa hY7/rvdh7/QmxyMEPwTbI+IeVIUyfEKOpyikBlZVjRQrkMv1kpRV5YqFR8vo3myKKOul HvSni3HZv6Rk67lE7NEJ43XTm1adC/5t2c8RgGHw0ijwKtrhOSP509GmQgmNKKmk1QPu juMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hbOpYtdUFtUdLMTKnKYtfR4ftTlPtkG3RpuPO/pH5R0=; b=jCE894wd1Mdk3Hf7SCpe33KJupBZ9h3wWM+Lj4lWe1I2S8PUwnejJp4Nc4KwEOz9MM tz09zL7GGC7rK1xXFcpRvBRoo5udsvfeh2VldOZvF2ChBDOZG5qY2h5B9WemOIsQ/Fbp znj/CPzwuk/V1+gMgtgPqiSLMgfklpzRNTQ9VVtaJ/6AY38H8k4fmW9wTALMM2ECZhsh 8sIvFVJjbpZfktbhP/E+6VKOTEKBxa4rrjyisu0QKTmtUdpnOwyGhGYmNpJCp1e4aG4o AbIu5RMFvWZE+7+BV+xwhG0f9h6Wf+Q6Wf+YvbmoZ/zy101H5cBkJX2CybuXeD1Benh4 3ybw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ldSvBPhE; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si19030471edc.238.2021.07.07.11.53.50; Wed, 07 Jul 2021 11:54:13 -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=@kernel.org header.s=k20201202 header.b=ldSvBPhE; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbhGGRut (ORCPT + 99 others); Wed, 7 Jul 2021 13:50:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:49866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbhGGRus (ORCPT ); Wed, 7 Jul 2021 13:50:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B9AD061CC1; Wed, 7 Jul 2021 17:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625680087; bh=ap5K7kbF57CoqctbdRm/5OwQnhcA2+w3bq0omyH6YzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ldSvBPhEtPGfP3JUNLSf85Rdkgs3tckrqUQbdNzh+jgGpbsvZ8EXRJRXvOCLEFmC+ a/EucSkxQsu35QfZpfTm+850bJJjZmOlw4jHyKsyGiDFSw5Y/CELmCeAf1wzsxZOIY igq17KYNF+QqeJBsnbRIPFfWhbQZTyRsnbM522B5eLaVu6qHXcPfsT/yBVY8Cd/JUw f7EQnXfpS86LQDIJCQJqKTfoRKdf02P6NFGZBfv1Mj22VMzCEP8hmj+FHsNt5N4We9 aD+xqSj3DSL4nYapDWW1TKZOfsCNq1hRMzu6Ck1zQlp1YqyGAGz9kCPPINx2HgFJVh OXSRjZhKm90Cg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id A38B540B1A; Wed, 7 Jul 2021 14:48:04 -0300 (-03) Date: Wed, 7 Jul 2021 14:48:04 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Song Liu , Alexander Shishkin , Michael Petlan , Ian Rogers , nakamura.shun@fujitsu.com, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 2/7] libperf: Move idx to perf_evsel::idx Message-ID: References: <20210706151704.73662-1-jolsa@kernel.org> <20210706151704.73662-3-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jul 07, 2021 at 11:49:03AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jul 06, 2021 at 05:16:59PM +0200, Jiri Olsa escreveu: > > Moving evsel::idx to perf_evsel::idx, so we can move > > the group interface to libperf. You forgot these: $ find tools/perf/ -name "*.[ch]" | xargs grep 'evsel->idx' tools/perf/ui/gtk/annotate.c: evsel->idx + i); tools/perf/ui/gtk/annotate.c: evsel->idx); $ That running 'make -C tools/perf build-test' caught, so I'm adding this to this patch as well: diff --git a/tools/perf/ui/gtk/annotate.c b/tools/perf/ui/gtk/annotate.c index a7dff77f20184f1f..c266ed4fa015842d 100644 --- a/tools/perf/ui/gtk/annotate.c +++ b/tools/perf/ui/gtk/annotate.c @@ -135,12 +135,12 @@ static int perf_gtk__annotate_symbol(GtkWidget *window, struct map_symbol *ms, ret += perf_gtk__get_percent(s + ret, sizeof(s) - ret, sym, pos, - evsel->idx + i); + evesl->core.idx + i); ret += scnprintf(s + ret, sizeof(s) - ret, " "); } } else { ret = perf_gtk__get_percent(s, sizeof(s), sym, pos, - evsel->idx); + evesl->core.idx); } if (ret)