public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Qian Cai <cai@lca.pw>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Will Deacon <will@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Alexei Starovoitov <ast@kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	clang-built-linux@googlegroups.com,
	Catalin Marinas <catalin.marinas@arm.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	Ingo Molnar <mingo@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: "ftrace: Rework event_create_dir()" triggers boot error messages
Date: Mon, 6 Jan 2020 12:05:58 -0500	[thread overview]
Message-ID: <3F343134-63CB-4D99-97AD-F512B8760C94@lca.pw> (raw)
In-Reply-To: <20191218233101.73044ce3@rorschach.local.home>



> On Dec 18, 2019, at 11:31 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
> 
> On Wed, 18 Dec 2019 22:58:23 -0500
> Qian Cai <cai@lca.pw> wrote:
> 
>> The linux-next commit "ftrace: Rework event_create_dir()” [1] triggers boot warnings
>> for Clang-build (Clang version 8.0.1) kernels (reproduced on both arm64 and powerpc).
>> Reverted it (with trivial conflict fixes) on the top of today’s linux-next fixed the issue.
>> 
>> configs:
>> https://raw.githubusercontent.com/cailca/linux-mm/master/arm64.config
>> https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config
>> 
>> [1] https://lore.kernel.org/lkml/20191111132458.342979914@infradead.org/
>> 
>> [  115.799327][    T1] Registered efivars operations
>> [  115.849770][    T1] clocksource: Switched to clocksource arch_sys_counter
>> [  115.901145][    T1] Could not initialize trace point events/sys_enter_rt_sigreturn
>> [  115.908854][    T1] Could not create directory for event sys_enter_rt_sigreturn
>> [  115.998949][    T1] Could not initialize trace point events/sys_enter_restart_syscall
>> [  116.006802][    T1] Could not create directory for event sys_enter_restart_syscall
>> [  116.062702][    T1] Could not initialize trace point events/sys_enter_getpid
>> [  116.069828][    T1] Could not create directory for event sys_enter_getpid
>> [  116.078058][    T1] Could not initialize trace point events/sys_enter_gettid
>> [  116.085181][    T1] Could not create directory for event sys_enter_gettid
>> [  116.093405][    T1] Could not initialize trace point events/sys_enter_getppid
>> [  116.100612][    T1] Could not create directory for event sys_enter_getppid
>> [  116.108989][    T1] Could not initialize trace point events/sys_enter_getuid
>> [  116.116058][    T1] Could not create directory for event sys_enter_getuid
>> [  116.124250][    T1] Could not initialize trace point events/sys_enter_geteuid
>> [  116.131457][    T1] Could not create directory for event sys_enter_geteuid
>> [  116.139840][    T1] Could not initialize trace point events/sys_enter_getgid
>> [  116.146908][    T1] Could not create directory for event sys_enter_getgid
>> [  116.155163][    T1] Could not initialize trace point events/sys_enter_getegid
>> [  116.162370][    T1] Could not create directory for event sys_enter_getegid
>> [  116.178015][    T1] Could not initialize trace point events/sys_enter_setsid
>> [  116.185138][    T1] Could not create directory for event sys_enter_setsid
>> [  116.269307][    T1] Could not initialize trace point events/sys_enter_sched_yield
>> [  116.276811][    T1] Could not create directory for event sys_enter_sched_yield
>> [  116.527652][    T1] Could not initialize trace point events/sys_enter_munlockall
>> [  116.535126][    T1] Could not create directory for event sys_enter_munlockall
>> [  116.622096][    T1] Could not initialize trace point events/sys_enter_vhangup
>> [  116.629307][    T1] Could not create directory for event sys_enter_vhangup
>> [  116.783867][    T1] Could not initialize trace point events/sys_enter_sync
>> [  116.790819][    T1] Could not create directory for event sys_enter_sync
>> [  117.723402][    T1] pnp: PnP ACPI init
> 
> I noticed that all of the above have zero parameters. Does the
> following patch fix it?
> 
> (note, I prefer "ret" and "i" on different lines anyway)
> 
> -- Steve
> 
> diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
> index 53935259f701..abb70c71fe60 100644
> --- a/kernel/trace/trace_syscalls.c
> +++ b/kernel/trace/trace_syscalls.c
> @@ -269,7 +269,8 @@ static int __init syscall_enter_define_fields(struct trace_event_call *call)
> 	struct syscall_trace_enter trace;
> 	struct syscall_metadata *meta = call->data;
> 	int offset = offsetof(typeof(trace), args);
> -	int ret, i;
> +	int ret = 0;
> +	int i;
> 
> 	for (i = 0; i < meta->nb_args; i++) {
> 		ret = trace_define_field(call, meta->types[i],

Steve, those errors are still there in today’s linux-next. Is this patch on the way to the linux-next?


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-01-06 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19  3:58 "ftrace: Rework event_create_dir()" triggers boot error messages Qian Cai
2019-12-19  4:31 ` Steven Rostedt
2019-12-19  6:06   ` Qian Cai
2020-01-06 17:05   ` Qian Cai [this message]
2020-01-06 17:54     ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F343134-63CB-4D99-97AD-F512B8760C94@lca.pw \
    --to=cai@lca.pw \
    --cc=ast@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mingo@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox