Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp190040pxa; Mon, 10 Aug 2020 23:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR+cGVdG6kUtfxwrfBSIq6T0Q3FMzJ/IikpwPwwtGYL1OZV71ZHGC7ywHwlXA1Stk9VdfF X-Received: by 2002:a17:906:89a:: with SMTP id n26mr16977427eje.363.1597128243780; Mon, 10 Aug 2020 23:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597128243; cv=none; d=google.com; s=arc-20160816; b=Ez6FR+wFuQGNisP673PWLQOM8i1sBqwnlLerRsBS/oQjmdOsYzUCmH8/BLlEORLxI2 c9TelZSN01vkI03mDeK89MuP2/DOBYUiuRPQNSbDtxR6RXj+F9G7GgWKyndvpynW1DrA LRzr3fciucX87+dAeVoMjxdTyvR9l9TluE8KHn4yBLAXSbSkX8oFzTN0HEvNc3WplC02 izKLHJbaYPIcaQ/kmgUdwdzf6W7GgvgjBYKrWfPPfAWAtJ31myaIKXrAoEFxfFncJTPk XCsyVzXRMZ/BbyEikA2kLtBglDkzeS4NWJKLHBjKDfC4MZG1CuRA014z4K868BjI7jg8 NkJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=3xx6c4zzK7ZLJ7li1HjrAVE6Hwda24Z+sgWp9kk47x0=; b=VYwcHlr/bFBeIOapJ3tBtuSNwtpcJ2KBDPbCfDHOPj/pS+XUdcvxe9+ct8PRuRT/1i xWWP0UirrXyz8R7F++exWwxmmZzVh2ULwXtnVMlJOA31rmSsvU+/Sj3fsOt9/HEQR0Lu OQeqRErJA8gqug2b5npUHAQ/KjTNNifAbitGI3V+EoYks7C4NikOZ5mbtIk+x2Ax7UOk CcQqnpiObLrkbixyMckBfl9t8tOXxK+t1nFypcQrsxbMpK2FpF28GiZeYxQVnGU4adlu ieFhaaGrtCN2VUzbWqTcqmnayo3jH51sG5c+JIvrdkfpczg0C+Zx9gSfV71D6jVoEqrN B+xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si5771022ejx.78.2020.08.10.23.43.41; Mon, 10 Aug 2020 23:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbgHKGm6 (ORCPT + 99 others); Tue, 11 Aug 2020 02:42:58 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42994 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727066AbgHKGm6 (ORCPT ); Tue, 11 Aug 2020 02:42:58 -0400 Received: by mail-wr1-f66.google.com with SMTP id r4so10359917wrx.9 for ; Mon, 10 Aug 2020 23:42:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3xx6c4zzK7ZLJ7li1HjrAVE6Hwda24Z+sgWp9kk47x0=; b=NUEE72wRKIkEbY5qV+kHbiZSz5SRD/fAwjvevVmUouPuuxdDWACFQ9rLxqXIaLdi6t j50xFssZYnO5YvQ09wBpFzoGQaN4CY0Okbd4fMvhqxi9+4u/PPspOWcoc6sMufVwuhn/ udqWv0jF11Gg9BKdD6+7IctG+0tNXyU4OKIYWo/YRsrRu9piq6aP3AlUx0dl8IBc8Dkl b8BuCdUy6nesX+Dgol4bXb+2iEHfIQHRKsMVQFTJeFIkQw9oByKO5GNFZa81j2wry7VO 1QWcHXe7fvcuT2mT15sljIVzdUTjWB4Gf/60VJQ/ALnydFjTiY4SXVUq3CSAH9p2Pv8C qh4Q== X-Gm-Message-State: AOAM532fEtnxJ+eowFdiKI+ddaFGbybLcVqDEvAAhDKxLDOIMzMkegnN GzalMYsb7VYvTWUZjlCymE6Muk6FUPdUKAxZUjovBg== X-Received: by 2002:a5d:6584:: with SMTP id q4mr27708002wru.21.1597128176461; Mon, 10 Aug 2020 23:42:56 -0700 (PDT) MIME-Version: 1.0 References: <20200807164844.44870-1-dsahern@kernel.org> In-Reply-To: <20200807164844.44870-1-dsahern@kernel.org> From: Namhyung Kim Date: Tue, 11 Aug 2020 15:42:45 +0900 Message-ID: Subject: Re: [PATCH 1/2] perf sched: Prefer sched_waking event when it exists To: David Ahern Cc: Arnaldo Carvalho de Melo , linux-kernel , Jiri Olsa Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Sat, Aug 8, 2020 at 1:48 AM David Ahern wrote: > > Commit fbd705a0c618 ("sched: Introduce the 'trace_sched_waking' tracepoint") > added sched_waking tracepoint which should be preferred over sched_wakeup > when analyzing scheduling delays. > > Update 'perf sched record' to collect sched_waking events if it exists > and fallback to sched_wakeup if it does not. Similarly, update timehist > command to skip sched_wakeup events if the session includes > sched_waking (ie., sched_waking is preferred over sched_wakeup). > > Signed-off-by: David Ahern Acked-by: Namhyung Kim Thanks Namhyung