Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1134622lqa; Sun, 28 Apr 2024 21:32:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqpKS+gDmhpM/azimAZcA+j4B06hwPz4R17EZhBXZK3a3oW2ujRhUig4gH6hqF72J1vrCZzEkXtj7svUCu5UXqXrucKm72WueW4LGs1w== X-Google-Smtp-Source: AGHT+IE8NFBrRiltP5or8OWU9zqbIvr0z7W9RVz0ZdKNOgTfAXtr763x3pTgnymZyEyHMRH6xII7 X-Received: by 2002:a17:906:3506:b0:a55:90f0:bdf2 with SMTP id r6-20020a170906350600b00a5590f0bdf2mr5853226eja.32.1714365156683; Sun, 28 Apr 2024 21:32:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714365156; cv=pass; d=google.com; s=arc-20160816; b=HR3XSMTi503YOxim2R2k2uzyUMFHZwphgQzH589GqVINeQ7iHZF6JzgcWbIRE4TNyR SxSc1tH4aPA/DbDxxA9tjV+dXlfWL3vrYVUkB9/0sjfWZj8DjEBo2UQvQYcENJnbSg9B iVKDLtXoXLeqORIKoYKIp2u4MGWImxOMJ1duRu/8psVaWvZhZFggt0gXl4WSdG7HAYye 7ZUyxz4CJs+OklssGB9PFEwRBfaMCSgC3DW0gpJqK72nwdSUQJSGr3UOjyblm43/6nOW twJ+2bncV8JfSDEaoucriqBu/vZ/dDD1GaoQ3Ar4oKLigTK5m2DLAatrickando65ljX f64A== 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:message-id:date:subject:cc:to :from:feedback-id:dkim-signature:dkim-signature; bh=SOhiZLaSJMK3vRwXHVf80avqHnvi4hJiW4QMdFB5tDo=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=gUoWYGuhcn16Vt2B7w0NocyXe5lQYy8Uvibkj2gkJoA0qwtkmb0ZjC0p8hd023aIwW 8vOzEZmDnvKejjq/Flyo6OP+xWVLt+BNwEUAgcT4uDByuAPyk61X7jF6/HdM/KPx/cSu pKDNSaHeJ6deBHn61A2H6IeoZOXxUJKBsTNlRRqURPJ0tF6VHJmiCA+CZ+JfOEdRX1eF odLVTYjmv0C8FPC/hlG0LQCaK78BEi/Bti4L8/9vuc947EIZf6OJeROXe41KEqgCfElU ARxF5SNYFHFeClpAKDxwVHFrEbOJZERQfRyp3Kly0dikK3C54s/TSYgK0az5GutFvrZv W71g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm3 header.b=IYdEDpOa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=XWtCMm3X; 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-161725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f8-20020a170906048800b00a51b092ed1esi13328080eja.447.2024.04.28.21.32.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 21:32:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm3 header.b=IYdEDpOa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=XWtCMm3X; 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-161725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161725-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 42E671F22255 for ; Mon, 29 Apr 2024 04:32:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67A6CC144; Mon, 29 Apr 2024 04:32:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="IYdEDpOa"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="XWtCMm3X" 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 451D6372 for ; Mon, 29 Apr 2024 04:32:23 +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=1714365147; cv=none; b=BIXgbO/UIKq36nW1O+PCjO0DYw2HajDxKueCB9Dyf+iHCqUo5mHPdP4jiDWenheu5HCkxN0xLBZjFkPHyWlNT0Jy6oVMk8yzNk4R7XwHPPhvuWXvBv6RhtQO/qiNIcDyJWyAqaq/MYFwusZ5xO0PWVe88LcnmAAAPJQcFkd8HMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714365147; c=relaxed/simple; bh=ox/62EbT5oj8f7xt9MKcSewdgkEtXx/74onEea31BCM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nvauZ7zG4WAhaKHS+hQAyblPXwZ6thmoFx9NG1tL4iK4lUf/gu6F5zdhuGLmQNSfn9ug1/OWQNg50NKbN4OQt8iz3UBDiiyvcVw8sRNb/Oa5aeBP5p4755r/4qIVXsVePheokk3KEYPLxFQ+HXEpC5E5HL3ObRrcMb7iuCpL0Dg= 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=IYdEDpOa; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=XWtCMm3X; 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 compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 46A831380228; Mon, 29 Apr 2024 00:32:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 29 Apr 2024 00:32:23 -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:message-id:mime-version:reply-to:subject :subject:to:to; s=fm3; t=1714365143; x=1714451543; bh=SOhiZLaSJM K3vRwXHVf80avqHnvi4hJiW4QMdFB5tDo=; b=IYdEDpOalzPZbEZWa3eINnTYv8 vrwutmxYOYrGrhUl8ZRkMmgvTcQKnr5cPPsMCwNXPGq/TN8wXIUk5O/8auutTncO A8DiQR4xHgaLVLJs/stCK80DS7KyeCAE913DSg9VvJQuQ9Csj+wZqzxkwzDq4RQ2 nZD9ZcTQJ2uXLIRX8wksGI8CREOPZkrgwvI/Tv5OcZwdlI8qYxKsIElBLq5WQ2ZH vRgx2bngFmk0qBg0wmkcMfoipjEQnnUqgHovp9SBe5yu3AXvB62dL3jJj4eiM2mz Iv/61JytAp4uNtrMRcnP/XLYYn/5io2w7cf+59yrZ/3CBc2KIXO14+myRHAg== 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:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714365143; x=1714451543; bh=SOhiZLaSJMK3vRwXHVf80avqHnvi 4hJiW4QMdFB5tDo=; b=XWtCMm3XCG3Pi8vbCsp6ih+BY8w+rqdO2u2dHd9BGywE NJgUpGETTb6ToJuXEuJwWp+pfD6o3W8ziW1M9YUpWQ8rrcPHz3Ej2OCzlFT/XW87 z1RH35nTl7zKXel40F6ONWWNe5h9+u1Cc/H69jWhRE6X/U6XsyGL/TrQfCh5VArJ LUms+OzzdgXdIvs+Rth7tP6ng4/i11MmXLY8RM88DrQVJiVSm2fuW7UMNWco8LQD SPgxy6OS0M0KB2tQOwyuQqHalnp4QXptbGmSsU7z1E1orsRLzZ3eMlrM+fl5fRsp DmTU529PNI1yaTS3WTEkpLgElyyB4oTmtOKaIMpuqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtledgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghs hhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpeeggfehleehje eileehveefkefhtdeffedtfeeghfekffetudevjeegkeevhfdvueenucffohhmrghinhep khgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Apr 2024 00:32:22 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/5] firewire: add tracepoints events for asynchronous transaction Date: Mon, 29 Apr 2024 13:32:13 +0900 Message-ID: <20240429043218.609398-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, The series of changes in this patchse is to revise the previous RFC: https://lore.kernel.org/lkml/20240418092303.19725-1-o-takashi@sakamocchi.jp/ In a view of IEEE 1394 bus, the main function of kernel core is to provide transaction service to the bus. It is helpful to have some mechanisms to trace any action of the service. This series of changes adds some tracepoints events for the purpose. It adds the following tracepoints events via 'firewire' subsystem: * For outbound transactions (e.g. initiated by user process) * async_request_outbound_initiate * async_request_outbound_complete * async_response_inbound * For inbound transactions (e.g. initiated by the other nodes in the bus) * async_request_inbound * async_response_outbound_initiate * async_response_outbound_complete When probing these tracepoints events, the content of 'struct fw_packet' passed between the core function and 1394 OHCI driver is recorded with the fields of header and packet data. For example of the outbound split transaction: async_request_outbound_initiate: \ transaction=0xffff955fc6a07b30 generation=5 scode=2 dst_id=0xffc0 \ tlabel=18 tcode=9 src_id=0xffc1 offset=0xfffff0000984 \ header={0xffc04990,0xffc1ffff,0xf0000984,0x80002} data={0x81,0x80} async_request_outbound_complete: \ transaction=0xffff955fc6a07b30 generation=5 scode=2 status=2 \ timestamp=0xeabf async_response_inbound: \ transaction=0xffff955fc6a07b30 generation=5 scode=2 status=1 \ timestamp=0xeac2 dst_id=0xffc1 tlabel=18 tcode=11 src_id=0xffc0 \ rcode=0 header={0xffc149b0,0xffc00000,0x0,0x40002} data={0x81} Takashi Sakamoto (5): firewire: core: add support for Linux kernel tracepoints firewire: core: add tracepoints events for asynchronous outbound request firewire: core: add tracepoints event for asynchronous inbound response firewire: core: add tracepoint event for asynchronous inbound request firewire: core: add tracepoints events for asynchronous outbound response drivers/firewire/Makefile | 2 +- drivers/firewire/core-trace.c | 5 + drivers/firewire/core-transaction.c | 93 +++++++----- include/trace/events/firewire.h | 211 ++++++++++++++++++++++++++++ 4 files changed, 276 insertions(+), 35 deletions(-) create mode 100644 drivers/firewire/core-trace.c create mode 100644 include/trace/events/firewire.h -- 2.43.0