[英]Listening-in tty in Linux
I try to find an easy way to listen to the exchange with the desired tty in Linux.我试图找到一种简单的方法来收听与 Linux 中所需 tty 的交换。 A have hardware device whose interface is exposed as /dev/ttyAMA0 and some drivers on system interact with it.
一个硬件设备,其接口暴露为 /dev/ttyAMA0 并且系统上的一些驱动程序与之交互。 I want to dump all transfers (or at least in one direction) to uart/file etc. I don't want to change something in it, just duplicate.
我想将所有传输(或至少在一个方向)转储到 uart/file 等。我不想更改其中的某些内容,只是复制。 Is there a simple way to do that?
有没有一种简单的方法可以做到这一点?
Easiest way to do what I want was just use strace.做我想做的最简单的方法就是使用 strace。 In strace log I found all necessary info.
在 strace 日志中,我找到了所有必要的信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.