Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp136487lqs; Thu, 13 Jun 2024 06:15:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5zJWATFn/xVkEfovznzG35/c1Qc/F4wbO9hwro5Ajwa5a9BeVs8Af1rA48fCvgnxiPXNwTD3ke9nFVtQm8iydD6JxVxd1e8tFU0azdg== X-Google-Smtp-Source: AGHT+IGLXJdk0nav8zylfqqDQyrsakSHg78b9yoU0eq1CURhykzkcRp+hhhXE8TTVeQeWNZ/POM4 X-Received: by 2002:a05:6358:883:b0:19f:4fda:4163 with SMTP id e5c5f4694b2df-19f69cf6be3mr524512355d.1.1718284538440; Thu, 13 Jun 2024 06:15:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718284538; cv=pass; d=google.com; s=arc-20160816; b=har7d4dWg1E0cEip4QjSpw5rUabqVKxEmvRiOhKM4Y3AwxA5JYBUoJ52aO2FvfID73 /s9HW/Bm6x4JXD75B2YEiG3UD+YWg+NHBGDNAxCPcETHfjBP4GoBaXu41SvBK2TQqNzl cBVQwOnMB/HvaUF05irr1Z+NIHYolIqAuk0Con+71HAJCsj3HLbqzk3QE4tPN/5uaZNG KwHkbmM6yGSruIWlPUr6wuN/Oet9li4V85GL+R8P76dysMu+xqOBpmXM1TyTzte3+v4R /zguaWk3luoSWSN7Hqb9pKj1ZPN1O9xHL/6q66wV4UScR+1QiKNF8h+Sa3Y875wQQn3P BPHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=pKmgdIHnHnIlspZLPXht7lfKdMoxfoyma3rtoghKko0=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=hA5tenJ6YOuaJFL1pOFAYhSBj4Pc/5OTqUiwDdEwUXd0Vj3+r/NTjInA65UDdP+wW6 v4mf5Z/nhiTSMDivD7Gx0aM5Qa5jWPJoUOwCWGLoMhF/U4d+MAl5QenmU0X2YsFynHTt Y0dn9U+jMr2QesQj83N6C2PHNKOG6LzSDwNxJArHWC0lPyDaLtocEyO1lYnLR9cizUUI DBiAhalf/me7xiKreSpA9ba/N80tiSw6fwlDBN4dGTrhG7IP2Dqbkw0W99iLKfMRW2n6 7vbK8oZhU6nQqM/i03ecjGIKAcIF2vOyNnQC3HiyhHwp0C3eia7mrxzmtMVjq29FMN/S G2vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=O9yOsORe; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ff3SvrhY; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-213270-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fef2feb95asi1253328a12.440.2024.06.13.06.15.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213270-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=O9yOsORe; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ff3SvrhY; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-213270-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C40D2875C5 for ; Thu, 13 Jun 2024 13:15:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34DD114533E; Thu, 13 Jun 2024 13:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="O9yOsORe"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ff3SvrhY" Received: from fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 416BD1448FA for ; Thu, 13 Jun 2024 13:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.149 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284495; cv=none; b=qpljetwhl5q9cKGUpt/wMa5ACDkfrqH5S3aoERr9uTpL4yhbKErmkFM+y1XZuV+Q/PeJecK/21gynG2g2MkkEX4XjBGTlLq518EGyDD926GxjBHXcezQYIpGovx0bjUnDL293rXZMvcBloLAaz3DLZqIfvRqJjjDZEFZTt65FBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284495; c=relaxed/simple; bh=KLoB45JYegx+ffrktyofSNuiWiItZsJpgRcg101okEY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TFBc1eWNiEaBcVno96snZoZ54hLDUxmNG2RiFqhXP+YUAgvg5KK/avbsuE1N0XRJssB7G0lgPe6i36WLyATO1wS5Cmvfuin4QdrwD4sAevG6MXIJ1SHTLv78RuSyEthXK/aVXsGVD3TjRv4wtM7j2rXPkQHk83GxfrBRz71eKRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=O9yOsORe; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ff3SvrhY; arc=none smtp.client-ip=103.168.172.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 57AF7138008A; Thu, 13 Jun 2024 09:14:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 13 Jun 2024 09:14:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1718284490; x= 1718370890; bh=pKmgdIHnHnIlspZLPXht7lfKdMoxfoyma3rtoghKko0=; b=O 9yOsOReifzDzgytpBnqKGj5OtTE3Uc7FWY5pdSmDsaM9WnPKYnyM/GhrLdjbDX72 eBM/qy83wOlS/HWyTm4n9U6V/XtoDrWDRFh3vTSv2PiAj1LA/+YAYxw/5k8pb9tn PvppA51zA+Au+4OvC/4l73pCaV0WeEoLRDEzQP7/eldSzvyEZWQnZGlELlk3XXX4 Ms1EIGk9/A8TEohkY0BpOjOHbhIlRqJDpEFlTUe5OFXg+IgZ/BWOT1yMwp8hUs8a CjjdOmUQaOr6UYaBuZy2MS8VkbSVFSRzM2i6/tggsQplswqrjjtJ2f0t4pTFkSyb gDmk28KTQB2Moq7uiGBzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718284490; x= 1718370890; bh=pKmgdIHnHnIlspZLPXht7lfKdMoxfoyma3rtoghKko0=; b=f f3SvrhYlXQ9Gk85BhEda40+k7gViWQFssF2zVC6nnc2fcEx/yk+wzWuJxYoHERg9 jpOwzWw4FAq6JG9O8AnHiKINGdRa1X0GG2O/C2O6tvh01SzXMBy3R6oDOGcX4/N6 kYbhVmeunOo1BHwqrp6ChyKbF0l352JWU33gpp+4H5aEsa5XOHHa4oS4M/cmYqAA idpYLKI5YMcS0HINa77A/o1Edx9t18vrlqb+bbKbYlX1TADfXGsK6Y87SFJSggO/ jvbgy8p1+GTyiUoKoqv6pl7vDYofdATGfGbgXgvbyrXj7mJBNV5YtodEoHeD0i3W p1480UxkJeDiNBv5x0w2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedujedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Jun 2024 09:14:49 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/8] firewire: core: record card index in async_phy_outbound_initiate tracepoints event Date: Thu, 13 Jun 2024 22:14:36 +0900 Message-ID: <20240613131440.431766-5-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240613131440.431766-1-o-takashi@sakamocchi.jp> References: <20240613131440.431766-1-o-takashi@sakamocchi.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The asynchronous transaction is initiated on one of 1394 OHCI controller, however the existing tracepoints events has the lack of data about it. This commit adds card_index member into event structure to store the index of host controller in use, and prints it. Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-cdev.c | 4 ++-- drivers/firewire/core-transaction.c | 2 +- include/trace/events/firewire.h | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 55993c9e0b90..ff8739f96af5 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c @@ -1659,8 +1659,8 @@ static int ioctl_send_phy_packet(struct client *client, union ioctl_arg *arg) memcpy(pp->data, a->data, sizeof(a->data)); } - trace_async_phy_outbound_initiate((uintptr_t)&e->p, e->p.generation, e->p.header[1], - e->p.header[2]); + trace_async_phy_outbound_initiate((uintptr_t)&e->p, card->index, e->p.generation, + e->p.header[1], e->p.header[2]); card->driver->send_request(card, &e->p); diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c index 3503c238f8ae..e522dc3d9897 100644 --- a/drivers/firewire/core-transaction.c +++ b/drivers/firewire/core-transaction.c @@ -504,7 +504,7 @@ void fw_send_phy_config(struct fw_card *card, phy_config_packet.generation = generation; reinit_completion(&phy_config_done); - trace_async_phy_outbound_initiate((uintptr_t)&phy_config_packet, + trace_async_phy_outbound_initiate((uintptr_t)&phy_config_packet, card->index, phy_config_packet.generation, phy_config_packet.header[1], phy_config_packet.header[2]); diff --git a/include/trace/events/firewire.h b/include/trace/events/firewire.h index b72f613cfa02..a59dc26b2a53 100644 --- a/include/trace/events/firewire.h +++ b/include/trace/events/firewire.h @@ -217,23 +217,26 @@ DEFINE_EVENT(async_outbound_complete_template, async_response_outbound_complete, #undef ASYNC_HEADER_GET_RCODE TRACE_EVENT(async_phy_outbound_initiate, - TP_PROTO(u64 packet, unsigned int generation, u32 first_quadlet, u32 second_quadlet), - TP_ARGS(packet, generation, first_quadlet, second_quadlet), + TP_PROTO(u64 packet, unsigned int card_index, unsigned int generation, u32 first_quadlet, u32 second_quadlet), + TP_ARGS(packet, card_index, generation, first_quadlet, second_quadlet), TP_STRUCT__entry( __field(u64, packet) + __field(u8, card_index) __field(u8, generation) __field(u32, first_quadlet) __field(u32, second_quadlet) ), TP_fast_assign( __entry->packet = packet; + __entry->card_index = card_index; __entry->generation = generation; __entry->first_quadlet = first_quadlet; __entry->second_quadlet = second_quadlet ), TP_printk( - "packet=0x%llx generation=%u first_quadlet=0x%08x second_quadlet=0x%08x", + "packet=0x%llx card_index=%u generation=%u first_quadlet=0x%08x second_quadlet=0x%08x", __entry->packet, + __entry->card_index, __entry->generation, __entry->first_quadlet, __entry->second_quadlet -- 2.43.0