Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp266357pxx; Wed, 28 Oct 2020 04:31:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEL3HWWuWM2akPH99Z3fOhhFQv5k8XmwKyoCXRLz0r+ubC1IKxqtlx6EjNLMhDZpz08kkB X-Received: by 2002:a50:e887:: with SMTP id f7mr7047110edn.276.1603884702659; Wed, 28 Oct 2020 04:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884702; cv=none; d=google.com; s=arc-20160816; b=SoN3/8UqVho9szTQURT7C/mMORsHEeHydKFRay8dDm5u1BjLd5yy6lW+/CdVJrxcJ0 Ow7tTyYVn6E2Piik2MHTOoFI9yDokrMcFjhigQ3vvaYnLbNH+FCWAFqPt1gvy7Kfw1v7 0VPWzwH6oklxCgpGuFpVfbEpIng53a10d4nKO+9AYWH1SYwdfs2YGBbbrXdsNShihu5S djS0aEmVGJyxUsTrQO5dAB4O2q5NKaFpPTVXYH/6mWuX/DqGYaOz4IAH9dfVPAFUKZBj 1PSI59PpDurAaOQkaQJQxkb066U+s/ridyR1HUgELNmPOeTHRHdIZKNq2JGpHubCTFKO cm0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kXXbBYlzgNKk+kHmgqL0brCB+zzSiaaymZlzYS6mMQc=; b=S2c9NOXyVp1Poyw3zxoIiRfHOgUuFkGdZBuEMTVgvMmD8nxmGoSFChHGppD5l/oXt0 OvNwHYIWP5zyw8QV8sCQr2C4PMMpC7qAy6zxlw/3Cy4RCYQ692genDSYAerfIq9O1PYD ZNq1imM+aJy+iHDBwaK3IjbMop9fQvBjlHTeaWycRBYYfZa53e1ChwO9w3JnZ0iiEX8R eeyH3GJElhMwHKEKPxYosTV9XoLAdL1PKu9OEiP13kGB+WUAW9CsKxyKFwAOfLk9bYv3 0vw1dzbpLz4IPbY49BJ42ZHdyWmCqWUQZqhl1ctnuZNtIQzGeIb6n9nDTyoCGSHjGoYj UgDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LQFZ+wDO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2969573ejk.629.2020.10.28.04.31.20; Wed, 28 Oct 2020 04:31:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=LQFZ+wDO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793654AbgJ0PHk (ORCPT + 99 others); Tue, 27 Oct 2020 11:07:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:36706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1789672AbgJ0PC3 (ORCPT ); Tue, 27 Oct 2020 11:02:29 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 65017207DE; Tue, 27 Oct 2020 15:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810948; bh=nALgSeWdz1PUQSaQqu/bwnyyDHbDE6gOQVLeheW9+KI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LQFZ+wDOYOsFJCytnnrtWV27vzvL1ZoLlms366jpSzlRV9RDhzHfA9GZBz9nE8/lN 2QmO4Ge2IzWBU46VdnMK0GM2b6n/+aEyVF0QUMPBUnFpAmjIIftMdjKBvGyU/CGf4A 44VRapRY3afwEAZIb5gnJdz9CooFwtrS5omaGHRk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Tom Zanussi , "Steven Rostedt (VMware)" , Sasha Levin Subject: [PATCH 5.8 320/633] selftests/ftrace: Change synthetic event name for inter-event-combined test Date: Tue, 27 Oct 2020 14:51:03 +0100 Message-Id: <20201027135537.687342109@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tom Zanussi [ Upstream commit 96378b2088faea68f1fb05ea6b9a566fc569a44c ] This test uses waking+wakeup_latency as an event name, which doesn't make sense since it includes an operator. Illegal names are now detected by the synthetic event command parsing, which causes this test to fail. Change the name to 'waking_plus_wakeup_latency' to prevent this. Link: https://lkml.kernel.org/r/a1ee2f76ff28ef7166fb788ca8be968887808920.1602598160.git.zanussi@kernel.org Fixes: f06eec4d0f2c (selftests: ftrace: Add inter-event hist triggers testcases) Acked-by: Masami Hiramatsu Tested-by: Masami Hiramatsu Signed-off-by: Tom Zanussi Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- .../inter-event/trigger-inter-event-combined-hist.tc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc index 7449a4b8f1f9a..9098f1e7433fd 100644 --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc @@ -25,12 +25,12 @@ echo 'wakeup_latency u64 lat pid_t pid' >> synthetic_events echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts1:onmatch(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid) if next_comm=="ping"' > events/sched/sched_switch/trigger -echo 'waking+wakeup_latency u64 lat; pid_t pid' >> synthetic_events -echo 'hist:keys=pid,lat:sort=pid,lat:ww_lat=$waking_lat+$wakeup_lat:onmatch(synthetic.wakeup_latency).waking+wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_latency/trigger -echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking+wakeup_latency/trigger +echo 'waking_plus_wakeup_latency u64 lat; pid_t pid' >> synthetic_events +echo 'hist:keys=pid,lat:sort=pid,lat:ww_lat=$waking_lat+$wakeup_lat:onmatch(synthetic.wakeup_latency).waking_plus_wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_latency/trigger +echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking_plus_wakeup_latency/trigger ping $LOCALHOST -c 3 -if ! grep -q "pid:" events/synthetic/waking+wakeup_latency/hist; then +if ! grep -q "pid:" events/synthetic/waking_plus_wakeup_latency/hist; then fail "Failed to create combined histogram" fi -- 2.25.1