Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10706772rwl; Mon, 2 Jan 2023 07:01:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtl5O/GXlTON1v28/WAdJNmkCLyTwNBs62c1Z2n+Iv8a6cmbQFrOJ0erJYkf6kl6gdvhvfU X-Received: by 2002:a17:906:38d9:b0:84b:8885:9868 with SMTP id r25-20020a17090638d900b0084b88859868mr34552649ejd.58.1672671718189; Mon, 02 Jan 2023 07:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672671718; cv=none; d=google.com; s=arc-20160816; b=UKSkg+czvKvyusLD4uvIRp4aZvGbiSfa01C7fuVDXvu7X48j690d5MOXuCiqtNqsaT HCRXSa1Fuvc3WhAFyivxa7E7q0VPmHyhxGT7hXj3WQcUuc8wS4STjNYCHojy//v9t6FP syvyFZqfj8oABhevxQXkYJaBq1dEoPEf2XjgVqySK+RBcUD145D964AsmtrKEFolh/yv MybQYQV+tKsbTQhzIBu8bCcW+lPoJpchFwURsSSTKni4bnyJJIVE4fLoB7V6GA1A8Ssw M+Hb2pgdryafXxyDFfWfdHtmguTqQPc1ofztP+mRlBqNMea+PqdsHs50Llk1Gwp9GNba CZsw== 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=8SJCKU8fTbFd8vJQ1sfvHwmKeW7oaWpD8QTI8/i2jyU=; b=bvu74k/6Sc3TvGP02A4QBg8hqDGMmkkP6J3y1HfrwBJTjVu3fKYH6zuB1NIOTniNWJ uYsxQXFIr8jPQWlXmhts3CKgidy/hddwzCaDZ1nQw4i85O6oXaCWd9IaSopQZcQ7s7X3 rDIcuJKBSUJ24HUwsy2a5XQYYWCNQ1JLbCKkr0xN8A2kenYIqCYpwGaGjQJE/NSA5efG Y0NgvfH8u8yYPUJSkneJoUcB0kObwdeeGtuNwj5JCnKXuttpzMnv2eMOi3rltDmG3HC/ yLw81FnykHhBZndd4wtCCjSvFntOB298TIp2sK+gRg3Ysd/uOSsN0B/KUpId0Fck5p1R wtpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oloe5Yx4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn38-20020a1709070d2600b007c10ac7fe46si10468660ejc.19.2023.01.02.07.01.38; Mon, 02 Jan 2023 07:01:58 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oloe5Yx4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbjABOuP (ORCPT + 61 others); Mon, 2 Jan 2023 09:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236318AbjABOuL (ORCPT ); Mon, 2 Jan 2023 09:50:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 983E565EE; Mon, 2 Jan 2023 06:50:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4ECB8B80D79; Mon, 2 Jan 2023 14:50:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C679AC433D2; Mon, 2 Jan 2023 14:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672671008; bh=lfleuzsKM462/HhP6D3FfjsaDO3LkhbzqsrbX2KFmNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oloe5Yx4OcxggkdiWECe7UcqB7EV5spgYYPNgDupdbah59e2N80js9UwAvu8AiDgu HCZpkbbQQ8wxc49QOyi5hO+B9APaguEJVIT1pwxUeJxjRDGusfK/L8MOVfWZj7OBBF /ixN9i8YtQnlH/7n6l8tdMUK3CkOF96tGhDTvD4dJ5h8Vv24mq7Nquog6BhnmCKI2a HD1jaNSA9ut6tAZ5tEsSQzMI7zOWeZ50Kp2xYqQYwjaQpb9XqzinxTFH+PJa8WcgBs A4vXKt2p8LIpy/yWRRAE3nmSaDPDjs27miXQFlw7jYMUTnVxtcPO8j2kcd7fhhkX5J TCsZDfd3iNv2w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 8332D40468; Mon, 2 Jan 2023 11:50:05 -0300 (-03) Date: Mon, 2 Jan 2023 11:50:05 -0300 From: Arnaldo Carvalho de Melo To: Eric Lin Cc: peterz@infradead.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, palmer@dabbelt.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, greentime.hu@sifive.com, vincent.chen@sifive.com Subject: Re: [PATCH] perf tools riscv: Fix perf tool build error on riscv Message-ID: References: <20221231052731.24908-1-eric.lin@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221231052731.24908-1-eric.lin@sifive.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Em Sat, Dec 31, 2022 at 05:27:31AM +0000, Eric Lin escreveu: > Since the definition of 'struct perf_sample' has been moved to sample.h, > we need to include this header file to fix the build error as follows: > > arch/riscv/util/unwind-libdw.c: In function 'libdw__arch_set_initial_registers': > arch/riscv/util/unwind-libdw.c:12:50: error: invalid use of undefined type 'struct perf_sample' > 12 | struct regs_dump *user_regs = &ui->sample->user_regs; > | ^~ Thanks, applied. - Arnaldo > Fixes: 9823147da6c8 ("perf tools: Move 'struct perf_sample' to a separate header file to disentangle headers") > Signed-off-by: Eric Lin > --- > tools/perf/arch/riscv/util/unwind-libdw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/arch/riscv/util/unwind-libdw.c b/tools/perf/arch/riscv/util/unwind-libdw.c > index 19536e172850..54a198714eb8 100644 > --- a/tools/perf/arch/riscv/util/unwind-libdw.c > +++ b/tools/perf/arch/riscv/util/unwind-libdw.c > @@ -4,7 +4,7 @@ > #include > #include "../../util/unwind-libdw.h" > #include "../../util/perf_regs.h" > -#include "../../util/event.h" > +#include "../../util/sample.h" > > bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) > { > -- > 2.17.1 -- - Arnaldo