* [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc
@ 2023-06-04 2:29 Masami Hiramatsu (Google)
2023-06-04 2:29 ` [PATCH 2/2] Documentation: Fix typo of reference file name Masami Hiramatsu (Google)
2023-06-21 16:44 ` [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Steven Rostedt
0 siblings, 2 replies; 4+ messages in thread
From: Masami Hiramatsu (Google) @ 2023-06-04 2:29 UTC (permalink / raw)
To: linux-trace-kernel
Cc: linux-kernel, Steven Rostedt, mhiramat, Florent Revest,
Mark Rutland, Will Deacon, Mathieu Desnoyers, Martin KaFai Lau,
bpf, Bagas Sanjaya, kernel test robot
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Fix to return NULL and keep using current argc when there is
$argN and the BTF is not available.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306030940.Cej2JoUx-lkp@intel.com/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
---
kernel/trace/trace_probe.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c
index ba1c6e059b51..473e1c43bc57 100644
--- a/kernel/trace/trace_probe.c
+++ b/kernel/trace/trace_probe.c
@@ -1273,7 +1273,8 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
trace_probe_log_err(0, NOSUP_BTFARG);
return (const char **)params;
}
- return 0;
+ *new_argc = argc;
+ return NULL;
}
ctx->params = params;
ctx->nr_params = nr_params;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Documentation: Fix typo of reference file name
2023-06-04 2:29 [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Masami Hiramatsu (Google)
@ 2023-06-04 2:29 ` Masami Hiramatsu (Google)
2023-06-21 16:45 ` Steven Rostedt
2023-06-21 16:44 ` [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Steven Rostedt
1 sibling, 1 reply; 4+ messages in thread
From: Masami Hiramatsu (Google) @ 2023-06-04 2:29 UTC (permalink / raw)
To: linux-trace-kernel
Cc: linux-kernel, Steven Rostedt, mhiramat, Florent Revest,
Mark Rutland, Will Deacon, Mathieu Desnoyers, Martin KaFai Lau,
bpf, Bagas Sanjaya, kernel test robot
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Fix a typo of Documentation/trace/fprobe.rst.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306040144.aD72UzkF-lkp@intel.com/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
---
Documentation/trace/fprobetrace.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/trace/fprobetrace.rst b/Documentation/trace/fprobetrace.rst
index e949bc0cff05..7297f9478459 100644
--- a/Documentation/trace/fprobetrace.rst
+++ b/Documentation/trace/fprobetrace.rst
@@ -38,7 +38,7 @@ Synopsis of fprobe-events
with a digit character, "_TRACEPOINT" is used.
MAXACTIVE : Maximum number of instances of the specified function that
can be probed simultaneously, or 0 for the default value
- as defined in Documentation/trace/fprobes.rst
+ as defined in Documentation/trace/fprobe.rst
FETCHARGS : Arguments. Each probe can have up to 128 args.
ARG : Fetch "ARG" function argument using BTF (only for function
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] Documentation: Fix typo of reference file name
2023-06-04 2:29 ` [PATCH 2/2] Documentation: Fix typo of reference file name Masami Hiramatsu (Google)
@ 2023-06-21 16:45 ` Steven Rostedt
0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2023-06-21 16:45 UTC (permalink / raw)
To: Masami Hiramatsu (Google)
Cc: linux-trace-kernel, linux-kernel, Florent Revest, Mark Rutland,
Will Deacon, Mathieu Desnoyers, Martin KaFai Lau, bpf,
Bagas Sanjaya, kernel test robot
On Sun, 4 Jun 2023 11:29:11 +0900
"Masami Hiramatsu (Google)" <mhiramat@kernel.org> wrote:
> From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
>
> Fix a typo of Documentation/trace/fprobe.rst.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202306040144.aD72UzkF-lkp@intel.com/
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-- Steve
> ---
> Documentation/trace/fprobetrace.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/trace/fprobetrace.rst b/Documentation/trace/fprobetrace.rst
> index e949bc0cff05..7297f9478459 100644
> --- a/Documentation/trace/fprobetrace.rst
> +++ b/Documentation/trace/fprobetrace.rst
> @@ -38,7 +38,7 @@ Synopsis of fprobe-events
> with a digit character, "_TRACEPOINT" is used.
> MAXACTIVE : Maximum number of instances of the specified function that
> can be probed simultaneously, or 0 for the default value
> - as defined in Documentation/trace/fprobes.rst
> + as defined in Documentation/trace/fprobe.rst
>
> FETCHARGS : Arguments. Each probe can have up to 128 args.
> ARG : Fetch "ARG" function argument using BTF (only for function
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc
2023-06-04 2:29 [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Masami Hiramatsu (Google)
2023-06-04 2:29 ` [PATCH 2/2] Documentation: Fix typo of reference file name Masami Hiramatsu (Google)
@ 2023-06-21 16:44 ` Steven Rostedt
1 sibling, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2023-06-21 16:44 UTC (permalink / raw)
To: Masami Hiramatsu (Google)
Cc: linux-trace-kernel, linux-kernel, Florent Revest, Mark Rutland,
Will Deacon, Mathieu Desnoyers, Martin KaFai Lau, bpf,
Bagas Sanjaya, kernel test robot
On Sun, 4 Jun 2023 11:29:00 +0900
"Masami Hiramatsu (Google)" <mhiramat@kernel.org> wrote:
> From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
>
> Fix to return NULL and keep using current argc when there is
> $argN and the BTF is not available.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202306030940.Cej2JoUx-lkp@intel.com/
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-- Steve
> ---
> kernel/trace/trace_probe.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c
> index ba1c6e059b51..473e1c43bc57 100644
> --- a/kernel/trace/trace_probe.c
> +++ b/kernel/trace/trace_probe.c
> @@ -1273,7 +1273,8 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
> trace_probe_log_err(0, NOSUP_BTFARG);
> return (const char **)params;
> }
> - return 0;
> + *new_argc = argc;
> + return NULL;
> }
> ctx->params = params;
> ctx->nr_params = nr_params;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-21 16:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-04 2:29 [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Masami Hiramatsu (Google)
2023-06-04 2:29 ` [PATCH 2/2] Documentation: Fix typo of reference file name Masami Hiramatsu (Google)
2023-06-21 16:45 ` Steven Rostedt
2023-06-21 16:44 ` [PATCH 1/2] tracing/probes: Fix to return NULL and keep using current argc Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox