diff options
Diffstat (limited to 'runtime/transport')
-rw-r--r-- | runtime/transport/ChangeLog | 11 | ||||
-rw-r--r-- | runtime/transport/control.c | 7 | ||||
-rw-r--r-- | runtime/transport/symbols.c | 22 | ||||
-rw-r--r-- | runtime/transport/transport_msgs.h | 2 |
4 files changed, 32 insertions, 10 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog index 9d0ba162..2e59ff90 100644 --- a/runtime/transport/ChangeLog +++ b/runtime/transport/ChangeLog @@ -1,3 +1,14 @@ +2008-06-13 Wenji Huang <wenji.huang@oracle.com> + + * control.c (_stp_ctl_write_dbug): Remove STP_UNWIND support. + +2008-06-03 Frank Ch. Eigler <fche@elastic.org> + + PR 6429 + * symbols.c (_stp_init_modules): Don't ask stapio for unwind data. + * control.c (_stp_ctl_write_cmd): Remove STP_UNWIND support. + * transport_msgs.h (STP_UNWIND): Remove declaration. + 2008-04-30 Masami Hiramatsu <mhiramat@redhat.com> PR 5645 diff --git a/runtime/transport/control.c b/runtime/transport/control.c index ca7edf79..9319b9ca 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -36,9 +36,6 @@ static ssize_t _stp_ctl_write_cmd(struct file *file, const char __user *buf, siz #endif switch (type) { - case STP_UNWIND: - _stp_do_unwind_data(buf, count); - break; case STP_START: if (started == 0) { struct _stp_msg_start st; @@ -103,10 +100,6 @@ static void _stp_ctl_write_dbug(int type, void *data, int len) case STP_TRANSPORT: _dbug("sending STP_TRANSPORT\n"); break; - case STP_UNWIND: - snprintf(buf, sizeof(buf), "%s", (char *)data); - _dbug("sending STP_UNWIND %s [len=%d]\n", buf, len); - break; default: _dbug("ERROR: unknown message type: %d\n", type); break; diff --git a/runtime/transport/symbols.c b/runtime/transport/symbols.c index 087bf893..4a3c4e17 100644 --- a/runtime/transport/symbols.c +++ b/runtime/transport/symbols.c @@ -196,7 +196,11 @@ static int _stp_init_kernel_symbols(void) _stp_num_modules = 1; /* Note: this mapping is used by kernel/_stext pseudo-relocations. */ + #ifdef __powerpc__ + _stp_modules[0]->text = _stp_kallsyms_lookup_name(".__start"); + #else _stp_modules[0]->text = _stp_kallsyms_lookup_name("_stext"); + #endif if (_stp_modules[0]->text == 0) { _dbug("Lookup of _stext failed. Exiting.\n"); return -1; @@ -399,6 +403,22 @@ static int _stp_section_is_interesting(const char *name) return ret; } +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25) +struct module_sect_attr +{ + struct module_attribute mattr; + char *name; + unsigned long address; +}; + +struct module_sect_attrs +{ + struct attribute_group grp; + unsigned int nsections; + struct module_sect_attr attrs[0]; +}; +#endif + /* Create a new _stp_module and load the symbols */ static struct _stp_module *_stp_load_module_symbols(struct module *mod) { @@ -609,7 +629,7 @@ static int _stp_init_modules(void) /* unlocks the list */ modules_op->stop(NULL, NULL); -#ifdef STP_USE_DWARF_UNWINDER +#if 0 /* def STP_USE_DWARF_UNWINDER */ /* now that we have all the modules, ask for their unwind info */ { unsigned long flags; diff --git a/runtime/transport/transport_msgs.h b/runtime/transport/transport_msgs.h index 5f385565..27476e76 100644 --- a/runtime/transport/transport_msgs.h +++ b/runtime/transport/transport_msgs.h @@ -23,7 +23,6 @@ enum STP_EXIT, STP_OOB_DATA, STP_SYSTEM, - STP_UNWIND, STP_TRANSPORT, STP_CONNECT, STP_DISCONNECT, @@ -44,7 +43,6 @@ static const char *_stp_command_name[] = { "STP_EXIT", "STP_OOB_DATA", "STP_SYSTEM", - "STP_UNWIND", "STP_TRANSPORT", "STP_CONNECT", "STP_DISCONNECT", |