Project

General

Profile

Actions

Bug #976

closed

lttng-sessiond spams logs when an invalid UST context is added to a channel

Added by Jérémie Galarneau about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
11/19/2015
Due date:
% Done:

100%

Estimated time:

Description

lttng-sessiond logs "Error: Invalid UST context" 4 times when an invalid UST context is added to a channel.

$ lttng add-context -u -t perf:cpu:L1-dcache-prefetches

DEBUG1 - 11:11:40.917979 [26927/26974]: Setting relayd for session kernel-test (in cmd_setup_relayd() at cmd.c:764)
Error: Invalid UST context
Error: Invalid UST context
Error: Invalid UST context
Error: Invalid UST context
Error: Context failed for channel channel0
DEBUG1 - 11:11:40.918002 [26927/26974]: Sending response (size: 16, retcode: UST invalid context (78)) (in thread_manage_clients() at main.c:4493)

The error should be logged only once, and would preferably include a timestamp like the other "DBG" statements.

The ERR macro could be redefined for the lttng client to omit that timestamp.

Actions

Also available in: Atom PDF