Re: [PATCH v3 3/7 UPDATE] perf tools: Add option for the path of buildid dsos under symfs

From: David Ahern
Date: Tue May 17 2016 - 23:05:02 EST


On 5/17/16 8:48 PM, Hekuang wrote:
I don't understand why dso-prefix option is needed? Why make me type
yet more options to the analysis command? Why can't the directory be
located under the symfs tree in a known location and populated the
same way it is without symfs?


Because the default buidid folder path is $HOME/.debug/.buildid,
and this $HOME is on the target machine, not the same as $HOME
on the host. Without that option, we need to copy $HOME/.debug/.buildid
to the 'known location in symfs', that's also an extra work.


My argument for symfs is that $HOME is not relevant or if it is the path is symfs/$HOME. The use case is dealing with countless images -- some development, some production. I should be able to nuke the symfs when the analysis is done and everything related to it is gone. With the $HOME/.debug path it just grows on and on with no real means of pruning it.

If the vdsos are for a particular symfs then why aren't the vdso's under it in a known location?