]> sourceware.org Git - systemtap.git/commit
Use kernel.trace("sched:sched_process_fork") for kprocess.create when possible
authorWilliam Cohen <wcohen@redhat.com>
Thu, 18 Jun 2020 21:14:30 +0000 (17:14 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Thu, 18 Jun 2020 21:14:30 +0000 (17:14 -0400)
commit36430614d342020dc4c76f4ac5531ae84f211aab
treebebf1ce7f09650ff33dba213ad5c2ea58f133f87
parentb2d18cb3afca76536506fe4992fdd6ef091ce82f
Use kernel.trace("sched:sched_process_fork") for kprocess.create when possible

With optimization the copy_process function is often inlined making it
impossible for kprocess.create to probe the return of the copy_process
function.  The equivalent tracepoint sched:sched_process_fork should
be used instead to avoid that issue.  This change allows the
forktracker.stp and spawn_seekeer.stp examples to run even on kernels
where copy_process has been inlined.
tapset/linux/kprocess.stp
This page took 0.026993 seconds and 5 git commands to generate.