Skip to content

Commit

Permalink
logpipe: add LogPipe level detail to perf stackdumps
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <[email protected]>
  • Loading branch information
bazsi committed Jan 18, 2025
1 parent c67284d commit 73157be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/logpipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "logpipe.h"
#include "cfg-tree.h"
#include "cfg-walker.h"
#include "perf/perf.h"

gboolean (*pipe_single_step_hook)(LogPipe *pipe, LogMessage *msg, const LogPathOptions *path_options);

Expand Down Expand Up @@ -155,6 +156,12 @@ log_pipe_pre_config_init_method(LogPipe *self)
gboolean
log_pipe_post_config_init_method(LogPipe *self)
{
if ((self->flags & PIF_CONFIG_RELATED) && perf_is_enabled())
{
gchar buf[256];

self->queue = perf_generate_trampoline(self->queue, log_expr_node_format_location(self->expr_node, buf, sizeof(buf)));
}
return TRUE;
}

Expand Down

0 comments on commit 73157be

Please sign in to comment.