mbox series

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

Message ID 20200227042528.165837-1-amitay@ozlabs.org
Headers show
Series Fix handling of attributes for virtual targets | expand

Message

Amitay Isaacs Feb. 27, 2020, 4:25 a.m. UTC
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(-)