public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] gdb/scripts: Improve lx-clk-summary
@ 2019-05-03 11:19 Leonard Crestez
  2019-05-03 11:19 ` [PATCH 1/2] scripts/gdb: Cleanup error handling in list helpers Leonard Crestez
  2019-05-03 11:19 ` [PATCH 2/2] scripts/gdb: Print cached rate in lx-clk-summary Leonard Crestez
  0 siblings, 2 replies; 4+ messages in thread
From: Leonard Crestez @ 2019-05-03 11:19 UTC (permalink / raw)
  To: Stephen Boyd, Kieran Bingham, Jan Kiszka
  Cc: Andrew Morton, Michael Turquette, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org

The earlier series adding clk support to gdb/scripts was quickly
accepted but some concerns were raised by Stephen Boyd so this series
attempts to address them.

Link to previous series: https://lkml.org/lkml/2019/4/22/55

This is not a v2 and squashing is not expected.

Fields other than clk rate not covered because they're much more rarely
used and cache logic can get more complicated and brittle.

LX_GDBPARSED is used in constants.py.in because python does not
understand C integer literal suffixes like the "1UL" from the definition
of BIT() used by CLK_GET_RATE_NOCACHE. Alternative workarounds would be
hacking away UL suffixes with sed or redefining BIT&co but relying on
gdb evaluation is easier and much more flexible.

Leonard Crestez (2):
  scripts/gdb: Cleanup error handling in list helpers
  scripts/gdb: Print cached rate in lx-clk-summary

 scripts/gdb/linux/clk.py          | 21 ++++++++++++++-------
 scripts/gdb/linux/constants.py.in |  4 ++++
 scripts/gdb/linux/lists.py        | 10 ++--------
 3 files changed, 20 insertions(+), 15 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-05-03 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03 11:19 [PATCH 0/2] gdb/scripts: Improve lx-clk-summary Leonard Crestez
2019-05-03 11:19 ` [PATCH 1/2] scripts/gdb: Cleanup error handling in list helpers Leonard Crestez
2019-05-03 16:33   ` Stephen Boyd
2019-05-03 11:19 ` [PATCH 2/2] scripts/gdb: Print cached rate in lx-clk-summary Leonard Crestez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox