codec_mm: modify codec_mm_kps_config [1/1]

PD#SWPL-201448

Problem:
codec_mm_reg_kprobes failed.

Solution:
modify codec_mm_kps_config and

Verify:
sc2

Change-Id: I25be96c670e08928ad2771c4fc663df48fa91768
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
This commit is contained in:
Hao Shi
2025-02-07 03:38:32 +00:00
committed by gerrit autosubmit
parent 9ea1afd489
commit cd577ece91
2 changed files with 3 additions and 3 deletions
@@ -4,7 +4,7 @@
*/
[DBUF_TRACE_FUNC_0] = {
.symbol_name = "__fd_install",
.symbol_name = "fd_install",
.pre_handler = kp_fd_install_pre,
.post_handler = kp_fd_install_post
},
@@ -50,8 +50,8 @@ static struct codec_mm_kps_s *get_kps_ctx(struct kprobe *p, int i)
static int kp_fd_install_pre(struct kprobe *p, struct pt_regs *regs)
{
struct codec_mm_kps_s *kctx = get_kps_ctx(p, DBUF_TRACE_FUNC_0);
u32 fd = GET_PARMS(regs, 1);
struct file *file = (struct file *)GET_PARMS(regs, 2);
u32 fd = GET_PARMS(regs, 0);
struct file *file = (struct file *)GET_PARMS(regs, 1);
if (!is_dma_buf_file_need(file))
goto out;