linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [VSP-Tests PATCH 0/3] Run as user, and python3 support
@ 2020-09-16 14:42 Kieran Bingham
  2020-09-16 14:43 ` [VSP-Tests PATCH 1/3] gen-lut: Update for python3 Kieran Bingham
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kieran Bingham @ 2020-09-16 14:42 UTC (permalink / raw)
  To: Laurent Pinchart, linux-renesas-soc; +Cc: Kieran Bingham

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.


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           | 10 +++++++---
 src/monotonic-ts.c     | 37 +++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 28 deletions(-)
 create mode 100644 src/monotonic-ts.c

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-09-17  8:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 14:42 [VSP-Tests PATCH 0/3] Run as user, and python3 support Kieran Bingham
2020-09-16 14:43 ` [VSP-Tests PATCH 1/3] gen-lut: Update for python3 Kieran Bingham
2020-09-17  1:00   ` Laurent Pinchart
2020-09-16 14:43 ` [VSP-Tests PATCH 2/3] src: monotonic-ts: Monotonic timestamp logging Kieran Bingham
2020-09-17  1:17   ` Laurent Pinchart
2020-09-17  8:01     ` Kieran Bingham
2020-09-16 14:43 ` [VSP-Tests PATCH 3/3] scripts/logger: Use new monotonic-ts tool Kieran Bingham
2020-09-17  1:17   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).