Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions thorlog/v3/kernelmodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@ type LinuxKernelModule struct {
// Whether this modules was compiled into the kernel
IncludedInKernel bool `json:"included_in_kernel" textlog:"included_in_kernel"`

Refcount int `json:"ref_count"`
UsedBy StringList `json:"used_by"`
Refcount int `json:"ref_count"`
UsedBy StringList `json:"used_by"`
// List of modules that this module depends on (from /proc/modules)
DependsOn StringList `json:"depends_on,omitempty"`
Version string `json:"version"`
Parameters KeyValueList `json:"parameters,omitempty" textlog:"parameters,omitempty"`
// Current load state of the module: "Live", "Loading", or "Unloading" (from /proc/modules)
LoadState string `json:"load_state,omitempty"`

File *File `json:"file" textlog:"file,expand,omitempty"`
Description StringList `json:"description" textlog:"description"`
Author string `json:"author" textlog:"author"`

// Indicates if this module was found in /proc/modules (currently loaded modules)
InProcModules bool `json:"in_proc_modules" textlog:"in_proc_modules"`

// Indicates the kernel exposes this module under /sys/module (sysfs entry present).
InSysModule bool `json:"in_sys_module" textlog:"in_sys_module"`

// Indicates if this module was found in /proc/vmallocinfo (modules with vmalloc allocations)
InVmallocinfo bool `json:"in_vmallocinfo" textlog:"in_vmallocinfo"`
}

func (LinuxKernelModule) reportable() {}
Expand Down