Run as user, and python3 support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesNew
- v13 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | gen-lut: Update for python3data/ | +9 | 0 replies | |
| 2/3 | src: monotonic-ts: Monotonic timestamp loggingsrc/ src/ | +43 | 0 replies | |
| 3/3 | scripts/logger: Use new monotonic-ts toolscripts/ | +4 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Laurent Pinchart |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [VSP-Tests PATCH v2 0/3] Run as user, and python3 support
My development target now runs as a user, rather than root and fails to obtain timestamps through the /proc/timer_list which requires root access, and generates a warning on every log output.
Whilst not fatal, this can be fixed by using a c-based implementation to read the monotonic timestamps without parsing proc manually with awk.
This has the extra advantage of not spawning extra processes for every line that is logged, and simplifies the timestamp handling.
Furthermore, python2 is no longer available on my platforms so the gen-lut.py script is updated to run as python3.
I am aware that there is a second python2 tool in this repository, for converting histograms, however I have not yet identified what files this process so I have not completed the python3 migration for that file yet.
If someone wants to complete this, I have the initial conversion, or alternatively - if someone has a set of appropriate histograms to give me I can update and validate the tool myself.
Version two updated with comments from Laurent, and collects his tags.
--
Regards
Kieran
Kieran Bingham (3):
gen-lut: Update for python3
src: monotonic-ts: Monotonic timestamp logging
scripts/logger: Use new monotonic-ts tool
data/frames/gen-lut.py | 18 +++++++++--------- scripts/logger.sh | 20 ++++---------------- src/Makefile | 9 +++++++-- src/monotonic-ts.c | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 27 deletions(-) create mode 100644 src/monotonic-ts.c
Signature · 1 line
2.25.1