Received: by 10.223.185.116 with SMTP id b49csp1070474wrg; Fri, 23 Feb 2018 11:22:40 -0800 (PST) X-Google-Smtp-Source: AH8x225/sgIvLmiz6TDSCEBd/IRTFRaWjC3h5iyJvuAtHO7DFgdHCSMTUXGk1wvWwjRatxjTDhSr X-Received: by 2002:a17:902:bf4a:: with SMTP id u10-v6mr2571957pls.416.1519413760644; Fri, 23 Feb 2018 11:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519413760; cv=none; d=google.com; s=arc-20160816; b=dblF3KULZuu/jfPFMun+VTZL3SuCfHBAdCHvGmyQ+6PE7qfIJ6eI1xxHVuzAiRmkUQ gWBby0JfGoN8/qXS/gWbjd1uMQtiuEV+bWuFo/SoM2wg5yZmov1fjGTZjWDpR5K8H/5F lX3RoCDf9s26ibvnpU6uALoh/oSGAAL0OMn2AGB/hg2xYwt53C3cs8sC60Tl9twQ/i5x NipwMaWYCAHDNWyeeOUKW/nRqpAI7E+vLfusaBXod9ZqqTNynmsHaH48yEBfYCyQoFOl 1v83Lkgi5Nw3i0HPXd2EEVx37k/HLadwXESR6+CKWgrieNuUj6cgutikrH/niRWnI7OP +ykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=I5tSw2jXqWlVwknUGGZ0TtWZckId/U1kCYXpS6zJeZc=; b=FaNklIb1NWcgJyyVKqNQLK7714OZJg+tm0uWyU2h2Eufl+PoYZ96m4ESIa81NoIuJd 21EAJocxRhr1RyUCbwa7w+3Qg4QD20HNj3PGzqyys/ZL9ObE75rYfASvUi4G4YhTe3ga us284j+9gcIGCBGzMU+7+xClcT6+lRRa4jq1Qsm96tEPwQc5SFAARpzdKjBYFEj8HTaw BPce5kDllhOS38U4oWTcGHb6y5AzAuFDRg9LOT1QlYtTwmJckmEiHLfZ0xPEqzv9msEC O+5Uzh11jiiM2N0s+iwO3A/KIP+XUOUuSWQ657DWIh1K2NT2qdkCTT75SIn55b2F047a 04sw== 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 a66si2258995pfl.219.2018.02.23.11.22.26; Fri, 23 Feb 2018 11:22:40 -0800 (PST) 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 S964861AbeBWSx5 (ORCPT + 99 others); Fri, 23 Feb 2018 13:53:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47552 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964828AbeBWSxz (ORCPT ); Fri, 23 Feb 2018 13:53:55 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B046A1159; Fri, 23 Feb 2018 18:53:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Hendrik Brueckner , Martin Schwidefsky , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.14 075/159] perf test: Fix test 21 for s390x Date: Fri, 23 Feb 2018 19:26:23 +0100 Message-Id: <20180223170752.679626816@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170743.086611315@linuxfoundation.org> References: <20180223170743.086611315@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter [ Upstream commit 996548499df61babae5306544c7daf5fd39db31c ] Test case 21 (Number of exit events of a simple workload) fails on s390x. The reason is the invalid sample frequency supplied for this test. On s390x the minimum sample frequency is much higher (see output of /proc/service_levels). Supply a save sample frequency value for s390x to fix this. The value will be adjusted by the s390x CPUMF frequency convertion function to a value well below the sysctl kernel.perf_event_max_sample_rate value. Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Martin Schwidefsky LPU-Reference: 20171123114611.93397-1-tmricht@linux.vnet.ibm.com Link: https://lkml.kernel.org/n/tip-1ynblyhi1n81idpido59nt1y@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/tests/task-exit.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/tools/perf/tests/task-exit.c +++ b/tools/perf/tests/task-exit.c @@ -84,7 +84,11 @@ int test__task_exit(struct test *test __ evsel = perf_evlist__first(evlist); evsel->attr.task = 1; +#ifdef __s390x__ + evsel->attr.sample_freq = 1000000; +#else evsel->attr.sample_freq = 1; +#endif evsel->attr.inherit = 0; evsel->attr.watermark = 0; evsel->attr.wakeup_events = 1;