@@ -495,7 +495,7 @@ config MISC_RTSX
config PAGE_DETECTIVE
depends on PAGE_TABLE_CHECK
depends on MEMCG
- bool "Page Detective"
+ tristate "Page Detective"
help
A debugging tool designed to provide detailed information about the
usage and mapping of physical memory pages. This tool operates through
@@ -279,6 +279,7 @@ void pr_cont_kernfs_path(struct kernfs_node *kn)
out:
spin_unlock_irqrestore(&kernfs_pr_cont_lock, flags);
}
+EXPORT_SYMBOL_GPL(pr_cont_kernfs_path);
/**
* kernfs_get_parent - determine the parent node and pin it
@@ -447,6 +447,7 @@ struct task_struct *find_get_task_by_vpid(pid_t nr)
return task;
}
+EXPORT_SYMBOL_GPL(find_get_task_by_vpid);
struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
{
@@ -967,6 +967,7 @@ struct mem_cgroup *get_mem_cgroup_from_folio(struct folio *folio)
rcu_read_unlock();
return memcg;
}
+EXPORT_SYMBOL_GPL(get_mem_cgroup_from_folio);
/**
* mem_cgroup_iter - iterate over memory cgroup hierarchy
@@ -149,6 +149,7 @@ struct task_struct *find_lock_task_mm(struct task_struct *p)
return t;
}
+EXPORT_SYMBOL_GPL(find_lock_task_mm);
/*
* order == -1 means the oom kill is required by sysrq, otherwise only
Export the missing symbols, and allow page_detective to be built as a loadable module. This can be make this available in the field, where Page Detective is loaded only once it is needed. Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> --- drivers/misc/Kconfig | 2 +- fs/kernfs/dir.c | 1 + kernel/pid.c | 1 + mm/memcontrol.c | 1 + mm/oom_kill.c | 1 + 5 files changed, 5 insertions(+), 1 deletion(-)