[{"id":21268,"web_url":"https://patchwork.libcamera.org/comment/21268/","msgid":"<163791370227.2984710.7903545426940965567@Monstersaurus>","date":"2021-11-26T08:01:42","subject":"Re: [libcamera-devel] [PATCH] guides: tracing: Mention where to\n\tfind the trace file","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Paul Elder (2021-11-26 07:42:19)\n> Add a couple sentences describing where to find the trace file, and how\n> to view it even after the tracing session is destroyed.\n> \n> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>\n> ---\n>  Documentation/guides/tracing.rst | 6 ++++++\n>  1 file changed, 6 insertions(+)\n> \n> diff --git a/Documentation/guides/tracing.rst b/Documentation/guides/tracing.rst\n> index 9c688b93..ae960d85 100644\n> --- a/Documentation/guides/tracing.rst\n> +++ b/Documentation/guides/tracing.rst\n> @@ -117,6 +117,12 @@ A trace can be collected fairly simply from lttng:\n>  \n>  See the `lttng documentation <https://lttng.org/docs/>`_ for further details.\n>  \n> +The location of the trace file is printed when running\n> +``lttng create $SESSION_NAME``. After destroying the session, it can still be\n> +viewed by: ``lttng view -t $PATH_TO_TRACE``, where ``$PATH_TO_TRACE`` is the\n> +path that was printed when the session was created. This is the same path that\n> +is used when analyzing traces programatically, as described in the next section.\n> +\n\nAha - thanks that helps me now. And now I've gone deeper I can see we\ncan specify a path to save it too, which would be useful.\n\n lttng create --output=PATH\n\nwill let a user (script) choose where to save the trace.\n\nIt might be helpful to add something about that, but even without:\n\n\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n\n>  Analyzing a trace\n>  -----------------\n>  \n> -- \n> 2.27.0\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 61CDDBF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Nov 2021 08:01:47 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C527A6049A;\n\tFri, 26 Nov 2021 09:01:46 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 10CA060227\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Nov 2021 09:01:45 +0100 (CET)","from pendragon.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id A79B22C5;\n\tFri, 26 Nov 2021 09:01:44 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"bY/xK20P\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1637913704;\n\tbh=Oit60EgG/1qWoGMZXpLqXx7UATSjNn+E5fIGlL62AIE=;\n\th=In-Reply-To:References:Subject:From:To:Date:From;\n\tb=bY/xK20PpVn4aisvBeTrb/pRqciFv6zPfcZSO1kBHOmag3z0hKUUopfuequvkO05S\n\thXsSR8FpC3tspEsVJF9ePti+ad9iz77UuBVgCtwYY2lzA3GBEJS9kJyK1GPyDbRjwj\n\tE6D8+ur4gSLt1pdoLYy2UaIfhXLXSVqAmf5t1kWQ=","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<20211126074219.3930973-1-paul.elder@ideasonboard.com>","References":"<20211126074219.3930973-1-paul.elder@ideasonboard.com>","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"Paul Elder <paul.elder@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","Date":"Fri, 26 Nov 2021 08:01:42 +0000","Message-ID":"<163791370227.2984710.7903545426940965567@Monstersaurus>","User-Agent":"alot/0.10","Subject":"Re: [libcamera-devel] [PATCH] guides: tracing: Mention where to\n\tfind the trace file","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":21403,"web_url":"https://patchwork.libcamera.org/comment/21403/","msgid":"<YaWq8nfR3TWnCVrP@pendragon.ideasonboard.com>","date":"2021-11-30T04:39:14","subject":"Re: [libcamera-devel] [PATCH] guides: tracing: Mention where to\n\tfind the trace file","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"Hi Paul,\n\nThank you for the patch.\n\nOn Fri, Nov 26, 2021 at 08:01:42AM +0000, Kieran Bingham wrote:\n> Quoting Paul Elder (2021-11-26 07:42:19)\n> > Add a couple sentences describing where to find the trace file, and how\n> > to view it even after the tracing session is destroyed.\n> > \n> > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>\n> > ---\n> >  Documentation/guides/tracing.rst | 6 ++++++\n> >  1 file changed, 6 insertions(+)\n> > \n> > diff --git a/Documentation/guides/tracing.rst b/Documentation/guides/tracing.rst\n> > index 9c688b93..ae960d85 100644\n> > --- a/Documentation/guides/tracing.rst\n> > +++ b/Documentation/guides/tracing.rst\n> > @@ -117,6 +117,12 @@ A trace can be collected fairly simply from lttng:\n> >  \n> >  See the `lttng documentation <https://lttng.org/docs/>`_ for further details.\n> >  \n> > +The location of the trace file is printed when running\n> > +``lttng create $SESSION_NAME``. After destroying the session, it can still be\n> > +viewed by: ``lttng view -t $PATH_TO_TRACE``, where ``$PATH_TO_TRACE`` is the\n> > +path that was printed when the session was created. This is the same path that\n> > +is used when analyzing traces programatically, as described in the next section.\n> > +\n> \n> Aha - thanks that helps me now. And now I've gone deeper I can see we\n> can specify a path to save it too, which would be useful.\n> \n>  lttng create --output=PATH\n> \n> will let a user (script) choose where to save the trace.\n> \n> It might be helpful to add something about that, but even without:\n> \n> \n> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n> >  Analyzing a trace\n> >  -----------------\n> >","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id D299BBDB13\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 30 Nov 2021 04:39:40 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 197BA605B4;\n\tTue, 30 Nov 2021 05:39:40 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 14EE4604FC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 30 Nov 2021 05:39:39 +0100 (CET)","from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 61B8F8F0;\n\tTue, 30 Nov 2021 05:39:38 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"iz9OAiYR\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1638247178;\n\tbh=wM+dLLn7evq17B9MZKinjF19UeBka1jnbyjj+TPwCfs=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=iz9OAiYRiCLu4MhynrN8Akq9atRAjUGVGHOdfb39pcrhpdhLZBSUMsR5gW5X0Zci1\n\t/U51oDtACJ90o1DqSZh8k00hP3LQN4vUFEhV2eHiPosF5dvIXhmUuZ90yVKNI5wKvf\n\tkIsazWqx1xivWjq6akxtiTc8xgTJFizIjPyTv/mQ=","Date":"Tue, 30 Nov 2021 06:39:14 +0200","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Message-ID":"<YaWq8nfR3TWnCVrP@pendragon.ideasonboard.com>","References":"<20211126074219.3930973-1-paul.elder@ideasonboard.com>\n\t<163791370227.2984710.7903545426940965567@Monstersaurus>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","In-Reply-To":"<163791370227.2984710.7903545426940965567@Monstersaurus>","Subject":"Re: [libcamera-devel] [PATCH] guides: tracing: Mention where to\n\tfind the trace file","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Cc":"libcamera-devel@lists.libcamera.org","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]