libtraceeval: Even more updates!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 10 repliesIn review
- v19 patches 15 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | libtraceeval: Add check for updates to know to recreate iter arraysrc/ src/ | +74 | 0 replies | |
| 2/11 | libtraceeval: Add traceeval_iterator_query()include/ samples/ src/ | +33 | 0 replies | |
| 3/11 | libtraceeval: Add traceeval_iterator_results_release()include/ src/ | +25 | 1 reply | |
| 4/11 | libtraceeval: Add traceeval_iterator_stat()include/ samples/ src/ | +43 | 0 replies | |
| 5/11 | libtraceeval: Add traceeval_iterator_remove()include/ src/ | +46 | 1 reply | |
| 6/11 | libtraceeval histogram: Add type to traceeval_data and make it a structureinclude/ samples/ src/ +1 more | +153 | 4 replies | |
| 7/11 | libtraceveal: Add type checks to traceeval_data vals and keyssamples/ src/ | +18 | 1 reply | |
| 8/11 | libtraceeval: Add size checks to insert and query functionsinclude/ src/ | +25 | 0 replies | |
| 9/11 | libtraceeval: Make traceeval_remove() check size of keys arrayinclude/ src/ | +10 | 1 reply | |
| 10/11 | libtraceeval: Make traceeval_stat() check size of keys arrayinclude/ src/ | +14 | 1 reply | |
| 11/11 | libtraceeval: Only do stats on values marked with the STAT flaginclude/ samples/ src/ | +22 | 1 reply |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Ross Zwisler |
|---|---|
| 1/11 | R-b |
| 2/11 | R-b |
| 3/11 | R-b |
| 4/11 | R-b |
| 5/11 | R-b |
| 6/11 | R-b |
| 7/11 | R-b |
| 8/11 | R-b |
| 9/11 | R-b |
| 10/11 | R-b |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/11] libtraceeval: Even more updates!
From: "Steven Rostedt (Google)" <[email protected]>
More updates to libtraceeval
- As the results and stats are often needed in the iterator loops, add helper functions to quickly retrieve them. The iterator has a handle on the current entry, no need to do a key lookup to find it.
- The iterator can be used to search for items to remove or update. Add a helper function to remove the current iterator item. This will also update the iterator so that other functions called are still safe, even if the removed entry is the current one.
- Convert traceeval_data into a proper structure with a "type" field and a union data portion. This will allow for checking the type of data being passed into the functions to make sure they match their corresponding types.
- Add checks to make sure that the data matches the types.
- Make traceeval_insert() and traceeval_query() into macros and add a traceeval_query_size() and traceeval_insert_size() that take the size of the list of data being passed into it. The macros work when the arrays are defined.
- Add checks to make sure the array sizes passed in match the sizes internally.
- Add back the STATS flag, and only do STATS on values that are numeric and have this set. This should speed things up, and also allow for optimizations in the future.
Changes since v1: https://lore.kernel.org/linux-trace-devel/[email protected]/
- Use of ARRAY_SIZE() macro to make some other macro logic simpler.
- Fix TRACEEVAL_FL_STAT (was a duplicate of 3 not 4) (Ross Zwisler)
- Add traceeval_remove_size() to check traceeval_remove()
- Add traceeval_query_size() to check traceeval_query()
- Add traceeval_stat_size() to check traceeval_stat()
- Add traceeval_iterator_results_release()
- Use TRACEEVAL_SET_NUMBER() on keys in task-eval.c (Ross Zwisler)
- Use is_stat_type() in copy_traceeval_data() (Ross Zwisler)
- Add type test to update_entry() (Ross Zwisler)
- Folded checking patch into size check patches (Ross Zwisler)
- Free entry on traceeval_remove() and trace_iterator_remove (Ross Zwisler)
- Fix added tab of return -1 (Ross Zwisler)
- Fix comment of traceeval_iterator_query() (Ross Zwisler)
- Fix comment of traceeval_iterator_remove() (Ross Zwisler)
Steven Rostedt (Google) (11):
libtraceeval: Add check for updates to know to recreate iter array
libtraceeval: Add traceeval_iterator_query()
libtraceeval: Add traceeval_iterator_results_release()
libtraceeval: Add traceeval_iterator_stat()
libtraceeval: Add traceeval_iterator_remove() libtraceeval histogram: Add type to traceeval_data and make it a
structure
libtraceveal: Add type checks to traceeval_data vals and keys
libtraceeval: Add size checks to insert and query functions
libtraceeval: Make traceeval_remove() check size of keys array
libtraceeval: Make traceeval_stat() check size of keys array
libtraceeval: Only do stats on values marked with the STAT flag
include/traceeval-hist.h | 118 +++++++++---- samples/task-eval.c | 148 +++++++---------- src/eval-local.h | 6 +- src/histograms.c | 349 +++++++++++++++++++++++++++++++-------- 4 files changed, 429 insertions(+), 192 deletions(-)
Signature · 1 line
2.40.1