[Pdbg] [PATCH v2 0/6] Add api for attribute get/set

Amitay Isaacs amitay at ozlabs.org
Thu Apr 2 09:55:20 AEDT 2020


Attributes are special properties with specific data structure.  Two types of
data structures are supported:

  1. simple (arrays of 1, 2, 4 and 8 byte integers)
  2. complex (packed stream of 1, 2, 4 and 8 byte integers)

V2 changes:
  - Fix property tests
  - Clean up API (re-order arguments, drop unnecessary arguments)
  - Add attribute api tests

Amitay Isaacs (6):
  tests: Fix typo in the usage
  tests: Use a copy of dtb for testing writes
  libpdbg: Add apis for reading/writing attributes
  tests: Add test code for testing attribute api
  fake.dts: Add properties for attribute api testing
  tests: Add attribute api tests

 Makefile.am                   |   9 +-
 fake.dts.m4                   |   6 +
 libpdbg/device.c              | 227 ++++++++++++++++++++++++
 libpdbg/libpdbg.h             |  73 ++++++++
 src/tests/libpdbg_attr_test.c | 322 ++++++++++++++++++++++++++++++++++
 src/tests/libpdbg_prop_test.c |   4 +-
 tests/test_attr_array.sh      | 133 ++++++++++++++
 tests/test_attr_packed.sh     |  82 +++++++++
 tests/test_prop.sh            |   5 +-
 9 files changed, 857 insertions(+), 4 deletions(-)
 create mode 100644 src/tests/libpdbg_attr_test.c
 create mode 100755 tests/test_attr_array.sh
 create mode 100755 tests/test_attr_packed.sh

-- 
2.25.1



More information about the Pdbg mailing list