<off-topic>
Just a pretty obvious idea is accurate sampling of flows.
</off-topic>
fdinfo tells me where my position in a file is and which locks the file
have?
So far, if someone wants to delve into the details of a map my approach
would be to take the file descriptor and make it persistence. I have to
think about that some more.
Yes, absolutely and I am absolutely against pretty printing key values
in kernel domain.
So cat-ing them will produce text output with some details about the
map? This is what I wanted to avoid. The concept with symlinks and small
files seems much cleaner and nicer to me. Also you cannot add writable
attributes to this filesystem or you overload stuff heavily?
It is not a tree but a graph, sure, that's why sysfs allows to break the
cyclic dependencies and create symlinks (see holders/ directories). ;)
And if you implement the same set of features IMHO you basically
re-implement sysfs. In the beginning we just expose the basic maps and
there won't be any features in sysfs, but it will be cheap to have
read/write flags on maps etc. etc. (I don't know what people will come
up with, yet.). In my opinion those are clearly attributes of a map and
should be defined and managed alongside with their holders.
The pinfd feature will provide the future infrastructure alongside to
make this usable, so I think it is worth spending time to think about
it.