diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-01-13 04:12:08 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-01-13 04:12:08 -0800 |
| commit | e7a273801caf0f6b15da28601a625f502c209a08 (patch) | |
| tree | 3d86ea10bbb49b7dbf35608d7b5171bca64c0a12 /kernel | |
| parent | ecbd4110234f7ea955b8926d6fa066ae55125bf2 (diff) | |
[PATCH] Module state and address in /proc/modules.
The address allows oprofile and ksymoops to work again. The state is
simply informative.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 74b24770683e..4a31ffeb323d 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1409,6 +1409,15 @@ static int m_show(struct seq_file *m, void *p) seq_printf(m, "%s %lu", mod->name, mod->init_size + mod->core_size); print_unload_info(m, mod); + + /* Informative for users. */ + seq_printf(m, " %s", + mod->state == MODULE_STATE_GOING ? "Unloading": + mod->state == MODULE_STATE_COMING ? "Loading": + "Live"); + /* Used by oprofile and other similar tools. */ + seq_printf(m, " 0x%p", mod->module_core); + seq_printf(m, "\n"); return 0; } |
