From nobody Mon Feb 9 20:32:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=google.com ARC-Seal: i=1; a=rsa-sha256; t=1632269847; cv=none; d=zohomail.com; s=zohoarc; b=g5I4pz7V5RPLPgReN+IEQuuJ8D3GsUCUbyG8FYd0JWaEh4XSRkp4yvgkHVgCHUPCLpgUwpuf+8v6j287rTq9yMu4LDAfRgdKO1AEknS8xaTX4Q8JC2y3mrLp5PdfsnDNZzaypdb03wDzAKwGvPY2SuDwCF52/CSDeJOu0mlY8zA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632269847; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=4BBDHyzTmFJD2PGtjmXQGbVqPzRCZc8ppu5cY3KZ5Y8=; b=C+JU2jwEUB/k44zDDIRwP1Ci5BvzgLkzewrLNF8Vswja1JuNp6U5diQ2+C5nJRuJlRd2EYnSne6K1rS4nOqWbbDlC13hr4q6OJsRLz2Rc0xJ5BYWUtfZyVK7+tJvGWamrQQ0E79I6KbxL+rIfrtq9E/pDlnRaTJqEnLFvDI3isg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 163226984774912.9516967170224; Tue, 21 Sep 2021 17:17:27 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.192058.342349 (Exim 4.92) (envelope-from ) id 1mSpwo-0001zu-To; Wed, 22 Sep 2021 00:17:14 +0000 Received: by outflank-mailman (output) from mailman id 192058.342349; Wed, 22 Sep 2021 00:17:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mSpwo-0001zh-Pi; Wed, 22 Sep 2021 00:17:14 +0000 Received: by outflank-mailman (input) for mailman id 192058; Wed, 22 Sep 2021 00:17:13 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mSpnc-0000pt-Sp for xen-devel@lists.xenproject.org; Wed, 22 Sep 2021 00:07:44 +0000 Received: from mail-qk1-x74a.google.com (unknown [2607:f8b0:4864:20::74a]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c89c8772-a935-4c12-85fa-e239b1d93411; Wed, 22 Sep 2021 00:06:19 +0000 (UTC) Received: by mail-qk1-x74a.google.com with SMTP id bm12-20020a05620a198c00b00432e14ddb99so5306451qkb.21 for ; Tue, 21 Sep 2021 17:06:19 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c89c8772-a935-4c12-85fa-e239b1d93411 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=4BBDHyzTmFJD2PGtjmXQGbVqPzRCZc8ppu5cY3KZ5Y8=; b=i1hLF6bC7QippVnwD+QfcurzwPql0DTYdtvpNMOXEcTNGevY7UnIQHp4F8TFxhWOcC y5khcTlTsxcY03DM6I7OGwJdsNRusHePnZs48VJgz9iDl9BCd/WdBAHgBd08BkVlEctl qgkp34acvdJvQRinIA310i906+1pI4VRGGbTHUSEWOTyISF582eEBN0uohWrXglJ4Vha UiRiAJR9+rHm1hSoN64l3MLHm8i51hrtd5lKdh0LN16chuzJEtOj6NO2pvuQiZZnchZT 2+/Nzn1kX3D5dvOeb3mhXnOtnZBTLnXfaqpsFhvkCaK7qjG4cSZxh2Y/t71DvQNuI5L1 pIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=4BBDHyzTmFJD2PGtjmXQGbVqPzRCZc8ppu5cY3KZ5Y8=; b=JRbKpsY9gHOT9MaMelgARMT1JqTf84UIaAZLivNewsuY2JBkCA56Iy8K+4zobnRMdp tK4K7AypNAw0CpLpv3e1HjnsFRLAvXMp+qmjS9dNxTG3ALgc9iJ3Y4IAeyIwpd/wXdDB eJL5ezlsvwsrYx74N0kb3iexuK3AeFIE82ZdrgbXGv1WHtfe4ZhfEhd472Hq8fJgx10o 97urcNE24NWiIhB1OZxpDbuK1Ri8JTNLm+A0ugozabqY+0QtXDlz6te/3kRiinBYtwYi RCn7WIuH74Lium/xTqXVY00t7kSr89OUlQr3HNfFmP6/7bCCcL5x0jVxfDl0otu57h4T 6u+w== X-Gm-Message-State: AOAM5322EB73JOy3sUe3ClvPQWl5LMtVkzX7lyLJxgPfxO8cxeJHsZwo KZEYJ7P6NoCS57v4W4t5rQuu3gYPhqQ= X-Google-Smtp-Source: ABdhPJzV8/bAA+bVdBd7d54Vy+1c6C23hub/FF/gkHwdARHRitfqPelJ1Pr98qSi4K4qg/f1+Xhzcbcxu/4= X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:90:200:b022:92d6:d37b:686c]) (user=seanjc job=sendgmr) by 2002:ad4:466a:: with SMTP id z10mr32596974qvv.47.1632269178759; Tue, 21 Sep 2021 17:06:18 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 21 Sep 2021 17:05:33 -0700 In-Reply-To: <20210922000533.713300-1-seanjc@google.com> Message-Id: <20210922000533.713300-17-seanjc@google.com> Mime-Version: 1.0 References: <20210922000533.713300-1-seanjc@google.com> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [PATCH v3 16/16] perf: Drop guest callback (un)register stubs From: Sean Christopherson To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , Mark Rutland , Marc Zyngier , Guo Ren , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Boris Ostrovsky , Juergen Gross Cc: Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Alexandru Elisei , Suzuki K Poulose , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stefano Stabellini , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Artem Kashkanov , Like Xu , Zhu Lingshan X-ZohoMail-DKIM: pass (identity @google.com) X-ZM-MESSAGEID: 1632269849844100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Drop perf's stubs for (un)registering guest callbacks now that KVM registration of callbacks is hidden behind GUEST_PERF_EVENTS=3Dy. The only other user is x86 XEN_PV, and x86 unconditionally selects PERF_EVENTS. No functional change intended. Signed-off-by: Sean Christopherson Reviewed-by: Paolo Bonzini --- include/linux/perf_event.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index d582dfeb4e20..20327d1046bb 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -1505,11 +1505,6 @@ perf_sw_event(u32 event_id, u64 nr, struct pt_regs *= regs, u64 addr) { } static inline void perf_bp_event(struct perf_event *event, void *data) { } =20 -static inline void perf_register_guest_info_callbacks -(struct perf_guest_info_callbacks *cbs) { } -static inline void perf_unregister_guest_info_callbacks -(struct perf_guest_info_callbacks *cbs) { } - static inline void perf_event_mmap(struct vm_area_struct *vma) { } =20 typedef int (perf_ksymbol_get_name_f)(char *name, int name_len, void *data= ); --=20 2.33.0.464.g1972c5931b-goog