2.5.40: lkcd (4/9): additional kernel symbols

2.5.40: lkcd (4/9): additional kernel symbols

Post by Matt D. Robinso » Sun, 06 Oct 2002 01:10:09



These are the symbols required for various changes to the
kernel to allow for dumping to complete properly.

diff -urN -X /home/bharata/dontdiff linux-2.5.40/arch/i386/kernel/i386_ksyms.c linux-2.5.40+lkcd/arch/i386/kernel/i386_ksyms.c
--- linux-2.5.40/arch/i386/kernel/i386_ksyms.c  Tue Oct  1 12:36:59 2002

 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/tty.h>
+#include <linux/dump.h>

 #include <asm/semaphore.h>

 EXPORT_SYMBOL(rtc_lock);

+#if defined(CONFIG_X86) || defined(CONFIG_ALPHA)
+EXPORT_SYMBOL(page_is_ram);
+#endif
+#ifdef CONFIG_SMP
+extern irq_desc_t irq_desc[];
+extern unsigned long irq_affinity[];
+EXPORT_SYMBOL(irq_affinity);
+EXPORT_SYMBOL(irq_desc);
+extern void dump_send_ipi(void);
+EXPORT_SYMBOL(dump_send_ipi);
+extern int (*dump_ipi_function_ptr)(struct pt_regs *);
+EXPORT_SYMBOL(dump_ipi_function_ptr);
+extern void (*dump_trace_ptr)(struct pt_regs *);
+EXPORT_SYMBOL(dump_trace_ptr);
+extern void show_this_cpu_state(int, struct pt_regs *, struct task_struct *);
+EXPORT_SYMBOL(show_this_cpu_state);
+#endif
+
 #undef memcpy
 #undef memset
 extern void * memset(void *,int,__kernel_size_t);
diff -urN -X /home/bharata/dontdiff linux-2.5.40/kernel/ksyms.c linux-2.5.40+lkcd/kernel/ksyms.c
--- linux-2.5.40/kernel/ksyms.c Tue Oct  1 12:35:49 2002

 #include <linux/ctype.h>
 #include <linux/file.h>
 #include <linux/iobuf.h>
+#include <linux/dump.h>
 #include <linux/console.h>
 #include <linux/poll.h>

 extern void *sys_call_table;

 extern struct timezone sys_tz;
+extern int panic_timeout;

 #ifdef CONFIG_MODVERSIONS

 EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
 EXPORT_SYMBOL(proc_doulongvec_minmax);

+/* dump symbols and other symbols needed by dump functionality */
+EXPORT_SYMBOL(get_blkfops);
+EXPORT_SYMBOL(dump_function_ptr);
+EXPORT_SYMBOL(dump_in_progress);
+EXPORT_SYMBOL(dumping_cpu);
+EXPORT_SYMBOL(panic_timeout);
+EXPORT_SYMBOL(register_dump_notifier);
+EXPORT_SYMBOL(unregister_dump_notifier);
+EXPORT_SYMBOL(dump_notifier_list);
+EXPORT_SYMBOL(dump_device_register_ptr);
+
 /* interrupt handling */
 EXPORT_SYMBOL(add_timer);
 EXPORT_SYMBOL(del_timer);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.40: lkcd (4/9): additional kernel symbols

Post by Andi Klee » Sun, 06 Oct 2002 02:20:05



Quote:> diff -urN -X /home/bharata/dontdiff linux-2.5.40/arch/i386/kernel/i386_ksyms.c linux-2.5.40+lkcd/arch/i386/kernel/i386_ksyms.c
> --- linux-2.5.40/arch/i386/kernel/i386_ksyms.c     Tue Oct  1 12:36:59 2002
> +#if defined(CONFIG_X86) || defined(CONFIG_ALPHA)
> +EXPORT_SYMBOL(page_is_ram);
> +#endif

This ifdef in i386_ksyms.c doesn't make much sense...

Quote:> +#ifdef CONFIG_SMP
> +extern irq_desc_t irq_desc[];
> +extern unsigned long irq_affinity[];
> +EXPORT_SYMBOL(irq_affinity);
> +EXPORT_SYMBOL(irq_desc);
> +extern void dump_send_ipi(void);
> +EXPORT_SYMBOL(dump_send_ipi);
> +extern int (*dump_ipi_function_ptr)(struct pt_regs *);
> +EXPORT_SYMBOL(dump_ipi_function_ptr);
> +extern void (*dump_trace_ptr)(struct pt_regs *);
> +EXPORT_SYMBOL(dump_trace_ptr);
> +extern void show_this_cpu_state(int, struct pt_regs *, struct task_struct *);
> +EXPORT_SYMBOL(show_this_cpu_state);

