Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1526330imm; Wed, 26 Sep 2018 20:50:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV61WelFo+UAIOoJOyGXr7NJNi//gbIXphOPVMcCq0cau729mCewLVgvYwxc1NYrPIwfBS+Nf X-Received: by 2002:a62:cac4:: with SMTP id y65-v6mr144828pfk.27.1538020241660; Wed, 26 Sep 2018 20:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538020241; cv=none; d=google.com; s=arc-20160816; b=UijmshbUVksR7uqdo1MZ93+aR0wNaCP98dG6RpmqrLsupEqc2VpA6NNoAnX6LvdgLa f4tcZMEONSyo7ZpwXwz/18v0Mp6zBrTIUh2Lv6X6HKZ/quhikolrH4CxE2pAKg3Z8wJw sBCe3x57ADe09UDgIDI54T03Ff5CFhWx68CyPdNMwKBz6YFcFxfT9B3BSpTONEk52p1X lOD038dsR8a8fHCkPb+eF2aEv80qiBQDHRsiHBxI0bOGzOY+5FCvcQ5PPHsR1xq+hmsp dv42CHnoGzppAfhq4aV0nVGxkTMPuiknROLsGssXH9/BkVN61v9ms/yAJj5M/wS/9RAl E/aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:from:dkim-signature; bh=fExMD0sswRiAIOKTfeFl0nAQwQtANpOg5Zf/a96e6gY=; b=yOuPHrTf/jCwwCGgFP5iL201Jzh+elzuwdzaFtdDkgdBL0n9151fNYsEg+pRhTw95d njLK+yiusk6mT9OpuasnlmNgLNOn4ip6vTIYYACCtQWzwk/sV21UVryFLGgaLY7x/woG kSpwMVfhwBpYo9/AfpnIlBnocTASGMUo7yab+UZYPJF+HbbAsDTho/EocT0WSgbEr3o+ +65rVfDpTPGmyAjt0/B5ooW596k5UEfozkDaL7yzpLXvCPr0qbcBtSmAvx3yIrH2cNI1 ILUlsBjzl45rD1r1UxdS0NGRxuMJ8h+vvSv8nFqaoeoXKNLw0/5QOO8cU7hFQUWnJKPY jD+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YZg8BDOl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si854165pgi.467.2018.09.26.20.50.26; Wed, 26 Sep 2018 20:50:41 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YZg8BDOl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbeI0KGI (ORCPT + 99 others); Thu, 27 Sep 2018 06:06:08 -0400 Received: from mail-pu1apc01on0093.outbound.protection.outlook.com ([104.47.126.93]:62352 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726684AbeI0KGH (ORCPT ); Thu, 27 Sep 2018 06:06:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fExMD0sswRiAIOKTfeFl0nAQwQtANpOg5Zf/a96e6gY=; b=YZg8BDOlGlof2XP75bSpzfLR+hlnY5XUR33YPP+mZqfpuJMk4pdGf26YnwixUbss751kumxjCwG/gkduE5rdMpZsZ/mOris63wYcNU78Uq3me1tOFYuTbfEEDNf9aZdS0sOvEqEuFDqMHLHPvQS+7/wOd91ksqBHMg6vyXMS46k= Received: from HK0P153MB0129.APCP153.PROD.OUTLOOK.COM (52.133.156.18) by HK0P153MB0177.APCP153.PROD.OUTLOOK.COM (52.133.210.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.3; Thu, 27 Sep 2018 03:49:55 +0000 Received: from HK0P153MB0129.APCP153.PROD.OUTLOOK.COM ([fe80::8584:ad93:130a:6267]) by HK0P153MB0129.APCP153.PROD.OUTLOOK.COM ([fe80::8584:ad93:130a:6267%3]) with mapi id 15.20.1207.011; Thu, 27 Sep 2018 03:49:55 +0000 From: Tianyu Lan CC: Tianyu Lan , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" , "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "Michael Kelley (EOSG)" , vkuznets , Jork Loeser Subject: [PATCH V3 11/13] x86/Hyper-v: Add trace in the hyperv_nested_flush_guest_mapping_range() Thread-Topic: [PATCH V3 11/13] x86/Hyper-v: Add trace in the hyperv_nested_flush_guest_mapping_range() Thread-Index: AQHUVhUnRdB/cs+unEyDmyOmmLWhjg== Date: Thu, 27 Sep 2018 03:49:55 +0000 Message-ID: <20180927034829.2230-12-Tianyu.Lan@microsoft.com> References: <20180927034829.2230-1-Tianyu.Lan@microsoft.com> In-Reply-To: <20180927034829.2230-1-Tianyu.Lan@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tianyu.Lan@microsoft.com; x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HK0P153MB0177;6:+dX2mR/cuuQ/pKjMPO9YzMbVU713yEVWD9fzpUyNUlXfIOHePg0Cl1mVvxWbB3qu/g0lFA0EhjnSgEJ9ANAk7KnfNHQYCucN2fbLFU3I8CXSVtPyDKGclfFUxBjjQZSDyKet9Vulv/LymhO+1qHhD1bQ1Vj+DB2n8KEdHS3OKk5obCnAjL+CyCeGwpvqNEU3/x7fDr+VUerjSam6SfDIqx7EhoUYhU1WZSLajp+yzzPrRkuUTfdfBDJikfLvBaW1yGkc3ljv3AZnHT8i8AfxtpJLmC5PCU3wRXDCjMwfrlz1B5VJ5+axeaANLaYKvJt1gPuSPtecq3QKJa5N0Tj3P9gbBXCjlpm4U4AYIiwm/0KgukELcnt5u5sAIKbnMpB06xvRYe1xu/fjBCFu4bG5UqULzIasdAcVQfejJeNSc48ZCLuDD0IF75Y6HSwUy9Xd+ATwpIO/0itcnpUhVfPXfA==;5:pVrlMufg6EG/VihX4LWKZcUIl0yF1M4IoA118ypxWUHdc922PLt7wGAcz6kAe0H8wy4nsilZ5kS1Pc8dqudiPIB0FpUFX6WYERczqHhOFhWZAa4A6FFA9DTV4MorYeELipwyxJEpuwxtO5issRIuPTQPv7FIFrmmjqZ7iAF1R1s=;7:aKxjbCiJe46RAOJo66mBybWtXHSrIXbxBslAxZ2p63xKKI11IOBkVACBHRzyPIV/LMEArLZGT7Yk5BOYASjnEHaCy7/lbUY0Js1jTvSnLomljY2hErla64Iot/iukG/EbIdMDGhkL2SFD0cj0Ips7YHkiLXeSKXWBJ5bkNAKLBJh2rN3fJO0muofgVTtB50f+srxt+IlQLTbqK/WloWKwWvrk3KeAxdjI4cV4Pzxqwk7a44quSU/nC9j2nTRR9H3 x-ms-office365-filtering-correlation-id: 009fe92f-ae80-4b5e-a042-08d6242c49fa x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:HK0P153MB0177; x-ms-traffictypediagnostic: HK0P153MB0177: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051);SRVR:HK0P153MB0177;BCL:0;PCL:0;RULEID:;SRVR:HK0P153MB0177; x-forefront-prvs: 0808323E97 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(136003)(396003)(346002)(39860400002)(366004)(199004)(189003)(105586002)(99286004)(10290500003)(486006)(478600001)(68736007)(106356001)(14454004)(72206003)(81156014)(6486002)(8676002)(6506007)(1671002)(81166006)(6512007)(2900100001)(2906002)(6436002)(76176011)(8936002)(10090500001)(3846002)(6116002)(54906003)(36756003)(316002)(59246006)(102836004)(26005)(1076002)(5660300001)(5250100002)(109986005)(107886003)(11346002)(446003)(2616005)(4326008)(25786009)(476003)(22452003)(7416002)(53936002)(86612001)(86362001)(71190400001)(71200400001)(66066001)(7736002)(256004)(305945005)(34290500001)(97736004);DIR:OUT;SFP:1102;SCL:1;SRVR:HK0P153MB0177;H:HK0P153MB0129.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: mCwj+wHPNwX9JsgdfwYmnY4Y3cmHOw0jufAOKOp6KozpJXKbm+mXx0dcU8UM2YtjguSidlsEOR2u3YDwP/WZCWLpQyBfcdsa/ED2KzteOmB+p/y4qL6H+gAtucLF2B7XI7bVmcQVLgJ4gt718Bw1lCMaRGEhDfgBJIlll83Ag8Yw6D3ly1p9XwxLYFXElPMAk7wFfQHHZ1R/mtVVW8acnpukyAK8ebihDbpc09H+NvcDwtfFjqw5fNcfL3+65grgUiEGRrpUbwZsqPrrF68ODQNuXPnPQWstsE0asvwqc/lPDSvdVoIuRi8QgQCEJRVZNIv5BSISGeHWQ9zTm80Fw7zLvN7L9YkTTg5Y/iTEoN0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 009fe92f-ae80-4b5e-a042-08d6242c49fa X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2018 03:49:55.3983 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK0P153MB0177 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to trace log in the hyperv_nested_flush_ guest_mapping_range(). Signed-off-by: Lan Tianyu --- arch/x86/hyperv/nested.c | 1 + arch/x86/include/asm/trace/hyperv.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/x86/hyperv/nested.c b/arch/x86/hyperv/nested.c index a6fdfec63c7d..4850c74508f3 100644 --- a/arch/x86/hyperv/nested.c +++ b/arch/x86/hyperv/nested.c @@ -135,6 +135,7 @@ int hyperv_flush_guest_mapping_range(u64 as, struct hyp= erv_tlb_range *range) else ret =3D status; fault: + trace_hyperv_nested_flush_guest_mapping_range(as, ret); return ret; } EXPORT_SYMBOL_GPL(hyperv_flush_guest_mapping_range); diff --git a/arch/x86/include/asm/trace/hyperv.h b/arch/x86/include/asm/tra= ce/hyperv.h index 2e6245a023ef..ace464f09681 100644 --- a/arch/x86/include/asm/trace/hyperv.h +++ b/arch/x86/include/asm/trace/hyperv.h @@ -42,6 +42,20 @@ TRACE_EVENT(hyperv_nested_flush_guest_mapping, TP_printk("address space %llx ret %d", __entry->as, __entry->ret) ); =20 +TRACE_EVENT(hyperv_nested_flush_guest_mapping_range, + TP_PROTO(u64 as, int ret), + TP_ARGS(as, ret), + + TP_STRUCT__entry( + __field(u64, as) + __field(int, ret) + ), + TP_fast_assign(__entry->as =3D as; + __entry->ret =3D ret; + ), + TP_printk("address space %llx ret %d", __entry->as, __entry->ret) + ); + TRACE_EVENT(hyperv_send_ipi_mask, TP_PROTO(const struct cpumask *cpus, int vector), --=20 2.14.4