Skip to content

telemetry JSON escaping and other enhancements

Bruce Richardson dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 2 repliesIn review
  2. v213 patches 10 repliesSuperseded
  3. v1 RFC6 patches 15 repliesSuperseded

Changes in v3 from the cover letter

* reorder patchset to put previous patch 6 (dict name limiting) at the start of the series
* fix missed rename of TEST_OUTPUT to CHECK_OUTPUT in patch 10

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13telemetry: limit characters allowed in dictionary nameslib/telemetry/rte_telemetry.h lib/telemetry/telemetry_data.c+40 -00 replies
2/13test/telemetry_json: print success or failure per subtestapp/test/test_telemetry_json.c+24 -90 replies
3/13telemetry: fix escaping of invalid json characterslib/telemetry/telemetry.c lib/telemetry/telemetry_json.h+55 -40 replies
4/13test/telemetry_json: add test for string character escapingapp/test/test_telemetry_json.c+17 -00 replies
5/13telemetry: add escaping of strings in arrayslib/telemetry/telemetry_json.h+19 -90 replies
6/13test/telemetry-json: add test for escaping strings in arraysapp/test/test_telemetry_json.c+24 -00 replies
7/13telemetry: add escaping of strings in dictslib/telemetry/telemetry_json.h+8 -40 replies
8/13test/telemetry_json: add test for string escaping in objectsapp/test/test_telemetry_json.c+24 -00 replies
9/13telemetry: limit command charactersdoc/guides/rel_notes/deprecation.rst lib/telemetry/telemetry.c+7 -80 replies
10/13test/telemetry_data: refactor for maintainabilityapp/test/test_telemetry_data.c+60 -410 replies
11/13test/telemetry_data: add test cases for character escapingapp/test/test_telemetry_data.c+29 -10 replies
12/13telemetry: eliminate duplicate code for json outputapp/test/test_telemetry_data.c lib/telemetry/telemetry.c+19 -230 replies
13/13telemetry: make help command more helpfullib/telemetry/telemetry.c+7 -50 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchCiara PowerMorten BrørupChengwen Feng
SeriesSeries-acked-by
1/13A-b A-b
2/13A-b A-b
3/13A-b A-b
4/13A-b A-b
5/13A-b A-b
6/13A-b A-b
7/13A-b A-b
8/13A-b A-b
9/13A-b A-b
10/13A-b A-b
11/13A-b A-b
12/13A-b A-b
13/13A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/13] telemetry JSON escaping and other enhancements

This patchset contains fixes for the problem of handling characters returned by telemetry callbacks which require escaping when encoded in JSON format. It also includes unit tests to validate the correct encoding in such scenarios and a number of smaller enhancements to telemetry and telemetry testing

V3:
* reorder patchset to put previous patch 6 (dict name limiting) at the start of the series
* fix missed rename of TEST_OUTPUT to CHECK_OUTPUT in patch 10

RFC->V2:
* limited characters allowed in dictionary element names and command names to side-step the encoding problems there
* added support for proper escaping of dictionary string values
* added more testing and test cases
* added other misc telemetry cleanups and refactoring

Bruce Richardson (13):
telemetry: limit characters allowed in dictionary names test/telemetry_json: print success or failure per subtest
telemetry: fix escaping of invalid json characters test/telemetry_json: add test for string character escaping
telemetry: add escaping of strings in arrays test/telemetry-json: add test for escaping strings in arrays
telemetry: add escaping of strings in dicts test/telemetry_json: add test for string escaping in objects
telemetry: limit command characters test/telemetry_data: refactor for maintainability test/telemetry_data: add test cases for character escaping
telemetry: eliminate duplicate code for json output
telemetry: make help command more helpful

 app/test/test_telemetry_data.c       | 138 +++++++++++++++++++--------
 app/test/test_telemetry_json.c       |  98 +++++++++++++++++--
 doc/guides/rel_notes/deprecation.rst |   8 --
 lib/telemetry/rte_telemetry.h        |   8 ++
 lib/telemetry/telemetry.c            |  51 +++++-----
 lib/telemetry/telemetry_data.c       |  32 +++++++
 lib/telemetry/telemetry_json.h       |  72 ++++++++++++--
 7 files changed, 318 insertions(+), 89 deletions(-)
Signature · 1 line
2.34.1