MT#61856 recording: check recorded call registered in kernel

When setting up streams, we currently check the pointer itself,
whether the kernel table isn't open, an existing stream index
and the `NO_RECORDING` flag.

Check additionally whether the recording call
was actually registered in the kernel.

Otherwise if the `proc_init()` fails to to add call
to the kernel recording interface, `setup_stream_proc()`
still tries to add the stream to the kernel.

Change-Id: Ibaf25d1f91f9818325e3e9f7be3316610f5c63be
pull/2147/head
Donat Zenichev 2 weeks ago
parent 702ccec969
commit 7970be92e2

@ -1048,6 +1048,8 @@ static void setup_stream_proc(struct packet_stream *stream) {
return;
if (!kernel.is_open)
return;
if (recording->proc.call_idx == UNINIT_IDX)
return;
if (stream->recording.proc.stream_idx != UNINIT_IDX)
return;
if (ML_ISSET(ml, NO_RECORDING))

Loading…
Cancel
Save