Received: by 10.223.164.221 with SMTP id h29csp1810098wrb; Sun, 29 Oct 2017 12:25:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RNaBCO4upNvmXJNzUNHkWpZ/Vo+m4+JSiJNm5ZV+/UNEzyGncU85yyRIZqRBLmLil5smqM X-Received: by 10.98.204.69 with SMTP id a66mr6650379pfg.132.1509305132700; Sun, 29 Oct 2017 12:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509305132; cv=none; d=google.com; s=arc-20160816; b=03oNZa9Qw1pbx7dSvtRKRxbFE6+2U2kTj4PwArzRHMo5K60nX6ti85im3PeMqTBgh3 3UhWBlKfERXJBC8s3rUdgrS5sdODIpeIEg5epPBaTAx98qLeMEfINJsjtENUZguSOWGF ws6VoZTjlNFkVh/hZVBcHk87lSvOJzJT0JnSamOWGnWVbtOMen9CQXem9LyaAHSS5Q8d gHQpxFliWiABLRLtaNH+DIn7Gvt2n8A9h/K/rKaOOqKOQxS8iTlj6zdk1nLfDIaGwjvF ZBurNnhQvKy9MUWBFCX7MYWwhRfouyly+yhelCXRvON6tdcT3N7Sm2/wYqVJqfgvLC+b 7Diw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=7ubb2DIIbN5ZwqPDdKJm1DqgNOb1lszRGpdw0//KIwc=; b=CAxJ4fqQfNFORkNSg3Nkz/Poz4nk3cOompJ4Y8HF6ojrNtGoFZz9rpZKgiP6MO5cts t959nhqXw+KsHy4udynvEQ8didDDF5VtU7+Zojh6LaUTOCxwS6bC10WpwYSEa/zjFQsK /ruw3LmtRxoDC/E1GRCmFHsOy3CSPQ+6Fgdgq5oIPvkRzgVesNoVx0TXJaWAohrTeJDf gMKi9DQ2kALIYAs2meXOosrjbqUUnlNEImNAdwcDqK3g+GBBypbmtUOKmO8xe+WxiaPy QbYaOK6ElK9X+LfjXHMv0UDrko/hZSZ6AuGmsAlGCNPPfj8e5j1xLdms8yQn+fPdij9O PnBA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y21si5000650pll.823.2017.10.29.12.25.19; Sun, 29 Oct 2017 12:25:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752067AbdJ2TXb (ORCPT + 99 others); Sun, 29 Oct 2017 15:23:31 -0400 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:52568 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbdJ2TWU (ORCPT ); Sun, 29 Oct 2017 15:22:20 -0400 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id 8t95eb43SKv338t95euFrG; Sun, 29 Oct 2017 12:21:19 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1e8t94-0003Gu-Un; Sun, 29 Oct 2017 12:21:19 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: "K . Y . Srinivasan" Subject: [PATCH 10/17] hyper-v: trace vmbus_open() Date: Sun, 29 Oct 2017 12:21:09 -0700 Message-Id: <20171029192116.12466-10-kys@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171029192116.12466-1-kys@exchange.microsoft.com> References: <20171029192030.12356-1-kys@exchange.microsoft.com> <20171029192116.12466-1-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfL2+tgyO69jQGvEDqxlrFjOE5w/oH0hP1oMckHEVY2tmFnvfxQdJgo7w+fA6ZlCMa9SRNGpOtJzdC0iedfdVi9PgVGYnwB5sPL97VFlBIAFXDPql1e+P WQLd8e4tJYVOhxLy7f5pVRvltoPHNn1ZfzTpQTaqBxO6a1YBk0GmpxaiBqWDnGg+25yIEUIgJsbGZd5+eIjbnR4Qwb4Cd5Ra4pF6MJ5IKzU1Q7Lax2s5nYgi fGC5iX2EU5Lao7URfpdzY66PaUlXGtLXLeiYqit0SBv2OO7LOoESjm6Tz1AUmSRVUOiUeSHUiKMLZ9AOkqmDD6U2XkqkAnztuaM5Xj5mLABW1H1SwfjgXTqM ONxT4y3BhjJZ8Wgz+b1+Wm4MOf1fss3UYrYoUJf8uP2MOV/j/T6Tilo8L70ybWgvjPLyeTCXN7akQZonIAj4DOLURgJd70P80pg8qtnjddPbSLUNw88UOGUc 0qHPBvfKCjt97EPFVquLyMc8XZJxt49esE/QSCGHI54BxGY2EYmdsXQTdWqj0TVazcymkw7bK0GLq2ox Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Kuznetsov Add tracepoint to CHANNELMSG_OPENCHANNEL sender. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index a406beb10dd0..739b3fe1e0fb 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -185,6 +185,8 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, ret = vmbus_post_msg(open_msg, sizeof(struct vmbus_channel_open_channel), true); + trace_vmbus_open(open_msg, ret); + if (ret != 0) { err = ret; goto error_clean_msglist; diff --git a/drivers/hv/hv_trace.h b/drivers/hv/hv_trace.h index 566ac0f2fe56..38fedb803bd8 100644 --- a/drivers/hv/hv_trace.h +++ b/drivers/hv/hv_trace.h @@ -130,6 +130,33 @@ TRACE_EVENT(vmbus_request_offers, TP_printk("sending ret %d", __entry->ret) ); +TRACE_EVENT(vmbus_open, + TP_PROTO(const struct vmbus_channel_open_channel *msg, int ret), + TP_ARGS(msg, ret), + TP_STRUCT__entry( + __field(u32, child_relid) + __field(u32, openid) + __field(u32, gpadlhandle) + __field(u32, target_vp) + __field(u32, offset) + __field(int, ret) + ), + TP_fast_assign( + __entry->child_relid = msg->child_relid; + __entry->openid = msg->openid; + __entry->gpadlhandle = msg->ringbuffer_gpadlhandle; + __entry->target_vp = msg->target_vp; + __entry->offset = msg->downstream_ringbuffer_pageoffset; + __entry->ret = ret; + ), + TP_printk("sending child_relid 0x%x, openid %d, " + "gpadlhandle 0x%x, target_vp 0x%x, offset 0x%x, ret %d", + __entry->child_relid, __entry->openid, + __entry->gpadlhandle, __entry->target_vp, + __entry->offset, __entry->ret + ) + ); + #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . #undef TRACE_INCLUDE_FILE -- 2.14.1 From 1583065417988349188@xxx Fri Nov 03 17:07:10 +0000 2017 X-GM-THRID: 1583064112643017818 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread