tinyds: add 'protocol_trace' feature 81/281781/1
authorduna.oh <duna.oh@samsung.com>
Fri, 16 Sep 2022 04:55:03 +0000 (13:55 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 22 Sep 2022 02:00:38 +0000 (11:00 +0900)
commite468e1e7159dd97e5000606d300853f61665f4c3
tree765badd233b0c57fc347a4524b59152a58de2ac4
parent0e394cdf54f64544576fc51d5fe6dbe91f817dea
tinyds: add 'protocol_trace' feature

1. add rules in rule file
ALLOW iface=wl_pointer and msg=motion
ALLOW iface=wl_seat and type=event

2. set environment variables (or default path is given)
$export DS_PROTOCOL_RULE_FILE=/tmp/rule
$export DS_PROTOCOL_TRACE_FILE=/tmp/trace

3. will see protocol logs in trace file
$tail -f /tmp/trace
[1499148.714] Server->Client [PID:25430]wl_seat@7.capabilities(7), cmd: ds-simple-tbm
[1499148.810] Server->Client [PID:25430]wl_seat@7.name("seat0"), cmd: ds-simple-tbm
[1499155.391] Server   [PID:25430] client destroying

Change-Id: I9fff75555d002fa0c25a5f3d61ce31c8d7c0886b
examples/meson.build
examples/protocol-trace.c [new file with mode: 0644]
examples/protocol-trace.h [new file with mode: 0644]
examples/tinyds-tdm.c