Skip to content

Add new fields to kernelmodule.go for comprehensive module analysis (lsmod module)#41

Merged
PierreBaronNextron merged 2 commits intomasterfrom
feat/kernel-module-analysis
Oct 14, 2025
Merged

Add new fields to kernelmodule.go for comprehensive module analysis (lsmod module)#41
PierreBaronNextron merged 2 commits intomasterfrom
feat/kernel-module-analysis

Conversation

@PierreBaronNextron
Copy link
Copy Markdown
Contributor

Added three boolean fields to LinuxKernelModule to track which Linux kernel subsystems detected each module.

  • InProcModules: Module found in /proc/modules (currently loaded modules)
  • InSysModule: Module found in /sys/module/ (modules with sysfs representation)
  • InVmallocinfo: Module found in /proc/vmallocinfo (modules with vmalloc allocations)

/proc/modules parsing:

  • DependsOn: List of modules this module depends on (from /proc/modules)
  • LoadState: Current module state - "Live", "Loading", or "Unloading" (from /proc/modules)

@PierreBaronNextron PierreBaronNextron self-assigned this Oct 10, 2025
@PierreBaronNextron PierreBaronNextron changed the title Add new fields to kernelmodule.go for for comprehensive module analysis (lsmod module) Add new fields to kernelmodule.go for comprehensive module analysis (lsmod module) Oct 10, 2025
// Indicates if this module was found in /proc/modules (currently loaded modules)
InProcModules bool `json:"in_proc_modules" textlog:"in_proc_modules"`

// Indicates if this module was found in /sys/module/ (modules with sysfs representation)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"modules with sysfs representation" sounds a bit weird; this is purely descriptive of what is present, the other comments are more indicative of what this means.

@PierreBaronNextron PierreBaronNextron merged commit 38a47dc into master Oct 14, 2025
2 checks passed
@PierreBaronNextron PierreBaronNextron deleted the feat/kernel-module-analysis branch October 14, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants