Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2403123rdb; Wed, 21 Feb 2024 06:45:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVu8RahgXa5is0KGSbfiZQJ2nr8woEL+ggM/feMNnO0l1Ote0ivfMhjcjjX2YpynH2QB0afU+Kp/KB8pVWmTwWTaCcSr6nbEKUpZe2/KQ== X-Google-Smtp-Source: AGHT+IH9m1vBXWr38YETT0Q17863ez1n2UMEhcyLSnEahUiAfKBOF1cOVwm6EQFMMyHiCPeYGHan X-Received: by 2002:a05:6218:260e:b0:17b:59e6:ff8c with SMTP id oy14-20020a056218260e00b0017b59e6ff8cmr2289770rwc.6.1708526741509; Wed, 21 Feb 2024 06:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708526741; cv=pass; d=google.com; s=arc-20160816; b=yx+CPq+li1HvrOhayNj898YlJjmalS6BjhIiyRuoih88WR8iW0Q9jtv+rrI2kXJd+v p6Hjvsdsw299+sU21HcSEFfGsfqYqgqjF23HKVGrMspuyMK50xsAVNZn0DpuvHOSHRy4 tJTqNXdtI6PrTg6kVBfP+6pYIhPw7yKJ93auAEwXfd33nyuzWX0bQYSbrSMdKgO20IbX jhxDNaFfz8fMCNmPpfbxFR5yZ3+T+78RdOBXVwxBUL6x5aKbjEN71MMcOm3fWnyNSMQT Fvq3Oa7nj+plp7v73JnjBI7jYAK4QKb4DozdqCWFv9YVLSPT3GdV7MIE7o6n/kHiIOa7 3RLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=lz8uVDNcYKdo9zod1mHQljJKOuEZsAB8mRwdfqDdq4o=; fh=9i/bg8Vgv79HyK30MTCmSQiGbocU7oa6i7ENGDUVFjc=; b=hVz/Dmbme0rTwS6/D9ywwQN2Kh7kwhIGsw9ezm46f6b60BjC7KPKKCAWpOkq+I6wrH 3UfTbeOgRo7Df5JqELaWs+zjVBNhnoLXwgy6uyI62MXx9irq74ZgpfL2XdVsl5dH5esw xVEk8DCQ/loULi71o5WsTUk8zOeR6fBg8qufqHoXDvzSL7G0jwJqGxfVRDPmEO80cdIa fJ/VkFkisd9DF0ihi0xufwCkPov5cdHOzROLvjXPndepQaKskOtjY7R4SDvZ9FriLRvP x4P7IFIvL5ftGjyPVfA6jir1iFrh48oXIPbF0y7QChtDZwijG2DgHZptqNUoN8ihptcD 8n/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74881-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u5-20020a656705000000b005d3adb65694si7933196pgf.757.2024.02.21.06.45.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74881-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B9F47B25A9D for ; Wed, 21 Feb 2024 14:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1EB27BB16; Wed, 21 Feb 2024 14:21:25 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B4AA4C62; Wed, 21 Feb 2024 14:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525285; cv=none; b=AebVgJ4wICl2AU6Hc99XCoTx/X+is6obuieMng64xE4D8X8uA9JoIoLd/u/rfyvOi+v/ZTa85lAjtp1BtmcHAM/Xa0S2MvD5aMFyNxtLYxU87S73GGAEqZJPW0J5pRDMM3t2M73H/a/zYzCHVQzgR6/QzGcmU2wsGDSylkAwBig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525285; c=relaxed/simple; bh=A4HgXRGDVVWg5a5ZtE9lWeLwYz5CzwymEup8k2SG11U=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BC1EJVHD3R0zZCKynpJKn/TwQ5ne0THN922PxXvtaceUwdvdEMmRRtplKQmiV+WP1ZYOLg2nifs4KXHMWFFXDQSd/VdfV4680Y+8XjyBgKpXuflhlD8YeO3U3etZWLEu9/q+FX+bcYQTvvl98XJK08QsLumgCgJG608aHmzmA/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA07CC43390; Wed, 21 Feb 2024 14:21:21 +0000 (UTC) Date: Wed, 21 Feb 2024 09:23:09 -0500 From: Steven Rostedt To: Metin Kaya Cc: linux-kernel@vger.kernel.org, John Stultz , Joel Fernandes , Qais Yousef , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Valentin Schneider , Masami Hiramatsu , Mathieu Desnoyers , Ben Segall , Zimuzo Ezeozue , Youssef Esmat , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Waiman Long , Boqun Feng , "Paul E. McKenney" , Xuewen Yan , K Prateek Nayak , Thomas Gleixner , kernel-team@android.com, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] sched: Add trace events for Proxy Execution (PE) Message-ID: <20240221092309.00432f37@gandalf.local.home> In-Reply-To: <20240202083338.1328060-1-metin.kaya@arm.com> References: <20240202083338.1328060-1-metin.kaya@arm.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 2 Feb 2024 08:33:38 +0000 Metin Kaya wrote: > Add sched_[start, finish]_task_selection trace events to measure the > latency of PE patches in task selection. > > Moreover, introduce trace events for interesting events in PE: > 1. sched_pe_enqueue_sleeping_task: a task gets enqueued on wait queue of > a sleeping task (mutex owner). > 2. sched_pe_cross_remote_cpu: dependency chain crosses remote CPU. > 3. sched_pe_task_is_migrating: mutex owner task migrates. > > New trace events can be tested via this command: > $ perf trace \ > -e sched:sched_start_task_selection \ > -e sched:sched_finish_task_selection \ > -e sched:sched_pe_enqueue_sleeping_task \ > -e sched:sched_pe_cross_remote_cpu \ > -e sched:sched_pe_task_is_migrating > > Notes: > 1. These trace events are not intended to merge upstream. Instead, they > are only for making PE tests easier and will be converted to trace > points once PE patches hit upstream. I wonder if the tracepoints should be added though? That is, not adding the trace_events that show up in tracefs, but just the tracepoints so that bpf or local modules could hook to them? -- Steve > 2. This patch is based on John's Proxy Execution v7 patch series (see > the link below) which is also available at > https://github.com/johnstultz-work/linux-dev/commits/proxy-exec-v7-6.7-rc6/. > > Link: https://lore.kernel.org/linux-kernel/CANDhNCrHd+5twWVNqBAhVLfhMhkiO0KjxXBmwVgaCD4kAyFyWw@mail.gmail.com/