Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5895912iob; Tue, 10 May 2022 06:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9FRLzSnaRjB7yXDDw1iXXy1FBL2PwDUZ2xZ2ml2gRDbZ0cA6KCVjgSwuPpC0MlErFGA8f X-Received: by 2002:a63:4387:0:b0:3c6:9490:4e4b with SMTP id q129-20020a634387000000b003c694904e4bmr10568887pga.438.1652188534309; Tue, 10 May 2022 06:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652188534; cv=none; d=google.com; s=arc-20160816; b=oJ5w82Z+81kWSGSPJyrR8mwWZOcGvdA4eAC3ptKtn0MJ9ytUJmGz4IIb9PJm0cb3yH JtpGQwv1gQOb1jXsbvlRVW6YD1YMIvar0BTR7aitXtj5R/804elhW2ihYDBCUioTJFEB uYmtdbegXhx6Ql3RUh7LZl/yOBx3tsnY+b6kfQHkIYChDCyrVJVtaX4tAxW0kfcTECSO VHGnZTRL0csk+1x26SKLFIy0boQMwZzeIoe7+7sKr9wQpH5mZskh2jjXrKdUZplm2p4n COcae9G0xWlFLjLgRceTyrAXpMFpatmhH42twcaH1yaDbXGOs/u/REy+OPcaRgTKNK/S hdHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TTENNFCykIlGX5I1SANVsjlmSxazMvN7qT6l0FxP4zo=; b=ooBUgye9y8FQjbyfsbU4TuhJ1PcJHvR+O3Vs4roedyMoob9n+M9NbxiUML7wHl77UO DuvPt4LPAKm46+0UC4ksokFOhby8bNwH56jVUVPtkX1uztuGo+QOUjJL88x+sbLO4lPi 0kGM+R5e2XgV+vJK7lGvhtyi8ojk//ULYL6k5LFwccoOFXaysEV72Zwqkglh/+xfY1q9 bS1u6NM6VtWhv2yxKuiyRRbnycUTs2r3++PczDEjOO1PfOJ0h/ynEfeiNlothnji3TPN 7/uwCRa7H+SLlCZbImeKfSG2ElqwgI7Fj6JlaiKTjXRyHPU8B7l4NQkTrvvsUTp5HJaw kKjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DkfMt6y3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020a637016000000b003c65dfbe45esi15084148pgc.335.2022.05.10.06.15.18; Tue, 10 May 2022 06:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DkfMt6y3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238022AbiEJIeO (ORCPT + 99 others); Tue, 10 May 2022 04:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbiEJIeN (ORCPT ); Tue, 10 May 2022 04:34:13 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 820B829ED09 for ; Tue, 10 May 2022 01:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=TTENNFCykIlGX5I1SANVsjlmSxazMvN7qT6l0FxP4zo=; b=DkfMt6y3V2vQFrYxlPhKFbAvFz yRr78p2FfXgWB1MJHE4KL+foutcIZdrEyQY8rOFY2Zly5l/jArg9sH0VIXijWWqXfUBID8NVi+ZZF EgdqGpdsexbK6gBevXYRPB6yA5CBFD60yYGW+6+2HkLt/rZe6JDXmWbNSXVAfOmT57BIipUTb4kFB DJb4uwiTFKSDngoCs9DrHnpJ7zWq0y6cpp4MkhWWA6cOiuLS2aHFkPG1AMasvETQ61lTB1chXF910 a+IRA0JllXg1nEmEWPWNOSt43qfzt0OhTaAKYyQimKMUUGSRFGzXA5HVHs7H1DbxzwLfzcC/Ab6p8 gxmG4inw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1noLFW-004FIj-UF; Tue, 10 May 2022 08:29:43 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id AB882981011; Tue, 10 May 2022 10:29:40 +0200 (CEST) Date: Tue, 10 May 2022 10:29:40 +0200 From: Peter Zijlstra To: Andrii Nakryiko Cc: Qais Yousef , Alexei Starovoitov , Delyan Kratunov , Namhyung Kim , Arnaldo Carvalho de Melo , "bigeasy@linutronix.de" , "dietmar.eggemann@arm.com" , "keescook@chromium.org" , "x86@kernel.org" , "andrii@kernel.org" , "u.kleine-koenig@pengutronix.de" , "vincent.guittot@linaro.org" , "akpm@linux-foundation.org" , "mingo@kernel.org" , "linux-kernel@vger.kernel.org" , "rdunlap@infradead.org" , "rostedt@goodmis.org" , "Kenta.Tada@sony.com" , "tglx@linutronix.de" , "bristot@redhat.com" , "ebiederm@xmission.com" , "ast@kernel.org" , "legion@kernel.org" , "adharmap@quicinc.com" , "valentin.schneider@arm.com" , "ed.tsai@mediatek.com" , "juri.lelli@redhat.com" Subject: Re: [PATCH] sched/tracing: append prev_state to tp args instead Message-ID: <20220510082940.GA100765@worktop.programming.kicks-ass.net> References: <056e9bb0d0e3fc20572d42db7386face1d0665d6.camel@fb.com> <20220426140959.op6u5m7id57aq7yc@wubuntu> <20220427103458.ecnqtaj3af63625h@wubuntu> <20220428100235.sqoxunbylqk2surk@wubuntu> <20220510070122.GJ76023@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220510070122.GJ76023@worktop.programming.kicks-ass.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 09:01:22AM +0200, Peter Zijlstra wrote: > On Mon, May 09, 2022 at 12:32:31PM -0700, Andrii Nakryiko wrote: > > So can this patch be applied, please, or it's a hard no? > > Sorry; I got distracted with other work. I'll grudingly apply the patch. gcc-11-i386-allmodconfig [15:35] FAILED | In file included from ../include/trace/define_custom_trace.h:55, | from ../samples/trace_events/trace_custom_sched.h:96, | from ../samples/trace_events/trace_custom_sched.c:24: | ../samples/trace_events/./trace_custom_sched.h: In function ‘ftrace_test_custom_probe_sched_switch’: | ../include/trace/trace_custom_events.h:178:42: error: passing argument 1 of ‘check_trace_callback_type_sched_switch’ from incompatible pointer type [-Werror=incompatible-pointer-types] | 178 | check_trace_callback_type_##call(trace_custom_event_raw_event_##template); \ | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | void (*)(void *, bool, unsigned int, struct task_struct *, struct task_struct *) {aka void (*)(void *, _Bool, unsigned int, struct task_struct *, struct task_struct *)} | ../include/trace/trace_custom_events.h:34:9: note: in expansion of macro ‘DEFINE_CUSTOM_EVENT’ | 34 | DEFINE_CUSTOM_EVENT(name, name, PARAMS(proto), PARAMS(args)); | | ^~~~~~~~~~~~~~~~~~~ | ../samples/trace_events/./trace_custom_sched.h:21:1: note: in expansion of macro ‘TRACE_CUSTOM_EVENT’ | 21 | TRACE_CUSTOM_EVENT(sched_switch, | | ^~~~~~~~~~~~~~~~~~ | In file included from ../include/linux/trace_events.h:11, | from ../samples/trace_events/trace_custom_sched.c:10: | ../include/linux/tracepoint.h:279:49: note: expected ‘void (*)(void *, bool, struct task_struct *, struct task_struct *, unsigned int)’ {aka ‘void (*)(void *, _Bool, struct task_struct *, struct task_struct *, unsigned int)’} but argument is of type ‘void (*)(void *, bool, unsigned int, struct task_struct *, struct task_struct *)’ {aka ‘void (*)(void *, _Bool, unsigned int, struct task_struct *, struct task_struct *)’} | 279 | check_trace_callback_type_##name(void (*cb)(data_proto)) \ | | ~~~~~~~^~~~~~~~~~~~~~~ | ../include/linux/tracepoint.h:419:9: note: in expansion of macro ‘__DECLARE_TRACE’ | 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | | ^~~~~~~~~~~~~~~ | ../include/linux/tracepoint.h:553:9: note: in expansion of macro ‘DECLARE_TRACE’ | 553 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | | ^~~~~~~~~~~~~ | ../include/trace/events/sched.h:222:1: note: in expansion of macro ‘TRACE_EVENT’ | 222 | TRACE_EVENT(sched_switch, | | ^~~~~~~~~~~ | cc1: some warnings being treated as errors | make[3]: *** [../scripts/Makefile.build:292: samples/trace_events/trace_custom_sched.o] Error 1 | make[3]: *** Waiting for unfinished jobs.... | make[2]: *** [../scripts/Makefile.build:555: samples/trace_events] Error 2 | make[1]: *** [/opt/buildbot/linux-2.6/Makefile:1834: samples] Error 2 | make[1]: *** Waiting for unfinished jobs.... | make: *** [Makefile:219: __sub-make] Error 2 `----