This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Using poll(2) on trace files
- From: Aryeh Weinreb <aryehweinreb at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 15 May 2018 14:27:45 +0300
- Subject: Using poll(2) on trace files
Hi,
I would like to process the systemtap trace files in userspace without
writing to disk.
I built the kernel module with stap -p4 then loaded it with staprun -L.
I would like to use poll(2) on the trace0 file to wait for data but I am
not getting POLLIN set even though there is data I can read from the file.
What am I missing?
Thanks,
Aryeh