Any chance you can still restructure the information? I would recommend
making it a first-class procfs member, since the data is really per-task.
You can add a conditional entry to tgid_base_stuff[] in fs/proc/base.c
to make it show up for each pid, and then just have the per-task information
in there to do the lookup the other way round:
# cat /proc/484/hardwall
2x2 1,1 @2,1
# cat /proc/479/hardwall
2x2 1,1 @1,1
Another problem with the existing interface is that it doesn't currently
support PID name spaces. That could of course be retrofitted, but having
the data split by pid directory would make it work implicitly.
Another approach would be to have a /proc/hardwall/ directory with
one entry per hardwall instance, and symlinks from /proc/<pid>/hardwall
to the respective file.
When you do a /sys/hypervisor/ interface, put everything into a subdirectory
under /sys/hypervisor with the name of your hypervisor, to avoid naming
conflicts, e.g.
/sys/hypervisor/tilera-hv/board/board_serial