Hi,

I have a setup where the process generating the perf-<pid>.map file is using 
pid namespaces while the perf tool is running in the global namespace. As a 
result, perf cannot automatically find the map file since perf only knows the 
global pid of the file, while the map file is named with the pid in the 
namespace.

The fix I have is to modify perf to search for the map file in /proc/<global 
pid>/root/tmp/perf-<namespace pid>.map. This works, except for one caveat, how 
does perf get the pid in the namespace? Is there a way for perf to extract 
this? I couldn't see a way. As a result, I needed to expose the pid in 
/proc/pid/status.

Would there be a better way to achieve the same result?

Thanks,

Gaurav--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to