Skip to content

Run as user, and python3 support

Kieran Bingham linux-renesas-soc 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gen-lut: Update for python3data/frames/gen-lut.py+9 -90 replies
2/3src: monotonic-ts: Monotonic timestamp loggingsrc/Makefile src/monotonic-ts.c+43 -20 replies
3/3scripts/logger: Use new monotonic-ts toolscripts/logger.sh+4 -160 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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