From patchwork Fri Dec 9 08:19:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17963 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 37A0BBDE6B for ; Fri, 9 Dec 2022 08:20:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id ED0F36335D; Fri, 9 Dec 2022 09:20:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670574005; bh=EFJeSy6sbJJ2oXZhNmCoBfWGPim8lrt3pOCpN6iX5qU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VWQz+S5GaEuUiU3afFK7li/shNRrqXlySmWhqJ9VBq8l8YL4a4pMPVeodHafFBNOV 1kWX46o5pxQqsAS3EuQ9lZQHxq0loHjLiwjzhGURsJjRiNVUGA/h05IVYxfemEZvrL 5WZLLmncRLL2MXhYQzluAPeTSKBYSGg6my9LUDF23VsJRtvFjeiCpWbcTKH3McsMfN kRAH0ki2f6rPi3ShK/Lvgjan9cOZ4N8hwYWGfC1XmfRMaTsQMhvDqZ2NIFI656TDgS tDbB2t7t6dfJZAMsmX+Hm2W4qIzwA50pmBxRMfOc5IJlObkldF5FVp6Ng5QffNwpvD WwZqYQoocn8NA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 06BAA6334B for ; Fri, 9 Dec 2022 09:20:02 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="TaV2dqrL"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9398F480; Fri, 9 Dec 2022 09:20:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670574002; bh=EFJeSy6sbJJ2oXZhNmCoBfWGPim8lrt3pOCpN6iX5qU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TaV2dqrLE8FJlJm03Fm1wK+5flaevp0fdHV590yhgBIMQuRAljrqhB+0cZU6sGGYn a6gQSfUkU17E0ZTAL/cX2xBSzsd0YfIlvwbONT4fJWS+inHdGvstNcmuUMRVZOxz6R grJq02WZ2+CkhYXAuwuFfguRjV97uOEV4YIDJtcU= To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Dec 2022 17:19:37 +0900 Message-Id: <20221209081937.598303-5-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221209081937.598303-1-paul.elder@ideasonboard.com> References: <20221209081937.598303-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/4] tracepoints: request: Add flags to request_reuse tracepoint X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add flags to the fields of the tracepoint event request_reuse. This causes it to be no longer able to use the event class, which is why it has to list the fields again. Signed-off-by: Paul Elder --- .../libcamera/internal/tracepoints/request.tp | 24 ++++++++++++------- src/libcamera/request.cpp | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index 29aa3745..e173929f 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -63,15 +63,6 @@ TRACEPOINT_EVENT_INSTANCE( ) ) -TRACEPOINT_EVENT_INSTANCE( - libcamera, - request, - request_reuse, - TP_ARGS( - libcamera::Request *, req - ) -) - TRACEPOINT_EVENT_INSTANCE( libcamera, request, @@ -127,3 +118,18 @@ TRACEPOINT_EVENT_INSTANCE( libcamera::FrameBuffer *, buf ) ) + +TRACEPOINT_EVENT( + libcamera, + request_reuse, + TP_ARGS( + libcamera::Request *, req, + enum libcamera::Request::ReuseFlag, flags + ), + TP_FIELDS( + ctf_integer_hex(uintptr_t, request, reinterpret_cast(req)) + ctf_integer(uint64_t, cookie, req->cookie()) + ctf_enum(libcamera, request_status, uint32_t, status, req->status()) + ctf_integer_hex(uint32_t, flags, static_cast(flags)) + ) +) diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index ecefba0b..04c0c45c 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -381,7 +381,7 @@ Request::~Request() */ void Request::reuse(ReuseFlag flags) { - LIBCAMERA_TRACEPOINT(request_reuse, this); + LIBCAMERA_TRACEPOINT(request_reuse, this, flags); _d()->reset();