lava_dispatcher_host: support device sharing on bookworm
On bookworm, bpf device attach type is shown as cgroup_device
instead
of device
. It should be related to kernel/bpflib version change.
This change supports both types to make device sharing work on bookworm. It also switchs bpftool ouput to json format to make parsing eaiser.
Signed-off-by: Chase Qi chase.qi@linaro.org