Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp822058imm; Tue, 3 Jul 2018 00:07:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdHbnC3qpSeG/gsST03EpAoBa++Vr5DncgahnTg4PXN74H7iiRWdhIOb99/02zWJqBD6/DX X-Received: by 2002:a62:864a:: with SMTP id x71-v6mr8799027pfd.252.1530601659503; Tue, 03 Jul 2018 00:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530601659; cv=none; d=google.com; s=arc-20160816; b=y9oOLjnBNjqGWLtPa+uEO8MrCtCi3CMeRNGyRyjkwac/8ED2mSA/e3IwzHziAJ0PKt wgUr7reCQSx1gswFO1xdLDOU8/8sTtADZkxcW3q5KcSQnMq6yvyPVw6wja80y64+n7QH QHWT2KG4n8hF2qU0kFauhuQNPGfox0ITrA8GrC0ObK6fGTiSY6UwqYAAHfDsy52lsJR0 t/Fg9HuwixRHJ4FI3gJI/fkLIO8gb0z2XaaxTPhYGpqJlOnI7dH1hfh0U9vbMtcZjS45 hZ1mrynNYCGceMxaICDkouMDqbTP6xpvq0EBpSLeA4ATHaswa9TsfbdJrh2M47MpPWe6 ihwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=tGzEqEqfLL18N4n+s/o5h3pwL9YeZnObNYwSYEpRStU=; b=r/rGmL+grOFtj6+XZZwQB7aw8nHbqZDC9cjLK6Ndp4AJwJ+Ctd3//xF2zQh/vDQoV4 sn2eOmaBDyGt09oDfqUuMhNwZT1GEETiwo6+EtwBOoryVeSBvM2uQJYNdeJO4xLRLw2K UR81jLpcpy10cWmzXIHuN/hqq7JR/V7FzFXRqbFjoEXRCuM5WcrlW8Je2vGjv1SV+8Oo OrTQZUy88B78wcrI05bpMdHBYPHmD1FLv94HWgGrrjzkhv2UWtRrh1srignt8u1J4wmq E0qbYmPoSKFh/HLCx+SrLjz8WIjsfRQm8DdE6cPN0xEmQFDKnPEJN1W1wGlOcDPgdibx iw0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si498187pfk.156.2018.07.03.00.07.24; Tue, 03 Jul 2018 00:07:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754424AbeGCHFl (ORCPT + 99 others); Tue, 3 Jul 2018 03:05:41 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38181 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753130AbeGCHFf (ORCPT ); Tue, 3 Jul 2018 03:05:35 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6375QhK189945 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Jul 2018 00:05:26 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6375PfI189942; Tue, 3 Jul 2018 00:05:25 -0700 Date: Tue, 3 Jul 2018 00:05:25 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Vitaly Kuznetsov Message-ID: Cc: haiyangz@microsoft.com, Michael.H.Kelley@microsoft.com, kys@microsoft.com, vkuznets@redhat.com, sthemmin@microsoft.com, Tianyu.Lan@microsoft.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de Reply-To: haiyangz@microsoft.com, Michael.H.Kelley@microsoft.com, kys@microsoft.com, vkuznets@redhat.com, sthemmin@microsoft.com, Tianyu.Lan@microsoft.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de In-Reply-To: <20180622170625.30688-5-vkuznets@redhat.com> References: <20180622170625.30688-5-vkuznets@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/hyperv] x86/hyper-v: Trace PV IPI send Git-Commit-ID: 58ec5e9c9044bd7e1c0bcc6ad822b2e909f49732 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 58ec5e9c9044bd7e1c0bcc6ad822b2e909f49732 Gitweb: https://git.kernel.org/tip/58ec5e9c9044bd7e1c0bcc6ad822b2e909f49732 Author: Vitaly Kuznetsov AuthorDate: Fri, 22 Jun 2018 19:06:25 +0200 Committer: Thomas Gleixner CommitDate: Tue, 3 Jul 2018 09:00:34 +0200 x86/hyper-v: Trace PV IPI send Trace Hyper-V PV IPIs the same way we do PV TLB flush. Signed-off-by: Vitaly Kuznetsov Signed-off-by: Thomas Gleixner Cc: devel@linuxdriverproject.org Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: "H. Peter Anvin" Cc: Tianyu Lan Cc: "Michael Kelley (EOSG)" Link: https://lkml.kernel.org/r/20180622170625.30688-5-vkuznets@redhat.com --- arch/x86/hyperv/hv_apic.c | 4 ++++ arch/x86/include/asm/trace/hyperv.h | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index ee962784d25b..657a2b8c738a 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c @@ -31,6 +31,8 @@ #include #include +#include + static struct apic orig_apic; static u64 hv_apic_icr_read(void) @@ -134,6 +136,8 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector) struct ipi_arg_non_ex ipi_arg; int ret = 1; + trace_hyperv_send_ipi_mask(mask, vector); + if (cpumask_empty(mask)) return true; diff --git a/arch/x86/include/asm/trace/hyperv.h b/arch/x86/include/asm/trace/hyperv.h index 4253bca99989..9c0d4b588e3f 100644 --- a/arch/x86/include/asm/trace/hyperv.h +++ b/arch/x86/include/asm/trace/hyperv.h @@ -28,6 +28,21 @@ TRACE_EVENT(hyperv_mmu_flush_tlb_others, __entry->addr, __entry->end) ); +TRACE_EVENT(hyperv_send_ipi_mask, + TP_PROTO(const struct cpumask *cpus, + int vector), + TP_ARGS(cpus, vector), + TP_STRUCT__entry( + __field(unsigned int, ncpus) + __field(int, vector) + ), + TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); + __entry->vector = vector; + ), + TP_printk("ncpus %d vector %x", + __entry->ncpus, __entry->vector) + ); + #endif /* CONFIG_HYPERV */ #undef TRACE_INCLUDE_PATH