Summary: | Patch to add time delta to logs and script for replaying via a named pipe. | ||
---|---|---|---|
Product: | Gypsy | Reporter: | Tim Savage <tim.savage> |
Component: | General | Assignee: | Ross Burton <ross> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Time delta for logs and replay script
Time delta for logs and replay script 02 |
Description
Tim Savage
2010-06-22 04:44:38 UTC
Thanks Tim. I'll review this shortly. + pipe = open(options.pipe, 'w') That creates a normal file. Use os.mkfifo() to create a named pipe on disk and then stream the data through that. This will avoid what is currently a delayed copy operation. (In reply to comment #2) > + pipe = open(options.pipe, 'w') > > That creates a normal file. Use os.mkfifo() to create a named pipe on disk and > then stream the data through that. This will avoid what is currently a delayed > copy operation. The pipe I was using to test was originally created with os.mkfifo(). I will extend the script to do check for if a file exists, if so that it is a fifo and if not create the fifo with the os.mkfifo method. Created attachment 36550 [details] [review] Time delta for logs and replay script 02 Have attached an improved patch that checks specified fifo is valid. Note this patch also extends the simple-gps-python.py to allow the baud rate to be set. Since my testing is with a serial over USB based GPS setting the baud rate is necessary. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.