Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1370233yba; Sun, 5 May 2019 05:02:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyBkMUQRv6JS5GWvzdG9+G0vhiZaaYuFPUuU6BNhIZ9Rp/R/YIYPTeLgchh16tUhO2d2BZ X-Received: by 2002:aa7:80c6:: with SMTP id a6mr25451584pfn.114.1557057754873; Sun, 05 May 2019 05:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557057754; cv=none; d=google.com; s=arc-20160816; b=w7iFQbZwYjDbbn0FmFMeyDC3D2/kDIARI3g/VKS229qqa69QfasiErAqECw0LKe4I7 NbMujYFM8/avdTINOi1ghQqRgMU9nihyToDXvcZ1wB1q5ULPJWMKO5NsG4GLNbiB0x6R TX2px+q+7QQH4tSaJYNhx+qGY9yooxAEiPRf4wXgS3mpuHSMpq31DOS2AVUE/ny20qQS bDLtCSvX87xA2B/WeWv122856qkONd6cjtSxCt5mv1yUTeQwAzX7tqh/Fg1dbU+kHhdc flf54civES6vtGGzXBmouubC3hxhstTVHYU2ZZm6uM5fZCUMyL/tmJIbTOeBsdNGrJA1 ROUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=84NH+TakE/NRUp1WIaDnmhRDyn7hmrsW1NRGOC2h/UU=; b=al6PX0IKCjZ3C3MMQcytOX5qMmoJeKLAwzicKHc4Cp79oDkIMYPfazk9WGBIIqnhSS Pa1+697Nbz0DbiFlcfeSZW2wl6oCqtNulQG8NDqbqubjghG0i6MY//k7ytY0p16yPh+D NRe+QqjNdyUImiuSy13Gt5HYIJkPY+fd81gGFIf+ZAHfVbjIYYG+FvqjPiqX/UZvBUeV c2tKnzY60mgoeygCOUhWD4nYEGLCcCpArh3pPUUbmbxzRqhblczWHsm+hBhiaBY6ZleC VWjYyx/3THP3Bj+1Wj4nPQvLd7Dn1y7n/dmE9LBsnG1x6vINygZ8dIB6Jr0AAelpWjjT kHQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si3379413plo.72.2019.05.05.05.02.19; Sun, 05 May 2019 05:02:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727534AbfEEL6Y (ORCPT + 99 others); Sun, 5 May 2019 07:58:24 -0400 Received: from foss.arm.com ([217.140.101.70]:56800 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfEEL6Y (ORCPT ); Sun, 5 May 2019 07:58:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9739D374; Sun, 5 May 2019 04:58:23 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 19A3B3F5C1; Sun, 5 May 2019 04:58:21 -0700 (PDT) From: Qais Yousef To: Peter Zijlstra , Ingo Molnar , Steven Rostedt Cc: linux-kernel@vger.kernel.org, Pavankumar Kondeti , Sebastian Andrzej Siewior , Uwe Kleine-Konig , Qais Yousef Subject: [PATCH 0/7] Add new tracepoints required for EAS testing Date: Sun, 5 May 2019 12:57:25 +0100 Message-Id: <20190505115732.9844-1-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patches add the bare minimum tracepoints required to perform EAS testing in Lisa[1]. The new tracepoints are bare in a sense that they don't export any info in tracefs, hence shouldn't introduce any ABI. The intended way to use them is by loading a module that will probe the tracepoints and extract the info required for userspace testing. It is done in this way because adding new TRACE_EVENTS() is no longer accepted AFAIU. The tracepoints are focused around tracking PELT signals which is what EAS uses to make its decision, hence knowing the value of PELT as it changes allows verifying that EAS is doing the right thing based on synthetic tests that simulate different scenarios. Beside EAS, the new tracepoints can help investigate CFS load balancer and CFS taskgroup handling as they are both based on PELT signals too. The first 2 patches do a bit of code shuffling to expose some required functions. Patch 3 adds a new cfs helper function. Patches 4-6 add the new tracepoints. Patch 7 exports the tracepoints so that out of tree modules can probe the new tracepoints with least amount of effort - which extends the usefulness of the tracepoints since creating a module to probe them is the only way to access them. An example module that uses these tracepoints is available in [2]. [1] https://github.com/ARM-software/lisa [2] https://github.com/qais-yousef/tracepoints-helpers/blob/master/lisa_tp/lisa_tp.c Qais Yousef (7): sched: autogroup: Make autogroup_path() always available sched: fair: move helper functions into fair.h sched: fair.h: add a new cfs_rq_tg_path() sched: Add sched_load_rq tracepoint sched: Add sched_load_se tracepoint sched: Add sched_overutilized tracepoint sched: export the newly added tracepoints include/trace/events/sched.h | 17 +++ kernel/sched/autogroup.c | 2 - kernel/sched/core.c | 8 ++ kernel/sched/fair.c | 212 ++---------------------------- kernel/sched/fair.h | 215 +++++++++++++++++++++++++++++++ kernel/sched/pelt.c | 6 + kernel/sched/sched.h | 1 + kernel/sched/sched_tracepoints.h | 52 ++++++++ 8 files changed, 313 insertions(+), 200 deletions(-) create mode 100644 kernel/sched/fair.h create mode 100644 kernel/sched/sched_tracepoints.h -- 2.17.1