From 01091fe81553df67abd5f6a4e2b5af6633a15381 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 28 May 2023 09:08:35 -0700 Subject: [PATCH] libsysprof-profiler: add linux instrument on Linux --- src/libsysprof-profile/sysprof-profiler.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libsysprof-profile/sysprof-profiler.c b/src/libsysprof-profile/sysprof-profiler.c index 6f12a118..0a93432d 100644 --- a/src/libsysprof-profile/sysprof-profiler.c +++ b/src/libsysprof-profile/sysprof-profiler.c @@ -24,6 +24,10 @@ #include "sysprof-profiler.h" #include "sysprof-recording-private.h" +#ifdef __linux__ +# include "sysprof-linux-instrument-private.h" +#endif + struct _SysprofProfiler { GObject parent_instance; @@ -84,6 +88,10 @@ sysprof_profiler_init (SysprofProfiler *self) { self->instruments = g_ptr_array_new_with_free_func (g_object_unref); +#ifdef __linux__ + sysprof_profiler_add_instrument (self, _sysprof_linux_instrument_new ()); +#endif + sysprof_profiler_add_instrument (self, _sysprof_controlfd_instrument_new ()); }