Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp137048lqs; Thu, 13 Jun 2024 06:16:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMGElfLD41b43xcQtg4OxfeD16gOSwsLMsA+hCl/0a84Na24TtTaljrwy2dvwvyOJW7zosp9+DGl/LQuZjb6zgoRQWgrazbQYsADyYvA== X-Google-Smtp-Source: AGHT+IH7L3AqD1OAWEQNFvZo35Txl4j+Lu0VoyVqa5lqs7dV6rmMy3XgjPp2gP845pUbmPZG5d+4 X-Received: by 2002:a05:622a:83:b0:43f:a084:58ff with SMTP id d75a77b69052e-4415abf603cmr50092041cf.33.1718284583520; Thu, 13 Jun 2024 06:16:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718284583; cv=pass; d=google.com; s=arc-20160816; b=YuyR6XnnKWghcrzLTiQTjHIjFwYyOmGs7iyGINJrZJFHcNMS3eecxlzwkSwXJsqrEu QU+c54QT1SkS97Vu2BGIA33o9DWkF7xcggcKQbD25lJNXVn+Ku3Suky/5XcoHKtI6q6A Fq8ozDFewkmBWgRYZWGPDFg6GS17Stnus040KXmoS7s/xjj92geLddEHU7oOMOZwyFmE GkeQkKlJYlX4JX2Zhhh0xh3i75vWyZURarJhjjqSYqlE1nx4JZ+xEXZig3QIoHprUHAS 6poG8zD5LsoOjnyA5TTxdGB2HA9bsO+RCmm5dz9yqs2XidsH4FrO2iXGhw6i+wBtj0Av HtUw== 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=I8uNY8Z0JU6uknnPbF1XPQmmJMnq42rmOIUNt32Gy64=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=C0NRVokmfAPjoE/tzrBB94ji2Mc+1pH6w3omG9onTOtBMxiXarZoswMg93C6w3MMqX 1jrbfpLvKsY0mNw1BnGdqtt81GqwUPgJwBapi48fpL6hdb34r0DRLKE9YMiqw59dzcEJ IeA2+DohSFVFwXBig14K35zYgtHKDIN/FFgf9nOyPGIBzK8ck1PRczuQZWVISt3bPe0v G9elJsU+pO9emL+M2AP9fTtURbQBZ/FJcb1lorSlnVMyKsvAhdHgJTCRGrhUwJgUwNe1 B2XnCemreJJ2GMmOHpewVBmu4FuShIsBE+oA3L0V5VeBFq5DIUseUIX6RDxRMCZ9vzOS yWsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=AxrXim1y; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=L7AEWbE1; 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-213272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2eaa7c8si15102571cf.276.2024.06.13.06.16.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:16:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=AxrXim1y; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=L7AEWbE1; 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-213272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213272-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 301A71C20B21 for ; Thu, 13 Jun 2024 13:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FB77143C67; Thu, 13 Jun 2024 13:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="AxrXim1y"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="L7AEWbE1" 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 3723F14533F for ; Thu, 13 Jun 2024 13:14:56 +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=1718284498; cv=none; b=j0VTZU8ap85zut9CA57XVqpi67zFx2UG2Hk0mlIrcY1pzx+M1RVu63agk9wvwpjbwXK4yCfsChjfTjMiZuV7REZ4LAFgAfupkFhNPV5ZAVLTYiNvczeAmyNLqZTvNUkTWWL4VgdfayyOuV+EYJO9odUARwpiFXSBKrdV4FBc7l4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284498; c=relaxed/simple; bh=aCGZrzVKo9BdlbEpBns4eiZQ0q3VOd6LplzuPlXQRDk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HZ7R9nJBJDrg23AAqDTl7uHm8wYRTUNiuMMapF+0uVohu1cwN9PaNeNgbu++KCqaJ7F7d8t1O3lSbjA3WJEZ57mWmWhUBS4N/g2GUiXV5n5la9ws7oVRTQmUU+GdzTKhxbbZyTUrYfmFHxKN1TV80U5kEakP7tehWJidOjSwdoQ= 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=AxrXim1y; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=L7AEWbE1; 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 compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 5698B13800CA; Thu, 13 Jun 2024 09:14:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 13 Jun 2024 09:14:56 -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=1718284496; x= 1718370896; bh=I8uNY8Z0JU6uknnPbF1XPQmmJMnq42rmOIUNt32Gy64=; b=A xrXim1ypDdQX1Mzo0lQ4tgvnLpiEhUVlUMhjAi1KagBDHYejLdLLAfO2Qk89KGV/ I0BpY8JhMNvnjX/3xBKwDStXHDDx++EsybLrNE8QHWdpKqPNdEGv8mRyf75X8HBt 7Vjoo7bgXzlxZf2bjzXHzFqQrtltnWNRWRAeluXHUbL9aJX3lDhQMaxWxPMcWzWW uvAigPOPM1oMyg6TiFFAWEKH2pqm7C8f4SBNeE9oPUJQ0IKLD8wXUEL1oVJXs6Y4 HlP6bxYoVmyWfCYxepoE59Jfc7k4+B9oB5ERGcRO0NgVOK3t+xyf8bXnwKqQEB81 imsj5V8zLiqTLA6vCyUQg== 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=1718284496; x= 1718370896; bh=I8uNY8Z0JU6uknnPbF1XPQmmJMnq42rmOIUNt32Gy64=; b=L 7AEWbE1zUxczl1mBq9XIy9bOWL0x3U4xYJRf1oDApya9Jrz5W/IWhs9riI8NMYn8 6FfmtqddN7GgMDi6w8OXFp95xlwcTru7q65Gv5fuhPAN6Dz5buz1crufra+aky5s dfDb2nT27Wt0Oaf8Zv1nWZVIA8yynMDSqRVwS/VXc09KYmXEb1Myj3IPwYcYIOW1 eZ7SmKLmWQUNsW8Ce8CuceZv5zm+9nrLd+DkOm9mVEQjBOiktdRSN0D7eoydSPeH OvujpNIRrTpAfikAl1YpuVpT0vBGHoUOEUsL53dr4NC1cALOGwxu/NIRXSXRAKP9 nx4R7179URoIlwmFk79HQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedujedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Jun 2024 09:14:55 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 8/8] firewire: core: record card index in bus_reset_handle tracepoints event Date: Thu, 13 Jun 2024 22:14:40 +0900 Message-ID: <20240613131440.431766-9-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 bus reset event occurs in the bus managed by one of 1394 OHCI controller in Linu system, however the existing tracepoints events has the lack of data about it to distinguish the issued hardware from the others. 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-topology.c | 2 +- include/trace/events/firewire.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/firewire/core-topology.c b/drivers/firewire/core-topology.c index 837cc44d8d9f..8107eebd4296 100644 --- a/drivers/firewire/core-topology.c +++ b/drivers/firewire/core-topology.c @@ -508,7 +508,7 @@ void fw_core_handle_bus_reset(struct fw_card *card, int node_id, int generation, struct fw_node *local_node; unsigned long flags; - trace_bus_reset_handle(generation, node_id, bm_abdicate, self_ids, self_id_count); + trace_bus_reset_handle(card->index, generation, node_id, bm_abdicate, self_ids, self_id_count); spin_lock_irqsave(&card->lock, flags); diff --git a/include/trace/events/firewire.h b/include/trace/events/firewire.h index e6485051f546..5ccc0d91b220 100644 --- a/include/trace/events/firewire.h +++ b/include/trace/events/firewire.h @@ -339,22 +339,25 @@ DEFINE_EVENT(bus_reset_arrange_template, bus_reset_postpone, ); TRACE_EVENT(bus_reset_handle, - TP_PROTO(unsigned int generation, unsigned int node_id, bool bm_abdicate, u32 *self_ids, unsigned int self_id_count), - TP_ARGS(generation, node_id, bm_abdicate, self_ids, self_id_count), + TP_PROTO(unsigned int card_index, unsigned int generation, unsigned int node_id, bool bm_abdicate, u32 *self_ids, unsigned int self_id_count), + TP_ARGS(card_index, generation, node_id, bm_abdicate, self_ids, self_id_count), TP_STRUCT__entry( + __field(u8, card_index) __field(u8, generation) __field(u8, node_id) __field(bool, bm_abdicate) __dynamic_array(u32, self_ids, self_id_count) ), TP_fast_assign( + __entry->card_index = card_index; __entry->generation = generation; __entry->node_id = node_id; __entry->bm_abdicate = bm_abdicate; memcpy(__get_dynamic_array(self_ids), self_ids, __get_dynamic_array_len(self_ids)); ), TP_printk( - "generation=%u node_id=0x%04x bm_abdicate=%s self_ids=%s", + "card_index=%u generation=%u node_id=0x%04x bm_abdicate=%s self_ids=%s", + __entry->card_index, __entry->generation, __entry->node_id, __entry->bm_abdicate ? "true" : "false", -- 2.43.0