]> sourceware.org Git - systemtap.git/commit
Rework code to add python procfs files that report probe breakpoint details.
authorDavid Smith <dsmith@redhat.com>
Thu, 13 Oct 2016 21:19:36 +0000 (16:19 -0500)
committerDavid Smith <dsmith@redhat.com>
Thu, 13 Oct 2016 21:19:36 +0000 (16:19 -0500)
commit648843bf89d887618efb7036a76e231b34666cff
tree7cbbb2081b2b2d14cd911b0cc2896fae99dbbf14
parentc9bcb42a4483cb4e8cf1b8c8bd8cfbb54fa94ebf
Rework code to add python procfs files that report probe breakpoint details.

* tapset-python.cxx (python_derived_probe_group::emit_kernel_module_init):
  New function.
  (python_derived_probe_group::emit_kernel_module_exit): Ditto.
  (python_derived_probe_group::emit_module_decls): Output procfs probe
  buffer code.
  (python_derived_probe_group::emit_module_init): Emit procfs file init
  code.
  (python_derived_probe_group::emit_module_exit): Emit procfs file exit
  code.
  (python_builder::build): Remove synthetic procfs probes.
* runtime/procfs-probes.c: Add copyright header. Move _stp_procfs_data
  structure definition to procfs-probes.h.
  (_stp_proc_open_file): Only reset the buffer if we've got a read_probe
  function.
  (_stp_proc_read_file): Don't exit if we don't have a read_probe
  function.
* tapset-procfs.cxx (procfs_derived_probe::join_group): Move
  _stp_procfs_data structure definition to procfs-probes.h.
* runtime/procfs-probes.h: New file.
* runtime/python.c: Removed unneeded file.
runtime/procfs-probes.c
runtime/procfs-probes.h [new file with mode: 0644]
runtime/python.c [deleted file]
tapset-procfs.cxx
tapset-python.cxx
This page took 0.02505 seconds and 5 git commands to generate.