tracing: Fix bugs in string filters.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/27 patches 10 repliesIn review
- v1 posting 1/27 patches 2 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ftrace: Fix MATCH_END_ONLY function filterkernel/ | +3 | 1 reply | |
| 2/7 | tracing/filters: Fix MATCH_FRONT_ONLY filter matchingkernel/ | +1 | 1 reply | |
| 3/7 | tracing/filters: Fix MATCH_END_ONLY filter matchingkernel/ | +3 | 1 reply | |
| 4/7 | lib: Introduce strnstr()include/ lib/ | +30 | 4 replies | |
| 5/7 | tracing/filters: Fix MATCH_MIDDLE_ONLY filter matchingkernel/ | +1 | 1 reply | |
| 6/7 | tracing/filters: Fix MATCH_END_ONLY filter matching for PTR_STRINGkernel/ | +3 | 1 reply | |
| 7/7 | tracing/filters: Add comment for match callbackskernel/ | +12 | 1 reply |
Reviews trailers per patch
6 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Frederic Weisbecker |
|---|---|
| 1/7 | A-b A-b |
| 2/7 | A-b A-b |
| 3/7 | A-b A-b |
| 4/7 | A-b A-b |
| 5/7 | A-b A-b |
| 6/7 | A-b A-b |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7][RESEND] tracing: Fix bugs in string filters.
This patchset fixes some bugs in string filters. Those bugs affect both ftrace and perf-trace.
A new string helper strnstr() is introduced, to be used in middle matching callback.
Also I add some comments to mainly explain why we should use length-limited version of strstr() and strcmp().
--- include/linux/string.h | 5 ++++- kernel/trace/ftrace.c | 6 +++--- kernel/trace/trace_events_filter.c | 29 ++++++++++++++++++++--------- lib/string.c | 27 ++++++++++++++++++++++++++- 4 files changed, 53 insertions(+), 14 deletions(-)