[Pdbg] [PATCH v2 0/4] Fix handling of attributes for virtual targets

Amitay Isaacs amitay at ozlabs.org
Thu Feb 27 15:25:24 AEDT 2020


The system level attributes are assigned to the root (/) of the tree. So
make sure that the pdbg_root is associated with root of the system tree.
Since system tree includes few virtual targets (e.g. /proc0/pib), any
attributes defined for such targets need to be found for the corresponding
real targets.

V2 changes:
 - Fix a bug in checking if fdt is writeable
 - Improve the check if fdt is writeable, takes care of readonly mmaps

Amitay Isaacs (4):
  libpdbg: Properties for / in system tree are attached to root node
  libpdbg: Handle properties defined on virtual targets correctly
  tests: Assign attributes to virtual nodes to test property api
  libpdbg: Improve the logic for writability of fdt

 fake.dts.m4      |  4 ++--
 libpdbg/device.c | 51 +++++++++++++++++++++++++++++++-----------------
 libpdbg/dtb.c    | 22 ++++++++-------------
 libpdbg/target.h |  1 +
 4 files changed, 44 insertions(+), 34 deletions(-)

-- 
2.24.1



More information about the Pdbg mailing list