Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30483
b: refs/heads/master
c: 83f4fcc
h: refs/heads/master
i:
  30481: 3ab9973
  30479: e5eb590
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jun 26, 2006
1 parent bc592ba commit c1a5817
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c33bd9aac0597eeedaaa01ea5aafe456894b2f2b
refs/heads/master: 83f4fcce7fdd213bd570b899862c3838871f8cf7
8 changes: 8 additions & 0 deletions trunk/include/linux/unwind.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ struct module;
*/
extern void unwind_init(void);

#ifdef CONFIG_MODULES

extern void *unwind_add_table(struct module *,
const void *table_start,
unsigned long table_size);

extern void unwind_remove_table(void *handle, int init_only);

#endif

extern int unwind_init_frame_info(struct unwind_frame_info *,
struct task_struct *,
/*const*/ struct pt_regs *);
Expand Down Expand Up @@ -72,13 +76,17 @@ struct unwind_frame_info {};

static inline void unwind_init(void) {}

#ifdef CONFIG_MODULES

static inline void *unwind_add_table(struct module *mod,
const void *table_start,
unsigned long table_size)
{
return NULL;
}

#endif

static inline void unwind_remove_table(void *handle, int init_only)
{
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/kernel/unwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ void __init unwind_init(void)
__start_unwind, __end_unwind - __start_unwind);
}

#ifdef CONFIG_MODULES

/* Must be called with module_mutex held. */
void *unwind_add_table(struct module *module,
const void *table_start,
Expand Down Expand Up @@ -253,6 +255,8 @@ void unwind_remove_table(void *handle, int init_only)
kfree(table);
}

#endif /* CONFIG_MODULES */

static uleb128_t get_uleb128(const u8 **pcur, const u8 *end)
{
const u8 *cur = *pcur;
Expand Down

0 comments on commit c1a5817

Please sign in to comment.