perf record: Add --module-dir option
Currently perf only searches module binaries on the canonical
directory (/lib/modules/`uname -r`). But sometimes user needs to load
local modules. These cannot be copied to the build-id cache since long
name (i.e. real path) of DSOs was not set.
This patch fixes the problem by adding a new --module-dir option so that
perf can record modules in the directory.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Wang Nan <wangnan0@huawei.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
4 files changed