diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-03-16 11:33:50 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-03-18 09:17:51 +0100 |
| commit | a32dae5902fec8911336f5fc7d1e8b2292589fde (patch) | |
| tree | 94b2248f8972c716813476f6e2cc4e2a19ac11ff /pkg/mgrconfig | |
| parent | 5e933e8c7b82e170b667885d3b99098e2e86f29d (diff) | |
pkg/mgrconfig: extend module_obj comment
Diffstat (limited to 'pkg/mgrconfig')
| -rw-r--r-- | pkg/mgrconfig/config.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go index dd67c3d8f..5400ad952 100644 --- a/pkg/mgrconfig/config.go +++ b/pkg/mgrconfig/config.go @@ -41,8 +41,10 @@ type Config struct { // Directory with kernel object files (e.g. `vmlinux` for linux) // (used for report symbolization, coverage reports and in tree modules finding, optional). KernelObj string `json:"kernel_obj"` - // Directories for unstripped kernel module object files (optional) - // It's needed for out-of-tree module build in order to find ko files automatically + // Directories with out-of-free kernel module object files (optional). + // KernelObj is also scanned for in-tree kernel modules and does not need to be duplicated here. + // Note: KASLR needs to be disabled and modules need to be pre-loaded at fixed addressses by init process. + // Note: the modules need to be unstripped and contain debug info. ModuleObj []string `json:"module_obj"` // Kernel source directory (if not set defaults to KernelObj). KernelSrc string `json:"kernel_src,omitempty"` |
