All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Remove usage of list iterator after the loop body
@ 2022-04-27 17:07 Jakob Koschel
  2022-04-27 17:07 ` [PATCH v2 1/4] tracing: " Jakob Koschel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jakob Koschel @ 2022-04-27 17:07 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Ingo Molnar, linux-kernel, Jakob Koschel

In preparation to limit the scope of the list iterator variable to the
traversal loop, use a dedicated pointer to point to the found element
[1].

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]

v1->v2:
- fix NULL ptr dereference in subsystem_open() (Steven Rostedt)
- don't use the iterator in PATCH 3/4 when not necessary (Steven Rostedt)

Jakob Koschel (4):
  tracing: Remove usage of list iterator after the loop body
  tracing: Remove usage of list iterator variable after the loop
  tracing: Replace usage of found with dedicated list iterator variable
  tracing: Remove check of list iterator against head past the loop body

 kernel/trace/ftrace.c               | 20 ++++++++++++--------
 kernel/trace/trace_eprobe.c         | 14 ++++++++------
 kernel/trace/trace_events.c         | 27 +++++++++++++--------------
 kernel/trace/trace_events_hist.c    | 15 +++++++--------
 kernel/trace/trace_events_trigger.c | 24 +++++++++++-------------
 kernel/trace/trace_output.c         | 13 +++++++++----
 6 files changed, 60 insertions(+), 53 deletions(-)


base-commit: 46cf2c613f4b10eb12f749207b0fd2c1bfae3088
--
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/4] Remove usage of list iterator after the loop body
@ 2022-04-02 10:33 Jakob Koschel
  2022-04-02 10:33 ` [PATCH v2 1/4] tracing: " Jakob Koschel
  0 siblings, 1 reply; 8+ messages in thread
From: Jakob Koschel @ 2022-04-02 10:33 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Ingo Molnar, linux-kernel, Mike Rapoport, Brian Johannesmeyer,
	Cristiano Giuffrida, Bos, H.J.,
	Jakob Koschel

In preparation to limit the scope of a list iterator to the list
traversal loop, use a dedicated pointer as the iterator [1].

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/

v1->v2:
- fix reverse x-mas tree (Steven Rostedt)
- rename subject line (Steven Rostedt)
- add additional tracing patches to bundle them all up in one go

Sorry, I corrupted the Subject line on the previous send, please ignore :(

Jakob Koschel (4):
  tracing: Remove usage of list iterator after the loop body
  tracing: Remove usage of list iterator variable after the loop
  tracing: Replace usage of found with dedicated list iterator variable
  tracing: Remove check of list iterator against head past the loop body

 kernel/trace/ftrace.c               | 20 ++++++++++++--------
 kernel/trace/trace_eprobe.c         | 14 ++++++++------
 kernel/trace/trace_events.c         | 29 ++++++++++++++---------------
 kernel/trace/trace_events_hist.c    | 17 ++++++++---------
 kernel/trace/trace_events_trigger.c | 28 +++++++++++++---------------
 kernel/trace/trace_output.c         | 13 +++++++++----
 6 files changed, 64 insertions(+), 57 deletions(-)


base-commit: 7a3ecddc571cc3294e5d6bb5948ff2b0cfa12735
--
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Remove usage of list iterator after the loop body
@ 2022-04-02 10:28 Jakob Koschel
  2022-04-02 10:28 ` [PATCH v2 1/4] tracing: " Jakob Koschel
  0 siblings, 1 reply; 8+ messages in thread
From: Jakob Koschel @ 2022-04-02 10:28 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Ingo Molnar, linux-kernel, Mike Rapoport, Brian Johannesmeyer,
	Cristiano Giuffrida, Bos, H.J.,
	Jakob Koschel

In preparation to limit the scope of a list iterator to the list
traversal loop, use a dedicated pointer as the iterator [1].

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/

v1->v2:
- fix reverse x-mas tree (Steven Rostedt)
- rename subject line (Steven Rostedt)
- add additional tracing patches to bundle them all up in one go

Jakob Koschel (4):
  tracing: Remove usage of list iterator after the loop body
  tracing: Remove usage of list iterator variable after the loop
  tracing: Replace usage of found with dedicated list iterator variable
  tracing: Remove check of list iterator against head past the loop body

 kernel/trace/ftrace.c               | 20 ++++++++++++--------
 kernel/trace/trace_eprobe.c         | 14 ++++++++------
 kernel/trace/trace_events.c         | 29 ++++++++++++++---------------
 kernel/trace/trace_events_hist.c    | 17 ++++++++---------
 kernel/trace/trace_events_trigger.c | 28 +++++++++++++---------------
 kernel/trace/trace_output.c         | 13 +++++++++----
 6 files changed, 64 insertions(+), 57 deletions(-)


base-commit: 7a3ecddc571cc3294e5d6bb5948ff2b0cfa12735
-- 
2.25.1


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

end of thread, other threads:[~2022-04-27 17:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 17:07 [PATCH v2 0/4] Remove usage of list iterator after the loop body Jakob Koschel
2022-04-27 17:07 ` [PATCH v2 1/4] tracing: " Jakob Koschel
2022-04-27 17:07 ` [PATCH v2 2/4] tracing: Remove usage of list iterator variable after the loop Jakob Koschel
2022-04-27 17:07 ` [PATCH v2 3/4] tracing: Replace usage of found with dedicated list iterator variable Jakob Koschel
2022-04-27 17:07 ` [PATCH v2 4/4] tracing: Remove check of list iterator against head past the loop body Jakob Koschel
  -- strict thread matches above, loose matches on Subject: below --
2022-04-02 10:33 [PATCH v2 0/4] Remove usage of list iterator after " Jakob Koschel
2022-04-02 10:33 ` [PATCH v2 1/4] tracing: " Jakob Koschel
2022-04-22 22:59   ` Steven Rostedt
2022-04-02 10:28 Jakob Koschel
2022-04-02 10:28 ` [PATCH v2 1/4] tracing: " Jakob Koschel

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.