From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 037473B6BE4 for ; Mon, 13 Apr 2026 10:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776074763; cv=none; b=tdOjfzBY2RSzTRYEvfJ2p6YODF1LiT4/3R7FQR7roipYM1eHdb8Uv6Csiz7271GNGcCL3Z+WVQKsiGgjYGkaHUrAfAwIZ9tK8yrrxpr6DoisOmxorc6U20Kz/NjwRS31LuDIjnlOFgznRVuw25Bh8ILW+oux/K5lBWMTNGAIUbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776074763; c=relaxed/simple; bh=nwYvukUUHDSBRoTy3ItpvZ5JYcwTJFrOTSm6tZVWR1A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YaItp48PWhVt7MUNPgJEbZR7ptpwXBZj5iap6uWy2gkj2N0yk26IB+1rHF8bT5VYysOSR13YnA2NwuSVPh8rxg1bcNeThmlB9L8oNp8BhQJwM2EdmiunXakrlAta7wIiEH/8tlYb48Qno7aOP3NaYlGae6wENz1/iIDiI3d221g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=qMLoNjzA; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="qMLoNjzA" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RsHj3B+OHfm/0FRZ3o5Q5eWOIOGRkA4Ykl526vZrTs0=; b=qMLoNjzAqopvjCtxlFMYuP/Hz2 t6ZAVxtyYMv/vny4PSumehPJzXDDF8ccx8TozMbf5DmXho+/vWcMKr5hqF02Pz3RuYrkZsYKrFAnP 1px/nTz1u5x9vkWxiGAchq2JS/qP/8SBu9omHGQa7ijaLjDOJkMVfQxpu/XB7eCCtdyGMNGQAG7z9 po0e5RbDGYmsJdv/YVZ64cnBDqOlzQP73GEfFNwr6g9XqQzEoUfFU7+/rbbfyTbzx3+Ld+kqDJjQ1 60N9JKobQfzFpNGkcO9AlM7bTRmtb8v3k3rfdfMaHA6tSwT+loe8fsJh3m2NX/21uvJDEZyZ+XWcq mzNssAyw==; Received: from [90.240.106.137] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wCEAx-00FL6K-9m; Mon, 13 Apr 2026 12:05:51 +0200 From: Tvrtko Ursulin To: dri-devel@lists.freedesktop.org Cc: kernel-dev@igalia.com, Tvrtko Ursulin , =?UTF-8?q?Christian=20K=C3=B6nig?= , Philipp Stanner , Boris Brezillon , linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 3/3] dma-fence: Init and enable signalling can use the fast path tracepoint Date: Mon, 13 Apr 2026 11:05:26 +0100 Message-ID: <20260413100526.15729-3-tvrtko.ursulin@igalia.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260413100526.15729-1-tvrtko.ursulin@igalia.com> References: <20260413100526.15729-1-tvrtko.ursulin@igalia.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit >From dma_fence_init (cannot signal yet) and dma_fence_enable_signaling (fence->lock and rcu_read_lock held, ops checked manually), it is safe to use the marginally faster tracepoint class. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Philipp Stanner Cc: Boris Brezillon Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org --- include/trace/events/dma_fence.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/dma_fence.h b/include/trace/events/dma_fence.h index 220bf71446e8..9e0cb9ce2388 100644 --- a/include/trace/events/dma_fence.h +++ b/include/trace/events/dma_fence.h @@ -71,7 +71,7 @@ DEFINE_EVENT(dma_fence, dma_fence_emit, TP_ARGS(fence) ); -DEFINE_EVENT(dma_fence, dma_fence_init, +DEFINE_EVENT(dma_fence_ops, dma_fence_init, TP_PROTO(struct dma_fence *fence), @@ -85,7 +85,7 @@ DEFINE_EVENT(dma_fence, dma_fence_destroy, TP_ARGS(fence) ); -DEFINE_EVENT(dma_fence, dma_fence_enable_signal, +DEFINE_EVENT(dma_fence_ops, dma_fence_enable_signal, TP_PROTO(struct dma_fence *fence), -- 2.52.0