android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavankumar Kondeti 9db84311e7 tracing: rework sched_preempt_disable trace point implementation
The current implementation of sched_preempt_disable trace point
fails to detect the preemption disable time inside spin_lock_bh()
and spin_unlock_bh(). This is because __local_bh_disable_ip() calls
directly __preempt_count_add() which skips the preemption disable
tracking. Instead of relying on the updates to preempt count, it
is better to write the preemption disable tracking directly to
preemptsoff tracer. This is similar to how irq disable tracking
is done.

The current code handles the false positives coming from __schedule()
by directly resetting the time stamp. This requires an interface
from the scheduler to preemptsoff tracer. To avoid this additional
interface, the current patch detects the same condition by comparing
the task pid and context switch count. If they are not matching
at the time of preemption disable to enable, don't track the preemption
disable time as it involved a context switch.

Due to this rework. the sched_preempt_disable trace point location is
changed to

/sys/kernel/debug/tracing/events/preemptirq/sched_preempt_disable/enable

Change-Id: I7f58d316b7c54bc7a54102bfeb678404bda010d4
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: port to 5.4 and resolve trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-01-27 15:30:25 -08:00
..
acpi ACPI / utils: Move acpi_dev_get_first_match_dev() under CONFIG_ACPI 2019-12-17 19:56:29 +01:00
asm-generic
clocksource
crypto qseecom: Add qseecom driver snapshot for Lahaina 2020-01-02 11:17:15 -08:00
drm
dt-bindings Merge "dt-bindings: clock: gcc: Add PCIe pipe and UFS symbol clocks" 2020-01-10 13:05:20 -08:00
keys
kvm
linux tracing: rework sched_preempt_disable trace point implementation 2020-01-27 15:30:25 -08:00
math-emu
media media: v4l2-core: guard code against ABI breakage 2019-12-03 21:41:18 -08:00
misc
net Merge android-5.4.5 (9cdc723) into msm-5.4 2020-01-23 04:00:53 -08:00
pcmcia
ras
rdma RDMA/core: Fix ib_dma_max_seg_size() 2019-12-17 19:56:41 +01:00
scsi FROMGIT: scsi: core: Adjust DBD setting in MODE SENSE for caching mode page per LLD 2019-12-12 17:14:55 -08:00
soc include: Fixup headers to pass KERNEL_HEADER_TEST 2020-01-15 09:01:08 -07:00
sound Merge android-5.4.5 (9cdc723) into msm-5.4 2020-01-23 04:00:53 -08:00
target
trace tracing: rework sched_preempt_disable trace point implementation 2020-01-27 15:30:25 -08:00
uapi Merge "Merge android-5.4.5 (9cdc723) into msm-5.4" 2020-01-23 20:04:58 -08:00
vdso
video
xen
Kbuild