Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3365302rdb; Tue, 6 Feb 2024 15:59:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYh+RQPk0gjT62n4+6ZL8xwqFmPxwAiFl4UUggiW/Rx5imit2IS/OCH/TGgQx1gaNV1fRq X-Received: by 2002:a05:6512:ea1:b0:511:55b7:837f with SMTP id bi33-20020a0565120ea100b0051155b7837fmr3774409lfb.5.1707263958694; Tue, 06 Feb 2024 15:59:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707263958; cv=pass; d=google.com; s=arc-20160816; b=m4jsbKY279O8JqZfcBoAo2Ri9oSS5F2NamNMhTaW1+yZfkLslnUMclcxQ+vCKPuEIC x+vV2gYx1xgaWF9vviVPh3TzKlnTsxjOPehNSyOXfcNiNCSdye080kh1Cqm4yE1JgzxY mAESd1xBerMtVvCXQgePejjPaonzroZubJ+C5d7kF1IgN2hQy2z887PwOS0V5KJPICFY eRtA8s2z1NDmT/068jqaJnkcqE4nEYwPsU1Yd9OFjA9PQws24sfekts81xxMA2O5Ybc6 aUKfLYz6vHDy+JXOxGh0fjpKUDDP8lAQMNaXVANI2/CVOmZr67OcYQtHH6w7YMT5CiOQ Vx+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=BcvFG/3vRgvYTER/Aj2IaMSgKq/80efIXBEBLE9WTco=; fh=gm9ZyVIVz3I12C//XccvYbMrGgXxasyddKdvwBFzZ5s=; b=LmqteRe3+6dB/iCXFWhvpjttxECTpnE/Tq9lKaqFtDUVGxz4DaavT4BTQ7N/5TbMSC 4Gnwm0yO2IEAK7/x343GLO4tzjsJ5EPuhDc/zwKIAjVAaWtDB4fPp4D2ykH459xtnM0+ bmiRN+Ig5ZyeIgh+OKwWPAfXjgNQZ07V8zVtgVa/iaSe6YbwqlyohdSmBE8KXdUI3nEv RBMR1UU8a9kfDY2r3UMbsO485ouKwlm7SaHVIUSYiSGwRrSyZLnUAy9a3O8/SZA5IFih ThFqQ87nYaFMOgG2dLv0gWjEL4+14RITDA48P7MY3o1/wOAJ3SW0PWIL41AeeLSttS4L 8bUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1dPSKB+G; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-55745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWybZdiQO0xmM7728H57PQs7C6VIoK9Gkw4CAIG7J406hLhFfUn57Jn5sHQU+F+793V1eF/5nvxFVly7OWE3/9jy4Erk/Z58xwXUcHtDg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f12-20020a170906560c00b00a35bbaef253si103580ejq.446.2024.02.06.15.59.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 15:59:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1dPSKB+G; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-55745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 60D3A1F243F9 for ; Tue, 6 Feb 2024 23:59:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A56C61CD1E; Tue, 6 Feb 2024 23:59:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1dPSKB+G" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 659971CD2E for ; Tue, 6 Feb 2024 23:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707263948; cv=none; b=kdcXzpu64ZLtvSci2dogm8m4RzHP56HjzMEI4JpheDfbtdA46NixuXZjpwl9EF3VvBrSz/A1wUNiIxWr2vVw1URfP1zivBWHVRDwrfbfaqOYKDso5cZCETro3o3bmI2HFaZKSKBiHnjYZkz48Bq/xk0BwlFJ4vKd8CNK72E6Mj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707263948; c=relaxed/simple; bh=J/QN8zKxBRKEaursFD0Y5X672RX9T9JXQd5PC4sd3i8=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=FTCBWVq3KTYzJ060zi7s/G3+wg3i0576d0NbXB9MVfwgMJuqO6b8HFsWlePANk2Z+YEhvcmDAa3GodyRGlW0Z1Ql3JPJD6cnPG5cTNK5gH1gazPMkpv/Li5BzXBywfoXpdHQe5HExaCQCiquVW5WaY+bu7xTXPNG3ZXJyurhU1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1dPSKB+G; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-5eba564eb3fso1294477b3.1 for ; Tue, 06 Feb 2024 15:59:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707263946; x=1707868746; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=BcvFG/3vRgvYTER/Aj2IaMSgKq/80efIXBEBLE9WTco=; b=1dPSKB+Gel2PpzNtC68eR1GoVZz8G4/qhp3TNd19ewayqAKBQstja4NhNFgYzxSMtX Vwujk0nVd/lgGH9QOFCWZ0RhAPtMRAIX3EkuBWppxasETtofXu/SVpgaEVdk9gcNOUjc zawiFIaGUooh4uV9rXVxfaXVs+avyW1iaEUz45JhEnJDYUDnWRxXhgGyQzfctwQPoUfa 9jdV2BqD1x5iN8gWDmc0R/vm2AykA/u7LeVAtn9KeN09kbjFvEWuUE3I4Vx5fc4T8zoP 7faqPed2mHTngj54MxGrhQ/95xextfQ3kA1A/GW9n/NA/pytXeU/I8lPKa6HEBFg/9Zo wGaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707263946; x=1707868746; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BcvFG/3vRgvYTER/Aj2IaMSgKq/80efIXBEBLE9WTco=; b=pBZEAPnujcdvuRozLoko6ObQzc3RQuWixp+rBibhrRTuBbO3WS4DbYhGGLcbO2INM3 QbjCztF5bMBgGu6svnJvJgp/GhjeS84gxedMr7NVL9lZFJyCPFA+o2xto5EchtmUclWx 3qYoeiHKng9oKxHQsmOOLkQcczMt6v20FXE0HgO/p+zJIRfNoslDCXI5UO5GEy++RZU5 HXFWgBF3TxeulWPqAaGAbSfJn6n8E83wI8uRr1QpsiHJbaQtYrqjN2uXqkEvoehaFNNS OBFA5oziYmQnmvf9EdME6EctqGFvTs10dfFUXP67H+rwSMJGacBkXsBCmpIiP1LkC5iw iA0A== X-Gm-Message-State: AOJu0YzbH17i2jhgnZ0KQvyN2hcRMiS6T9ijl7mtksoMUCSkchFCo1Es dCVjde8vKzuVqzQNZ2kBZbTbSai4rIInTLJo54Wvj7GrAQfqjxgCJ32HTI8/GFLRgYaCDvqpe/4 yAOnp1A== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:7842:a360:67f8:5683]) (user=irogers job=sendgmr) by 2002:a81:9b82:0:b0:5fb:7e5b:b87f with SMTP id s124-20020a819b82000000b005fb7e5bb87fmr642235ywg.1.1707263946437; Tue, 06 Feb 2024 15:59:06 -0800 (PST) Date: Tue, 6 Feb 2024 15:59:02 -0800 Message-Id: <20240206235902.2917395-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Subject: [PATCH v1] perf kvm powerpc: Fix build From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Leo Yan , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, sfr@canb.auug.org.au Content-Type: text/plain; charset="UTF-8" Updates to struct parse_events_error needed to be carried through to PowerPC specific event parsing. Reported-by: Stephen Rothwell Fixes: fd7b8e8fb20f ("perf parse-events: Print all errors") Signed-off-by: Ian Rogers --- tools/perf/arch/powerpc/util/kvm-stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/arch/powerpc/util/kvm-stat.c b/tools/perf/arch/powerpc/util/kvm-stat.c index d9a0ac1cdf30..c8357b571ccf 100644 --- a/tools/perf/arch/powerpc/util/kvm-stat.c +++ b/tools/perf/arch/powerpc/util/kvm-stat.c @@ -114,7 +114,7 @@ static int is_tracepoint_available(const char *str, struct evlist *evlist) parse_events_error__init(&err); ret = parse_events(evlist, str, &err); - if (err.str) + if (ret) parse_events_error__print(&err, "tracepoint"); parse_events_error__exit(&err); return ret; -- 2.43.0.594.gd9cf4e227d-goog