From patchwork Tue Dec 20 07:05:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 18039 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 232A6C3213 for ; Tue, 20 Dec 2022 07:05:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5E7BD633A3; Tue, 20 Dec 2022 08:05:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1671519934; bh=kDvEzidXyITMiwIr1hJEPkycVGJqx6BPimVLS72+Ylw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=YZ25bdgGaopMrrjSOcNkHhsA9ojXwQdyo9Z7K1ULNhMaQZbF0aFFdC1dtZ8QYtCmd qJOcvvfxw/OEttRpnCDzes7no8tL4OthGpGzhDv1wB45nEpLWCfx7hSXAtKWTd9B9F r3ioFrEJcr9MU42royVuMLJC9+NbQ7tXkFIT0KO4YzUS9ED0aP/H8/E1NNvCEYXnx6 ssCHa9vBEsQg8hfTEHosDyOEYtLZztI7iBIraVOfjhiorj7u/r8oLL7yonkSCNTfHF iQWS3mdqdbozNpLwi4g3vsaCZEXVWUXHR1bNzHfqtuNiuVlPImXVFEf+ZumHknSSl9 IdGZBADMeE+lA== Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8637561F15 for ; Tue, 20 Dec 2022 08:05:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="k5346c70"; dkim-atps=neutral Received: by mail-pf1-x431.google.com with SMTP id w26so7896134pfj.6 for ; Mon, 19 Dec 2022 23:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WYvgei7jjWW4B5TT1GLJ4wVQQ2J+nZyLpn9A0JJ31dU=; b=k5346c70vVFAWDeavRc4L16NAANE4PdDOJH93Ve4oRLYfOt4pyvwZNRK3ZSqQ4prw1 teNncHGLZ9Yr0HZGD+CrNvEEH6xzc9NvJppOtQX7j6ruLGrEyMas7B71dvEfdk7qZtdt 4fcSgPGiIBwSh2j4WylnT1OIb9s0cuX6/5yVc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WYvgei7jjWW4B5TT1GLJ4wVQQ2J+nZyLpn9A0JJ31dU=; b=iOmYtXz5H/KCqvP9w9ztexuRLMGui4gIPZrWx2olOuVBvW053tDzVU4luSa5z+8Xc8 pUcmcxeye6ueMrFtqmF6L/prppjPkV8J1etjjFgbAnz4Xac699q+UpFn9wBP4HKM3r3i TFJimfm3I2ogA0ig5ciAPfRiFRkOfC6ZV7KMWng8CmUp14m1UBlbAabhORewLq71LPAY QBCUsLLmVXs138BjrwXIT7nv2ob6DSnBbymrUthmsvJwQGrInT8eGkFupCYmKNWKXydf J2tDhxkqY+vaHg01Xy2nVdaKJeCOThT2+WC7/Znb/3NnuK27T0v46VhYX8GaLI7oZ37b Qo9Q== X-Gm-Message-State: AFqh2krwoLvcv4xDl70/GCaqKNusKq3IXpBe9iFjdwMlKPnBD4kcAoF7 SOzdcqrIEcvDpxZrspMZRFLabcJqiT26ipV3 X-Google-Smtp-Source: AMrXdXs1pAu4Z1MNwXmLV8WDM5KKUaqip2UypfwKqDCcnwAhTlK0olpBIQw9JegCFxYhSt4YDBjjZQ== X-Received: by 2002:a62:1c41:0:b0:576:b8d0:6034 with SMTP id c62-20020a621c41000000b00576b8d06034mr13160691pfc.31.1671519930668; Mon, 19 Dec 2022 23:05:30 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (46.165.189.35.bc.googleusercontent.com. [35.189.165.46]) by smtp.gmail.com with ESMTPSA id b4-20020a62cf04000000b005764c8f8f15sm7858950pfg.73.2022.12.19.23.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 23:05:30 -0800 (PST) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Tue, 20 Dec 2022 07:05:22 +0000 Message-Id: <20221220070523.3212844-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/1] Use tracing with perfetto in ChromeOS 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: Harvey Yang via libcamera-devel From: Cheng-Hao Yang Reply-To: Harvey Yang Cc: Harvey Yang Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi all, Updated the patch based on Paul's review. Please take another look. Thanks! BR, Harvey Harvey Yang (1): Use tracing with perfetto in ChromeOS Documentation/guides/tracing.rst | 125 ++++++++++++++---- include/libcamera/internal/tracepoints.h.in | 38 +++++- .../internal/tracepoints/meson.build | 25 ++-- .../internal/tracepoints/pipeline.perfetto | 10 ++ .../internal/tracepoints/request.perfetto | 30 +++++ meson.build | 7 +- src/android/cros/camera3_hal.cpp | 5 + src/android/cros/meson.build | 1 + src/libcamera/meson.build | 14 +- src/libcamera/perfetto/meson.build | 6 + src/libcamera/perfetto/pipeline_perfetto.cpp | 24 ++++ src/libcamera/perfetto/request_perfetto.cpp | 73 ++++++++++ src/libcamera/tracepoints.cpp | 11 ++ 13 files changed, 325 insertions(+), 44 deletions(-) create mode 100644 include/libcamera/internal/tracepoints/pipeline.perfetto create mode 100644 include/libcamera/internal/tracepoints/request.perfetto create mode 100644 src/libcamera/perfetto/meson.build create mode 100644 src/libcamera/perfetto/pipeline_perfetto.cpp create mode 100644 src/libcamera/perfetto/request_perfetto.cpp