[libcamera-devel,v2,12/12] libcamera: Add tracing to meson summary
diff mbox series

Message ID 20211120111313.106621-13-jacopo@jmondi.org
State Accepted
Headers show
Series
  • libcamera: Add support for Fence
Related show

Commit Message

Jacopo Mondi Nov. 20, 2021, 11:13 a.m. UTC
The meson option summary currently does not report if the support
for tracing is enabled or not. Add it.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 meson.build               | 1 +
 src/libcamera/meson.build | 3 +++
 2 files changed, 4 insertions(+)

Comments

Laurent Pinchart Nov. 21, 2021, 6:40 p.m. UTC | #1
Hi Jacopo,

Thank you for the patch.

On Sat, Nov 20, 2021 at 12:13:13PM +0100, Jacopo Mondi wrote:
> The meson option summary currently does not report if the support
> for tracing is enabled or not. Add it.
> 
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
>  meson.build               | 1 +
>  src/libcamera/meson.build | 3 +++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/meson.build b/meson.build
> index 7892a9e38c1c..15793e1834ce 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -179,6 +179,7 @@ summary({
>              'qcam application': qcam_enabled,
>              'lc-compliance application': lc_compliance_enabled,
>              'Unit tests': test_enabled,
> +            'Tracing support': tracing_enabled,

I'd move this after "Enabled IPA modules" to group it with the features
of the libcamera core.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

>          },
>          section : 'Configuration',
>          bool_yn : true)
> diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
> index 6fb0d5f49b63..6a3f5160fdcd 100644
> --- a/src/libcamera/meson.build
> +++ b/src/libcamera/meson.build
> @@ -71,8 +71,11 @@ if libgnutls.found()
>  endif
>  
>  if liblttng.found()
> +    tracing_enabled = true
>      config_h.set('HAVE_TRACING', 1)
>      libcamera_sources += files(['tracepoints.cpp'])
> +else
> +    tracing_enabled = false
>  endif
>  
>  if libudev.found()
Kieran Bingham Nov. 29, 2021, 5:02 p.m. UTC | #2
Quoting Laurent Pinchart (2021-11-21 18:40:18)
> Hi Jacopo,
> 
> Thank you for the patch.
> 
> On Sat, Nov 20, 2021 at 12:13:13PM +0100, Jacopo Mondi wrote:
> > The meson option summary currently does not report if the support
> > for tracing is enabled or not. Add it.
> > 
> > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> > ---
> >  meson.build               | 1 +
> >  src/libcamera/meson.build | 3 +++
> >  2 files changed, 4 insertions(+)
> > 
> > diff --git a/meson.build b/meson.build
> > index 7892a9e38c1c..15793e1834ce 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -179,6 +179,7 @@ summary({
> >              'qcam application': qcam_enabled,
> >              'lc-compliance application': lc_compliance_enabled,
> >              'Unit tests': test_enabled,
> > +            'Tracing support': tracing_enabled,
> 
> I'd move this after "Enabled IPA modules" to group it with the features
> of the libcamera core.
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Oh - yes please, I love things being added to the summary!

    Summarise all the things!

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> 
> >          },
> >          section : 'Configuration',
> >          bool_yn : true)
> > diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
> > index 6fb0d5f49b63..6a3f5160fdcd 100644
> > --- a/src/libcamera/meson.build
> > +++ b/src/libcamera/meson.build
> > @@ -71,8 +71,11 @@ if libgnutls.found()
> >  endif
> >  
> >  if liblttng.found()
> > +    tracing_enabled = true
> >      config_h.set('HAVE_TRACING', 1)
> >      libcamera_sources += files(['tracepoints.cpp'])
> > +else
> > +    tracing_enabled = false
> >  endif
> >  
> >  if libudev.found()
> 
> -- 
> Regards,
> 
> Laurent Pinchart

Patch
diff mbox series

diff --git a/meson.build b/meson.build
index 7892a9e38c1c..15793e1834ce 100644
--- a/meson.build
+++ b/meson.build
@@ -179,6 +179,7 @@  summary({
             'qcam application': qcam_enabled,
             'lc-compliance application': lc_compliance_enabled,
             'Unit tests': test_enabled,
+            'Tracing support': tracing_enabled,
         },
         section : 'Configuration',
         bool_yn : true)
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 6fb0d5f49b63..6a3f5160fdcd 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -71,8 +71,11 @@  if libgnutls.found()
 endif
 
 if liblttng.found()
+    tracing_enabled = true
     config_h.set('HAVE_TRACING', 1)
     libcamera_sources += files(['tracepoints.cpp'])
+else
+    tracing_enabled = false
 endif
 
 if libudev.found()