Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp169016pxb; Tue, 21 Sep 2021 22:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGGmfZQBOQgzhAuyPRpVPjHyaOi/a/4yCv+PuSGyFA2et8e9hyAZW4HKUWIIVS0351vmu0 X-Received: by 2002:a17:906:640f:: with SMTP id d15mr40741044ejm.419.1632288493692; Tue, 21 Sep 2021 22:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632288493; cv=none; d=google.com; s=arc-20160816; b=Q9jJDtvkzeH0P7lbvmON2+f3Tfk/dgL7eEU3hrEdOqluhxsBO4tUfaUVey1Q6hEK+G 3ICv2KKmsy0NWrsxKxjF800a8VC2eYpsnpbfNuYqQImLH7VNp/TLrxadm2rDH8nnnBI6 qYWjf0NBdYvcfhe/uuzLLQreN572X5xTzjJopz1D6cH9gxFjhLeqvK2joaIyH5G46aJ0 Wr557vLKgZSl47OnFTQtWJcurqU4kodGlKAV/gSX46S9n99iyybx61NWgauEJE3Wfphr vLjr102cB+jk55Ee3W9cd/eNyhaqMurANTp4xbrgxmIwAoVrWNsWNpiSszt0GyCDpEpw qpIQ== 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:subject:cc:to:from:date :dkim-signature; bh=T51rUNPVohQf+3lV1GDaVcNQ8Jynk/Br7M1fk9sxHeQ=; b=hDRiEbR0MIb0iNvEvDT7N6jf8ApmrlQ4tgbHYNKChAX6lGa+Y+dpL56CGMzHZM9RNx TyF99faQgU/30874q3ODCeozTBpX1yeKYxr1CpOXz8xZRq57kn+OcWuFNv7xNot70r2d tkJ20PoZHsmVH+3eSwfkBR4hVpX8bB+22oHjfV85gKO1iNIz0cD+zSi27XPM1lyPx3Il 4SaVYiRXV9wSzqZgNUzKZon9sMjJ4XFgg2HZ5/XyqnvtSBdBVk6erGqP1879AFmZl680 HEeueMHwJTNcYwxuoJZED/ViUXsJynTWZVKy6t4mMFP0yDQRp60Gey4X7O+z6DfJKKc5 TH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=kVVNjrWL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si1606282ejj.357.2021.09.21.22.27.50; Tue, 21 Sep 2021 22:28: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=@maquefel.me header.s=mail header.b=kVVNjrWL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232122AbhIVF1X (ORCPT + 99 others); Wed, 22 Sep 2021 01:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbhIVF1W (ORCPT ); Wed, 22 Sep 2021 01:27:22 -0400 Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671FFC061574; Tue, 21 Sep 2021 22:25:53 -0700 (PDT) Received: from myt6-43c1316fdabf.qloud-c.yandex.net (myt6-43c1316fdabf.qloud-c.yandex.net [IPv6:2a02:6b8:c12:370d:0:640:43c1:316f]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 7BDD5136A87F; Wed, 22 Sep 2021 08:25:48 +0300 (MSK) Received: from myt5-cceafa914410.qloud-c.yandex.net (myt5-cceafa914410.qloud-c.yandex.net [2a02:6b8:c12:3b23:0:640:ccea:fa91]) by myt6-43c1316fdabf.qloud-c.yandex.net (mxback/Yandex) with ESMTP id aeAFcq1fO2-PlD8hGMN; Wed, 22 Sep 2021 08:25:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1632288348; bh=T51rUNPVohQf+3lV1GDaVcNQ8Jynk/Br7M1fk9sxHeQ=; h=Message-ID:Subject:To:From:In-Reply-To:Cc:References:Date; b=kVVNjrWLABjth60iiq6/rI7wNDsrf8wtQE3jiJFWN9IFfl9wKMwY/ObWvd9xSbBI7 T0XiwT2WbKtYQXJBIIYi1w6iPJc2QTdnd9q/IdsspgQlv2oHDAdEDHPPIL2S5QcEuh YAGM5Guw/vkXQCG9YolVo+ZNkJsCJ+Mwub7Rf47M= Authentication-Results: myt6-43c1316fdabf.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Received: by myt5-cceafa914410.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Me1tdhdSba-Pkxqs8sr; Wed, 22 Sep 2021 08:25:46 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Date: Wed, 22 Sep 2021 08:25:43 +0300 From: Nikita Shubin To: Atish Patra , "linux-kernel@vger.kernel.org" Cc: Alexander Shishkin , Anup Patel , Ard Biesheuvel , "Darrick J. Wong" , "devicetree@vger.kernel.org" , Guo Ren , Heinrich Schuchardt , Jiri Olsa , John Garry , Jonathan Corbet , "linux-doc@vger.kernel.org" , "linux-perf-users@vger.kernel.org" , "linux-riscv@lists.infradead.org" , Nick Kossifidis , Palmer Dabbelt , Paul Walmsley , Rob Herring , Vincent Chen Subject: Re: [v3 01/10] RISC-V: Remove the current perf implementation Message-ID: <20210922082543.71fc5619@redslave.neermore.group> In-Reply-To: <238571632287002@mail.yandex.ru> References: <20210910192757.2309100-1-atish.patra@wdc.com> <20210910192757.2309100-2-atish.patra@wdc.com> <238571632287002@mail.yandex.ru> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Sep 2021 08:11:44 +0300 nikita.shubin@maquefel.me wrote: > Hello Atish. > =C2=A0 > 10.09.2021, 22:28, "Atish Patra" : >=20 > > The current perf implementation in RISC-V is not very useful as it > > can not count any events other than cycle/instructions. Moreover, > > perf record can not be used or the events can not be started or > > stopped. > >=20 > > Remove the implementation now for a better platform driver in future > > that will implement most of the missing functionality. > Your v3 version still breaks the build with CONFIG_BPF_SYSCALL > enabled:=20 > kernel/events/core.c: In function 'bpf_overflow_handler': > kernel/events/core.c:9914:18: error: assignment to > 'bpf_user_pt_regs_t *' {aka 'struct user_regs_struct *'} from > incompatible pointer type 'struct pt_regs *' > [-Werror=3Dincompatible-pointer-types] 9914 | =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0ctx.regs =3D > perf_arch_bpf_user_pt_regs(regs); | =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0^=20 Sorry for the noise. Everything complies fine - i mistaken and applied older version again.=20 > Yours, > Nikita Shubin. >=20