Before adding all these ugly declarations I would just declare the file where
whey are exported from as 'x-obj' and put them directly to where the
functions live.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.40: lkcd (4/9): additional kernel symbols

Post by Matt D. Robinso » Sun, 06 Oct 2002 03:20:06




|>
|>> diff -urN -X /home/bharata/dontdiff linux-2.5.40/arch/i386/kernel/i386_ksyms.c linux-2.5.40+lkcd/arch/i386/kernel/i386_ksyms.c
|>> --- linux-2.5.40/arch/i386/kernel/i386_ksyms.c        Tue Oct  1 12:36:59 2002
|>> +#if defined(CONFIG_X86) || defined(CONFIG_ALPHA)
|>> +EXPORT_SYMBOL(page_is_ram);
|>> +#endif
|>
|>This ifdef in i386_ksyms.c doesn't make much sense...

If the rest of the architectures used page_is_ram(), this
wouldn't be a problem, but not all do.  And since we use
it/need it, that's the reason for the addition.

|>> +#ifdef CONFIG_SMP
|>> +extern irq_desc_t irq_desc[];
|>> +extern unsigned long irq_affinity[];
|>> +EXPORT_SYMBOL(irq_affinity);
|>> +EXPORT_SYMBOL(irq_desc);
|>> +extern void dump_send_ipi(void);
|>> +EXPORT_SYMBOL(dump_send_ipi);
|>> +extern int (*dump_ipi_function_ptr)(struct pt_regs *);
|>> +EXPORT_SYMBOL(dump_ipi_function_ptr);
|>> +extern void (*dump_trace_ptr)(struct pt_regs *);
|>> +EXPORT_SYMBOL(dump_trace_ptr);
|>> +extern void show_this_cpu_state(int, struct pt_regs *, struct task_struct *);
|>> +EXPORT_SYMBOL(show_this_cpu_state);
|>
|>Before adding all these ugly declarations I would just declare the file where
|>whey are exported from as 'x-obj' and put them directly to where the
|>functions live.

Okee, I'll start looking into doing this.  That'll break out this
whole patch (assuming there's something else that can be done for
the page_is_ram() mechanism).

|>-Andi

--Matt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.40: lkcd (4/9): additional kernel symbols

Post by Andi Klee » Sun, 06 Oct 2002 03:40:05





> |>
> |>> diff -urN -X /home/bharata/dontdiff linux-2.5.40/arch/i386/kernel/i386_ksyms.c linux-2.5.40+lkcd/arch/i386/kernel/i386_ksyms.c
> |>> --- linux-2.5.40/arch/i386/kernel/i386_ksyms.c   Tue Oct  1 12:36:59 2002
> |>> +#if defined(CONFIG_X86) || defined(CONFIG_ALPHA)
> |>> +EXPORT_SYMBOL(page_is_ram);
> |>> +#endif
> |>
> |>This ifdef in i386_ksyms.c doesn't make much sense...

> If the rest of the architectures used page_is_ram(), this
> wouldn't be a problem, but not all do.  And since we use
> it/need it, that's the reason for the addition.

My point was that in i386_ksyms you are always on i386 and never on alpha.
So you can just remove that #ifdef.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. ALSA Menuconfig Breakage in 2.5.40 and 2.5.40-bk1

Menuconfig has encountered a possible error in one of the kernel's
Configuration files and is unable to continue.  Here is the error
report:

Q> ./scripts/Menuconfig: MCmenu74: command not found

This is broken in both 2.5.40 and 2.5.40-bk1

seth

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. NAT and DSL

3. 2.5.40: lkcd (3/9): kerntypes addition

4. FreeBSD-STABLE and Intel PRO100 PCI lan adapter

5. LKCD for 2.5.40

6. System does not start after installing

7. 2.5.40: lkcd (7/9): dump trace/dump calls/dump_in_progress

8. Directory Structure

9. 2.5.40: lkcd (1/9): dump vector

10. 2.5.40: lkcd (8/9): dump configuration

11. 2.5.40: lkcd (5/9): add in use for page alloc/free

12. 2.5.40: lkcd (6/9): sysrq changes for dump

13. 2.5.40: lkcd (2/9): dump notifier