tools/ttysnoop: Add --datasize/--datacount
authorJiri Olsa <jolsa@kernel.org>
Fri, 9 Apr 2021 17:24:12 +0000 (19:24 +0200)
committeryonghong-song <ys114321@gmail.com>
Wed, 26 May 2021 00:21:49 +0000 (17:21 -0700)
commit20061e8faec70c65507f4d50b73b542c7e0b9517
tree414cb1919861989a7b498242decc061046949626
parentebd63c1f4ba38017d48bfe41d9a75606318478a1
tools/ttysnoop: Add --datasize/--datacount

Adding the possibility to define transmitting data size
(--datasize option) and number of times we ask for this
amount (--datacount option).

This helps to configure ttysnoop  behaviour for the expected
data in the terminal session. For example ncurses applications
like mc or huge sized terminals need bigger buffer to snoop
everything from the buffer.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
man/man8/ttysnoop.8
tools/ttysnoop.py
tools/ttysnoop_example.txt