]> sourceware.org Git - systemtap.git/commit - buildrun.cxx
Fixed PR17181 by making utrace handle interrupting processes better.
authorDavid Smith <dsmith@redhat.com>
Fri, 18 Jul 2014 20:49:39 +0000 (15:49 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 18 Jul 2014 20:49:39 +0000 (15:49 -0500)
commitd9d07e99777c6e7aaaa8db0049c5fd5e5a2f01b0
tree60c0de1dec542cab5c1d57dd05a30c5f40e9fbfd
parent3296a1a2ddf4f2bfba3ccc57de4508fcda6e232c
Fixed PR17181 by making utrace handle interrupting processes better.

* runtime/stp_utrace.c (utrace_init): Use kallsyms_lookup_name() to lookup
  "wake_up_state" if needed.
  (stp_task_notify_resume): New function to handle the details of adding a
  resume handler.
  (utrace_cleanup): Only output debug printk's if STP_TF_DEBUG is defined.
  (utrace_set_events): Improve check.
  (utrace_do_stop): Call stp_task_notify_resume() instead of inline code.
  (utrace_wakeup): Call stp_wake_up_state() instead of wake_up_process()
  to avoid a WARN(). Call stp_task_notify_resume() instead of inline
  code.
  (utrace_control): Call stp_task_notify_resume() instead of inline code.
  (finish_report): Ditto.
  (finish_resume_report): Add UTRACE_INTERRUPT support.
  (utrace_resume): Handle UTRACE_INTERRUPT.
* runtime/linux/task_finder2.c (stap_task_finder_post_init): Go back to
  sending UTRACE_INTERRUPT to all tasks.
* buildrun.cxx (compile_pass): Add export tests for 'wake_up_state' and
  'try_to_wake_up'.
* runtime/linux/runtime.h: Added 'kallsyms_wake_up_state' declaration when
  necessary.
* testsuite/systemtap.base/process_resume.c: New file.
* testsuite/systemtap.base/process_resume.exp: New file.
buildrun.cxx
runtime/linux/runtime.h
runtime/linux/task_finder2.c
runtime/stp_utrace.c
testsuite/systemtap.base/process_resume.c [new file with mode: 0644]
testsuite/systemtap.base/process_resume.exp [new file with mode: 0644]
This page took 0.030229 seconds and 5 git commands to generate.