Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1272859rdb; Fri, 19 Jan 2024 13:50:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEECnPQwOy6NbrTknjtzKNDzObhKpM4NXjY5rrj3mK0i/5cZ2xVQSwsrdS0ZTIl+NPAlLNR X-Received: by 2002:a05:6359:4119:b0:16d:edaa:921c with SMTP id kh25-20020a056359411900b0016dedaa921cmr486340rwc.12.1705701006043; Fri, 19 Jan 2024 13:50:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705701006; cv=pass; d=google.com; s=arc-20160816; b=aQP4ezJ5ZOnogs48rJwE7wqlnvlb3cU0avWwrPekQ4GiKaXMLBfOp6ACwKliC1bvDt QgusiJ0QJX6v0s7eF9aFROfZLmBrFr1rb/8zAfVRWLHL7dN7GmVyvt0RVIyWeQRt89+e zafUQzQhWuUuJijn2Pp3kDO5XEfeeNCK/TeFD+LyeLmGkMnBo4vf2inU5CQAeSuMWtko XvMv9yefoZqQkXUAUbbDTK3GtmOEGoa0pCl7Ob6XEKfk7R3Fl92hptU5yNMrCP9QElZV 5sbqNuOFoXy7978yIrEdto+wx9urKk5RVrgh8dqzq/Xi0g02HQRoxXl4g8lWELg2tAm+ 9IkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=RjHUcTg8MND0WwJABplo3iwNyI2eRYawZwiqR4g8PDM=; fh=dplkWZ2hXmZoaDvV5VZHRvL9YH20TPMyL5Eks/XBP3k=; b=Am3MVe2S5WD8FaJHV/ShMJ7TQq7U3E4gZWG1AlONs4IUTMpSwCvNDi17LGVcrOkV5P QLARAGjL8j2lWni6gAxFIbwPt0PINunmNoBkKIuoOIO0RGolBroeieer/U/U/hgMcbn7 YBuNgE5qbcsGOCnlxtN7ktzXZJcC7H9HsG9Zc4XfcEbmNhvoLXBpwnlM4Y30dxdocK/E +O+TZDDtwC9GULgYF55wrrwBtLJj60FDkhbzcdjO2vZK9xMdLgN+oy2Ajk7+7sc6BfwG QbqjV9vPKt+QFUh1C/POyyaFPTcwby2DGh27JkKUntQpLg39jOzurotxZWHSJDFkUvUk QvYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="h/VojE2L"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cm14-20020a056a020a0e00b005b91536981csi4189476pgb.11.2024.01.19.13.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:50:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="h/VojE2L"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 A6C03284BE1 for ; Fri, 19 Jan 2024 21:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1BCB58235; Fri, 19 Jan 2024 21:49:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h/VojE2L" Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58BE856475; Fri, 19 Jan 2024 21:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705700997; cv=none; b=letQU90pP/n7PzrsCHHlF0vpHFAV+IjkldKva/LWmAmok5W8yNbcMUY8pBtGl4nonfNkdqBxcNf0fAhNwDg4xZoV1qynfjiGanAHCoFhXrjL6W5MjZ6p/7Jwbz/yQf7GkopoUQVJmX4d8F9eOP5o3OGWuQVuw4zZbw9OE3Vyc2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705700997; c=relaxed/simple; bh=koIw2S+oPoZlSQkpE/YFp4fyt/Afka0yTeTXeAzdT+8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DIBllcqZvvOYKs5wjDV5SHK+nAKoywhT2FvlZdI4iQdBx1vQ+r7keoGNQ0RCt/VNjg6C2cP5WcT006ugmflQHH6Jv0lFsu/tKDM7klFn3/aTRFDamxf9U5t/GB/lv20y5IAmubkkLFtgk5ArlUrTgHkVeuKCOb67/zR9DDYvpUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h/VojE2L; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-28e8c930c01so772444a91.0; Fri, 19 Jan 2024 13:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705700995; x=1706305795; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RjHUcTg8MND0WwJABplo3iwNyI2eRYawZwiqR4g8PDM=; b=h/VojE2LdeKIK/quQZvI3gYmU5FhWY2VRBLSvusv3vRg15WKDWCaq1p9z32ARn0mN+ q+0D3X39/Wru2vQbU55jxKHNksqxyI4CiZYUQyhyMHZi7XLZtjugWM/aS5iACwf8Xctq ONrGXuzxM/K2WO8Gv6krG+pJWuLeWcMLhjwgsBtWdT9qhKb+bRtAFfp5xnDGo/yfP8Ld 9KAxi9jGg6vJ2Edtf8aBXJ+VoRSs23n2NonQzMD9KgrQJg6BDiipfjyKWz9lQvHbMkH2 EdcXN0MixrOBWxSekLYcnADEGM2o+bj0xBjPPKD+nI5LPDj2aif+/TxENog9LczPLi1V 1I5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705700995; x=1706305795; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RjHUcTg8MND0WwJABplo3iwNyI2eRYawZwiqR4g8PDM=; b=rEEA9Z8D6gTzZdWVR5pUZ6Z8x3ttlW8+U0VKNsWCqnZCLmzk8+krTu9juD7MA8wtsM CM5NZzP221knWzPjGO5dzkCOc+aCeJPp8BqYkyoRMeumTVwHs83wkq0sTHF9d0lj5Hk8 de/n4V49gwDuDNjqTIdIrH5CCsAAqith17K3WNviYYnt7vYLeLL55PKNf5CEF9W159/c srFv/BsRxiLY2a+d3MArmy4HmofX6kkR9QGx9Gfy5KHQNRnsxyAMMXDrkSGGZCR/05n6 9LP9PU9wgostFcmjQ+90GLWRVBzS/94lXHfIe9fsBL/ULDPNlQeXor/rthHWDn1vWAe2 nwdA== X-Gm-Message-State: AOJu0YygDvsPCRuwxYjNIklt1TFssyk21ns4XUmh9cXEAMXCk8wYzy9L wZpkrwhWAHtKPKDdwh9y2rX/PIMQKU9nHI1irjQRO2xW0DzYANk9bqiFccXgsLHf21P/C1g4yjE GgB6VolYp/tJ1kZLjX2adcZk2ki4= X-Received: by 2002:a17:90b:3649:b0:28d:290d:8d67 with SMTP id nh9-20020a17090b364900b0028d290d8d67mr459948pjb.29.1705700995564; Fri, 19 Jan 2024 13:49:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240115144727.499349-1-tmricht@linux.ibm.com> In-Reply-To: <20240115144727.499349-1-tmricht@linux.ibm.com> From: Namhyung Kim Date: Fri, 19 Jan 2024 13:49:44 -0800 Message-ID: Subject: Re: [PATCH] perf test: Fix test case perf script tests on s390 To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, irogers@google.com, acme@redhat.com, svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, On Mon, Jan 15, 2024 at 6:50=E2=80=AFAM Thomas Richter wrote: > > In linux next repo, test case 'perf script tests' fails on s390. > The root case is a command line invocation of perf record with > call-graph information. On s390 only dwarf formatted call-graphs > are supported and only on software events. > > Change the command line parameters fors s390. > > Output before: > # perf test 89 > 89: perf script tests : FAILED! > # > > Output after: > # perf test 89 > 89: perf script tests : Ok > # > > Fixes: 0dd5041c9a0e ("perf addr_location: Add init/exit/copy functions") > Signed-off-by: Thomas Richter > Cc: Ian Rogers > --- > tools/perf/tests/shell/script.sh | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/tests/shell/script.sh b/tools/perf/tests/shell/sc= ript.sh > index 5ae7bd0031a8..a6a09ef16e06 100755 > --- a/tools/perf/tests/shell/script.sh > +++ b/tools/perf/tests/shell/script.sh > @@ -54,7 +54,14 @@ def sample_table(*args): > def call_path_table(*args): > print(f'call_path_table({args}') > _end_of_file_ > - perf record -g -o "${perfdatafile}" true > + case $(uname -m) > + in s390x) > + cmd_flags=3D"--call-graph dwarf -e cpu-clock" > + ;; *) > + cmd_flags=3D"-g" > + esac I think this is unusual. Maybe something like this? case $(uname -m) in s390x) cmd_flags=3D"...";; *) cmd_flags=3D"...";; esac Thanks, Namhyung > + > + perf record $cmd_flags -o "${perfdatafile}" true > perf script -i "${perfdatafile}" -s "${db_test}" > echo "DB test [Success]" > } > -- > 2.43.0 > >