Commit d74eb76f authored by Yujie Liu's avatar Yujie Liu Committed by Zheng Zengkai
Browse files

tracing/kprobes: Fix the order of argument descriptions

stable inclusion
from stable-v6.6.2
commit dc43609d12ec3c20a64ca535c964969ffd8bc578
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dc43609d12ec3c20a64ca535c964969ffd8bc578

--------------------------------

[ Upstream commit f032c53bea6d2057c14553832d846be2f151cfb2 ]

The order of descriptions should be consistent with the argument list of
the function, so "kretprobe" should be the second one.

int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe,
                                 const char *name, const char *loc, ...)

Link: https://lore.kernel.org/all/20231031041305.3363712-1-yujie.liu@intel.com/



Fixes: 2a588dd1 ("tracing: Add kprobe event command generation functions")
Suggested-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: default avatarYujie Liu <yujie.liu@intel.com>
Reviewed-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 25e6a8bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment