$ 0 0 Maybe it's not quite that, but " likwid-topology" does this. It is open source and you can look at the code
Maybe it's not quite that, but " likwid-topology" does this. It is open source and you can look at the code