Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2391854rdb; Wed, 21 Feb 2024 06:25:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXTKxqtps3R0+5Tqq7UxZQXL6oYfKszMXunEsKUY8Jmz4K3t53BuQs93t4pDwgm2FTGnDk6Fm7snOlpKpNATyc7eY1FiHTzIclenOgffg== X-Google-Smtp-Source: AGHT+IG7CsIQ2Y88oAeSHkzfZ+Q8LfA+xs7hXCXpXRP3lEV+G7vy0ed1yqoqULw03iYiFaFH/KP7 X-Received: by 2002:aa7:9802:0:b0:6e4:148e:2933 with SMTP id e2-20020aa79802000000b006e4148e2933mr8843613pfl.13.1708525519326; Wed, 21 Feb 2024 06:25:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708525519; cv=pass; d=google.com; s=arc-20160816; b=hEiTecRN8ao+rHz8JX1OmPnAFynlB9LHjZf2+v71GCTAZxh9VcTBeeYb9p9+rBCuSX r2FuT3YLDHqsxlAjOYhpiuJcM7uBi4EOuKgAJNrnSzlm5tMWoyD/4Gyem1lCTChNeNFD dN8OtG7CPQu0QXxYOMf+5D1M4JhLtbSOH7bX6CmgW90ErKUCrZQ3l7DddudF0wfzC1ul Dh1OIGeYvPFv8asW+TJjWgSM0uq5AzZ4U6jCOMizKgN+d9+hvrlOtJHNIV62dzo2+auv 5xl4cZ/Ap4hDnqCHfvauPA67V5dMC4PxtGibrbMB6qkqqLM4m7Beyccnn3Gd1qgRcLR9 ENIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=KN09O+jEByMI7KCCzelJTXmMhu3+7MKHKVIL0Gf/Czg=; fh=zTS/hyCJ+iR0HLguJ7eWMKu+oyzEIpr01HyCkaYS9os=; b=iOGT5hIvGpKPgtHknAXo4bCg+5eaAp8dkJPO1cCTsGJVMRQ/hqsZP8onzpme6UhQO6 eN36speiVMp76eE1WbWmEr2Gos+7mMmDwjUmK36estSDufV3RP/ltNrgUchBVG9jKbI5 oQtx6TzOdjTU1SpmEu6oeXriJP3xsNRHiryH/txpyeEgi0J2ePZ5+YAEPDdYLTBGyhiM wsFBfGEsrKAGa1xjeo4S1f+ysyaCE4CNs+i8C05zQQ0FwqAD9rBhjmpAbm8EeFlb3bel EgogCE3wY+G8OHqElMpPMtjJZBoMVv5ZTVQPxSM8WzQ6pgWKdnJFR/CXwHaGvIyE4ZSC jMhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-74886-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74886-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s128-20020a637786000000b005d8b7053276si8230881pgc.160.2024.02.21.06.25.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:25:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74886-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-74886-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74886-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 25D0F284314 for ; Wed, 21 Feb 2024 14:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A128D7C6D5; Wed, 21 Feb 2024 14:25:08 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74FC669E00; Wed, 21 Feb 2024 14:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525508; cv=none; b=hxJRE2S/kK3mkVMd7zxZv3FQUwgN0qNXLPnNYW9Ca1UVrHxfsecIhmqAGrlyj0Mzzi06yqC+O0pifxeFMlAM1T8X7il0XTnxdjOh3Mdc8sx8N3S85EGFkfsFlVaEjN5kHi/sphTiUESMYO0a9K1IbAopJojzVCdDb+Kh7e0RQFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525508; c=relaxed/simple; bh=Gy89qptAv2iTAYRcZ3FZRFKQzMSJu/13BzdF9/IZBqg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=a9pnPQwN5smPcKNLSo+ZsRA9+tNUy8ZSJUn1BeJdb5l2fKbsIq1w1eQ5pETqI1EE1Q1ef52rn4yG3N+xLejO8xzicFaSePtUZYJXN+4juJ7LZf/ZaQSI+8mGwwfkuKG+maJCjwr/eYel0khgh1IoAPQEBogdMFUPST50ktq+amg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F19BE1007; Wed, 21 Feb 2024 06:25:43 -0800 (PST) Received: from [10.1.37.53] (e132833.arm.com [10.1.37.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D5113F762; Wed, 21 Feb 2024 06:25:01 -0800 (PST) Message-ID: <10e83b13-bce5-4544-8923-1ee90a2135a8@arm.com> Date: Wed, 21 Feb 2024 14:24:59 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] sched: Add trace events for Proxy Execution (PE) Content-Language: en-US To: Steven Rostedt 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 References: <20240202083338.1328060-1-metin.kaya@arm.com> <20240221092309.00432f37@gandalf.local.home> From: Metin Kaya In-Reply-To: <20240221092309.00432f37@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/02/2024 2:23 pm, Steven Rostedt wrote: > 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? Yep, the intention is providing necessary support for modules (e.g., https://github.com/ARM-software/lisa/blob/main/lisa/_assets/kmodules/lisa/tp.c). > > -- 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/ >