From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFA3DC433EF for ; Tue, 28 Dec 2021 23:48:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbhL1XsX (ORCPT ); Tue, 28 Dec 2021 18:48:23 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:38568 "EHLO mail-lf1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbhL1XsW (ORCPT ); Tue, 28 Dec 2021 18:48:22 -0500 Received: by mail-lf1-f45.google.com with SMTP id x21so44399542lfa.5; Tue, 28 Dec 2021 15:48:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=43RunENc9BGgUTy24GSL/O+U7jxvlHOGKJ/isDXkZcY=; b=bSsctSbok+AR/lieV93EniDu3PelUAZg4u1qgAkeW5XGc830HCh2aHvZOYA8maWIhu B6aJX/uzhOeIu+lSRIpBMGn7kXify0n0Yq8sgPhL3jJ9mvN0ykhYKSuUA5nrVsZfwEIs /NS1HhdU0BJTpm+4KG4yz8Es4rp0+DAy/2YDxuKizbZ6cIrAV45vbS8gm4lowC6+UdbX y/EMMFz+b9gK3tEolI0DfIcoP+YN8F0lIJqcc7+idNIroQkOR17M9hl09+3qvudUxcO5 vL/HzFt/KH9P5rjOjmEtELdUxNnxdQec46mcN+tAB9y+0x3XHB7sXK5nAfAi2JJYkFiU JhMA== X-Gm-Message-State: AOAM5320kuqJmEen6SZb61xQrZIkw1FWxoWLfmF2AkOBaVWt5rSXheEP 6KooO9EcKgBQ964T7Lo5kr8u52EwNxtjKtTmczI= X-Google-Smtp-Source: ABdhPJwoibq9jpmkzRcCRwexFVs7p98pjuahrASVfI9ZwKiJdXNKZHZCJTbxHkq4sU3L57ahFbfSr/Ltc8ZyxsZJAUg= X-Received: by 2002:a05:6512:3d21:: with SMTP id d33mr21678706lfv.481.1640735301239; Tue, 28 Dec 2021 15:48:21 -0800 (PST) MIME-Version: 1.0 References: <20211223074541.3318938-1-irogers@google.com> <20211223074541.3318938-21-irogers@google.com> In-Reply-To: <20211223074541.3318938-21-irogers@google.com> From: Namhyung Kim Date: Tue, 28 Dec 2021 15:48:10 -0800 Message-ID: Subject: Re: [PATCH v2 20/48] perf cpumap: Move 'has' function to libperf To: Ian Rogers Cc: Andi Kleen , Jiri Olsa , John Garry , Kajol Jain , "Paul A . Clarke" , Arnaldo Carvalho de Melo , Riccardo Mancini , Kan Liang , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , linux-perf-users , linux-kernel , Vineet Singh , James Clark , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Hi Ian, On Wed, Dec 22, 2021 at 11:47 PM Ian Rogers wrote: > > Make the cpu map argument const for consistency with the rest of the > API. Modify cpu_map__idx accordingly. > > Reviewed-by: James Clark > Signed-off-by: Ian Rogers > --- > tools/lib/perf/cpumap.c | 7 ++++++- > tools/lib/perf/include/internal/cpumap.h | 2 +- > tools/lib/perf/include/perf/cpumap.h | 1 + You need to update tools/lib/perf/libperf.map to have the new API. Thanks, Namhyung > tools/perf/arch/arm/util/cs-etm.c | 16 ++++++++-------- > tools/perf/builtin-sched.c | 6 +++--- > tools/perf/tests/topology.c | 2 +- > tools/perf/util/cpumap.c | 5 ----- > tools/perf/util/cpumap.h | 2 -- > tools/perf/util/cputopo.c | 2 +- > 9 files changed, 21 insertions(+), 22 deletions(-) >