Commit Graph

4 Commits

Author SHA1 Message Date
Prasad Sodagudi
a7fda7b680 rtb: Modify rtb index allocation
msm_rtb_idx should be contiguous location instead of percpu
to reduce the no of minidump table entries. Use msm_rtb_ptr
variable from tools side instead of msm_rtb variable to find
RTB index design change.

Change-Id: Ie59f42674d4cec37e9d4f76796cdf1090971e844
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2021-06-30 10:19:28 -07:00
Prasad Sodagudi
02baa456c9 trace: qcom: rtb: Refactor msm_rtb driver
Refactor msm_rtb driver to use mmiorw tracepoints for logging read/write
events into uncached log buffer. Register trace probes with
irq_handler_entry and sched_switch tracepoints for logging irq logging
and sched switch events logging.

Currently no_log variants apis are not technically supported but client
drivers are still using no_log apis. Add dummy no_log apis to msm_rtb.h
file till a good solution is figured out and include msm_rtb.h file to
all the client drivers.

Change-Id: I123b22942b9f529db97d9d05a610578dbdeb0e9e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2021-01-29 23:00:17 -08:00
Lingutla Chandrasekhar
465231e616 Minidump: Add update region support for minidump regions
Add support to update client's entry physical/virtual addresses,
which is useful for DLKM, dynamic address changing clients.

Currently, msm_minidump_add_region() returns 0 on success, instead
of that, return 'region number' of the entry in the minidump table.

So clients who wants to update their address in future, needs to
book keep their entry in minidump table.

Change-Id: I03abbbd87bf6d2e11cf637525412d352772821cf
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-04 15:41:56 +05:30
Elliot Berman
84848e5f70 trace: rtb: add msm_rtb tracing
Add snapshot of msm_rtb.c and related configuration from
msm-4.19 commit <e56fe938419e> (Merge "uapi: Introduce
V4L2_FLAG_CVPMETADATA_SKIP flag").

Change-Id: Ibce114b5ec3b778a4c89543a7411bb432df79bca
[eberman@codeaurora.org: Add support for removing msm-rtb driver.]
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-08-14 16:13:08 -07:00