All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/8] recordmcount cleanups
@ 2019-07-31 18:24 Matt Helsley
  2019-07-31 18:24 ` [PATCH v4 1/8] recordmcount: Remove redundant strcmp Matt Helsley
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Matt Helsley @ 2019-07-31 18:24 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar, Steven Rostedt, Matt Helsley

recordmcount presents unnecessary challenges to reviewers:

	It pretends to wrap access to the ELF file in
	uread/uwrite/ulseek functions which aren't related
	the way you might think (i.e. not the way read, write,
	and lseek are releated to each other).

	It uses setjmp/longjmp to handle errors (and success)
	during processing of the object files. This makes it
	hard to review what functions are doing, how globals
	change over time, etc.

	There are some kernel style nits.

This series addresses all of those by removing un-helper functions,
unused parameters, and rewriting the error/success handling to
better resemble regular kernel C code.

--

This series was formerly part of a v3 posted under the subject
"Cleanup recordmcount and begin objtool conversion". I am
reposting it split into two series: these cleanups of recordmcount
and a second series that begins the conversion of the cleaned-up
recordmcount into an objtool subcommand called mcount.

v4:
   Addressed feedback on v3 from Steven Rostedt:
       Moved already_has_mcount into recordmcount.c to avoid
                unnecessary multiple definitions.
       Changed return semantics of find_secsym_ndx() to avoid
                need for missing_sym (and multiple definitions)
                and to separate the returned symbol info
                (value, index) from success/failure indication.
       Fixed up local variable declaration to follow inverted
		christmas tree style.


Matt Helsley (8):
  recordmcount: Remove redundant strcmp
  recordmcount: Remove uread()
  recordmcount: Remove unused fd from uwrite() and ulseek()
  recordmcount: Rewrite error/success handling
  recordmcount: Kernel style function signature formatting
  recordmcount: Kernel style formatting
  recordmcount: Remove redundant cleanup() calls
  recordmcount: Clarify what cleanup() does

 scripts/recordmcount.c | 321 ++++++++++++++++++++---------------------
 scripts/recordmcount.h | 150 +++++++++++++------
 2 files changed, 259 insertions(+), 212 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-10-10 20:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-31 18:24 [PATCH v4 0/8] recordmcount cleanups Matt Helsley
2019-07-31 18:24 ` [PATCH v4 1/8] recordmcount: Remove redundant strcmp Matt Helsley
2019-07-31 18:24 ` [PATCH v4 2/8] recordmcount: Remove uread() Matt Helsley
2019-07-31 18:24 ` [PATCH v4 3/8] recordmcount: Remove unused fd from uwrite() and ulseek() Matt Helsley
2019-07-31 18:24 ` [PATCH v4 4/8] recordmcount: Rewrite error/success handling Matt Helsley
2019-10-09 10:46   ` Uwe Kleine-König
2019-10-09 10:46     ` Uwe Kleine-König
2019-10-09 15:05     ` Steven Rostedt
2019-10-09 15:05       ` Steven Rostedt
2019-10-09 15:22       ` Uwe Kleine-König
2019-10-09 15:22         ` Uwe Kleine-König
2019-10-10 16:23         ` Steven Rostedt
2019-10-10 16:23           ` Steven Rostedt
2019-10-10 20:14           ` Uwe Kleine-König
2019-10-10 20:14             ` Uwe Kleine-König
2019-07-31 18:24 ` [PATCH v4 5/8] recordmcount: Kernel style function signature formatting Matt Helsley
2019-07-31 18:24 ` [PATCH v4 6/8] recordmcount: Kernel style formatting Matt Helsley
2019-07-31 18:24 ` [PATCH v4 7/8] recordmcount: Remove redundant cleanup() calls Matt Helsley
2019-07-31 18:24 ` [PATCH v4 8/8] recordmcount: Clarify what cleanup() does Matt Helsley
2019-08-02 17:47 ` [PATCH v4 0/8] recordmcount cleanups Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.