Message ID | 20230630083013.102334-3-alexghiti@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10209058vqr; Fri, 30 Jun 2023 02:01:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvy52276fnpqCq5In36w2DLAdCeWcm0K35c7aKY6rsrNJnEjDL5Rxf2ZgmGx4m7DzbvHeC X-Received: by 2002:a17:90a:5107:b0:259:8305:5d6e with SMTP id t7-20020a17090a510700b0025983055d6emr2054291pjh.0.1688115693151; Fri, 30 Jun 2023 02:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688115693; cv=none; d=google.com; s=arc-20160816; b=YE71iUK8LYYennvHoj8wusD0qsx2uCCl4Uao6Kb4ShALhInnf+aQk+sAJqMnQaZDL+ FcAUUAbHyQ5N6YEVKd8JHVBT64uONel9lQ4GW503oEI1hwbLEisLTRT1TDMCDLKg7QdQ 1sqEm7NxZk1Gzo46upXHEZNS5I8iFYGKtxoQwlfnelUEC20b6fkbECYNVyiTXoce1GUF 9S7D70Szr7whiFZ6rDkAj0FQhw7qJdUF33/MlQvAGzOyE2GPLblY2FWxa+AUxUFYawIK 0zWMk14mC3PNDtro9e82Zo396XgVGRM2D+CWMnvMVQkcw91vK9EJDMU1Qa4x8InnjlZ4 65PA== 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=nFKT0CCXN0CmmHE2x8MUQw5sccSB1SdakxOhkM1UsG4=; fh=RAoA7+xUSzt05OdWIWnOjOKgQlKFLbinZLTNsITMJMk=; b=n1kG4uheE1VWZ/xnd9Hyt2s2BSkrP2i1Q5UTfwyhmuRRTwau8oMpnv/XFxoWs8Apsq M5Jk+zFYRBBx+sWcowJHWaab019lOjx8V3IbIWuH/Q8w/HMfoSGPb9CVk+NYV1CfkX9A 7plWEcdoYAaR1yfcUAWdZ0nd47G3ks+5IS9R0SUVhniuf+NxoZUtMoDADcPAFhcGc3l/ XwvYIkWl1Z2dB0A0Lu8ZXVkkf9Vw9etn/d+p+zgd4X34lD6B/FHY5hQJc8Ws6a6TdwFR fySOglZIzRzWxaIitizL6hDbWBQwhr4HakQFS5afoypL95VUSh7PHnqOyNgtbkkILLhS 9mkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YGAogcVz; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h129-20020a636c87000000b0055b53a564efsi1824344pgc.834.2023.06.30.02.01.15; Fri, 30 Jun 2023 02:01:33 -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; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YGAogcVz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232589AbjF3Idu (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Fri, 30 Jun 2023 04:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbjF3Ido (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 30 Jun 2023 04:33:44 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9DE1BE1 for <linux-kernel@vger.kernel.org>; Fri, 30 Jun 2023 01:33:43 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbc244d386so10595245e9.2 for <linux-kernel@vger.kernel.org>; Fri, 30 Jun 2023 01:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688114021; x=1690706021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nFKT0CCXN0CmmHE2x8MUQw5sccSB1SdakxOhkM1UsG4=; b=YGAogcVzokF+D0qjqmU3kpfxHH4NCQmZL5hxdf7X6SSw33kykvLvK6O3yH62Wh5KJs AI+kFCJ+XKcyflz03tZeBSOK3mdSvkfolRUwvwoE2OoTCMNudeW3PdTVP95e6GocLU/N YygZJOZT/1wW8FkrtFxcSBXYCawVlOJln1BQSnbywabffKuPzm96PK063d/COMXtlZoM RfVe8d3eFPxGt8MI4tg2xzpfBf6tCr8koxakv9E5o1JNI2//NwB2JCt6o9+Vh8ajvvu+ lKsjBGdikrwy1dWQPmQywiFnnCn9wnpbQ1KHhOw4ctZqEtIougO0WReOzYJMEwk93dxp UkBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688114021; x=1690706021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nFKT0CCXN0CmmHE2x8MUQw5sccSB1SdakxOhkM1UsG4=; b=ebO+wh9QIEqBfMdTYyILlmZkWL3E7y+PYAGjHjYDsrMO3vr0cUI/NtGVkinxy+niBU UZ70oW53NIthHHl1Vm6zv1D7pvK+Zl57TkoeSmH46rAfVY/+KsfmIr39wddHufKWwFhs tpJk3JqY1/J2O+oZ1Zzb3PLqWhtnaRXIcBgiR8ZoKQOgTjMQ3Xh/RP0hVEji+NjB1+TP USJtYGQuySadDRR5ZBvv6qqxojwfha8oymjA8YeK0HhDYcA8STWtPMGirLA1YerHNY6t DIPBAUE6Mv0NUBNWMis1h+7M5Ek3Cj+KdFOMzlTwok5IsP6Z6t8VJuqV5IT4Wz/QBwFw SiVw== X-Gm-Message-State: AC+VfDynThvNmv0b9R8D6dLLYU33PdiY//DtPNhMml7+4Fh7PcUHjdHa EN3iOhkDBqvXHAhBXzuiGHkbMw== X-Received: by 2002:a05:600c:2292:b0:3f8:fc2a:c7eb with SMTP id 18-20020a05600c229200b003f8fc2ac7ebmr1334297wmf.5.1688114021658; Fri, 30 Jun 2023 01:33:41 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id n20-20020a7bcbd4000000b003fb739d27aesm10273826wmi.35.2023.06.30.01.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 01:33:41 -0700 (PDT) From: Alexandre Ghiti <alexghiti@rivosinc.com> To: Jonathan Corbet <corbet@lwn.net>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Atish Patra <atishp@atishpatra.org>, Anup Patel <anup@brainfault.org>, Will Deacon <will@kernel.org>, Rob Herring <robh@kernel.org>, Andrew Jones <ajones@ventanamicro.com>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Alexandre Ghiti <alexghiti@rivosinc.com>, Conor Dooley <conor.dooley@microchip.com>, Atish Patra <atishp@rivosinc.com> Subject: [PATCH v3 02/10] include: riscv: Fix wrong include guard in riscv_pmu.h Date: Fri, 30 Jun 2023 10:30:05 +0200 Message-Id: <20230630083013.102334-3-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630083013.102334-1-alexghiti@rivosinc.com> References: <20230630083013.102334-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770117601189464093?= X-GMAIL-MSGID: =?utf-8?q?1770117601189464093?= |
Series |
riscv: Allow userspace to directly access perf counters
|
|
Commit Message
Alexandre Ghiti
June 30, 2023, 8:30 a.m. UTC
The current include guard prevents the inclusion of asm/perf_event.h which uses the same include guard: fix the one in riscv_pmu.h so that it matches the file name. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> --- include/linux/perf/riscv_pmu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h index 43fc892aa7d9..9f70d94942e0 100644 --- a/include/linux/perf/riscv_pmu.h +++ b/include/linux/perf/riscv_pmu.h @@ -6,8 +6,8 @@ * */ -#ifndef _ASM_RISCV_PERF_EVENT_H -#define _ASM_RISCV_PERF_EVENT_H +#ifndef _RISCV_PMU_H +#define _RISCV_PMU_H #include <linux/perf_event.h> #include <linux/ptrace.h> @@ -81,4 +81,4 @@ int riscv_pmu_get_hpm_info(u32 *hw_ctr_width, u32 *num_hw_ctr); #endif /* CONFIG_RISCV_PMU */ -#endif /* _ASM_RISCV_PERF_EVENT_H */ +#endif /* _RISCV_PMU_H */