Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp796932pxp; Fri, 11 Mar 2022 15:23:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPuzjJiGUuPs4Dnrkz74k/BDTCv8cBP3GzpQ0lk8pHqTZHT8dHKCQLq1iz6A52/G1SrGSn X-Received: by 2002:a65:4845:0:b0:325:c147:146d with SMTP id i5-20020a654845000000b00325c147146dmr10551952pgs.140.1647041019986; Fri, 11 Mar 2022 15:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041019; cv=none; d=google.com; s=arc-20160816; b=ODvIbffiJRKpz/JPFkUic2lCFqTRkE+Yqgi26YsB3KWu94mGmigC8nNOUi0GhUz6Ms ktnCsylcbkSR72ZrtBNY/DjYpR466Qq96KlzNryPI2zYWw4mPgFjS7waar+dE7eVcSLK qk75Q96a95RtRpEVChnvmDVNBc+K+yPzShqqR9zrTIUiLRLLjg1Q2qViIWj2MNtDi+bi EPr1zqJGZ/VfyYBqC+X7+ZR8vcAX7CrqC8SXvlD85JS5p0frK/bkkXyVvXa8HZft1Rs0 0r2FuTzNxx7g0MWrLZCT4xvk1KgXDKhe3WqtK/PIsKHQ0Lj9CS6JtCoXzrBSO/J2CfhF tF2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=r8NGPub2yLP8J/GwfOvg8WvFWw+/jFkgoKD0eVjdXgQ=; b=FTeruFMcVaFq3ckpU0eESd6lTju8DQfJ7UBFhH0pMCnLJb3MGfLnLtHaOrm8U1C5e5 sE4BIDo4jIHxn4x8+bn/dA8EAZDPrZa8ndFCQ/K6zU6uFpI4KNLJpRuw1pN9mkBmoAZL fSZ9LzoDKeeQtv8/gN/3CXpR4B/Cmwf3ynOHSA2iXORQWvpbzIxxjkQaBxHuh24w0O3y xxxJbUrNkr53K+vM900l/UXZzDp+a7V6xaCn8EriVsgHKg4nw1Z9276cmiJRdvK1NwR0 hAT0TW6BCmjoloEW9e6HirEx70iXlFHo/yI4WyNJX8CLsGabpTi0CyhH+ZH4n3klQ1tn aaKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=SWX5Kq24; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c20-20020a6566d4000000b00381057773dbsi4205481pgw.329.2022.03.11.15.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:23:39 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=SWX5Kq24; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3A9EC3AE6D6; Fri, 11 Mar 2022 14:09:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347102AbiCKHFW (ORCPT + 99 others); Fri, 11 Mar 2022 02:05:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347099AbiCKHFO (ORCPT ); Fri, 11 Mar 2022 02:05:14 -0500 X-Greylist: delayed 339 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 10 Mar 2022 23:04:02 PST Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CC4CD300; Thu, 10 Mar 2022 23:04:02 -0800 (PST) Received: from iva8-4db386e07e2e.qloud-c.yandex.net (iva8-4db386e07e2e.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:951e:0:640:4db3:86e0]) by forward104o.mail.yandex.net (Yandex) with ESMTP id F01DA65D3543; Fri, 11 Mar 2022 09:58:18 +0300 (MSK) Received: from iva4-b3ebd202b141.qloud-c.yandex.net (iva4-b3ebd202b141.qloud-c.yandex.net [2a02:6b8:c0c:4e8e:0:640:b3eb:d202]) by iva8-4db386e07e2e.qloud-c.yandex.net (mxback/Yandex) with ESMTP id bRRjuwgxmY-wHeaBClW; Fri, 11 Mar 2022 09:58:18 +0300 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1646981898; bh=r8NGPub2yLP8J/GwfOvg8WvFWw+/jFkgoKD0eVjdXgQ=; h=Date:Subject:Cc:To:From:Message-Id; b=SWX5Kq24ysI5oBLPhKYLAQmqUdAo1o/0t8oesx+AztTuQwfhUgWk4QQ30DwHNNvi8 Vm5GFni0dqhFkfWfy9cF3oBweSkG/zADmtdlL1sfuIYFFaEttcNjn89wCC7eVK6q8r v/SpZ2iYNSnGRUN30ejtk5+pg5xxYHJhXbYc9iTY= Authentication-Results: iva8-4db386e07e2e.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Received: by iva4-b3ebd202b141.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id QxfEVveCLI-wGKOa0GN; Fri, 11 Mar 2022 09:58:16 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Nikita Shubin Cc: linux@yadro.com, Nikita Shubin , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Paul Walmsley , Palmer Dabbelt , Albert Ou , Mao Han , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] riscv: Fix fill_callchain return value Date: Fri, 11 Mar 2022 09:58:15 +0300 Message-Id: <20220311065815.9985-1-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Shubin perf_callchain_store return 0 on success, -1 otherwise, fix fill_callchain to return correct bool value. Fixes: dbeb90b0c1eb ("riscv: Add perf callchain support") Signed-off-by: Nikita Shubin --- arch/riscv/kernel/perf_callchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/perf_callchain.c b/arch/riscv/kernel/perf_callchain.c index 1fc075b8f764..7aca6a238173 100644 --- a/arch/riscv/kernel/perf_callchain.c +++ b/arch/riscv/kernel/perf_callchain.c @@ -68,7 +68,7 @@ void perf_callchain_user(struct perf_callchain_entry_ctx *entry, static bool fill_callchain(void *entry, unsigned long pc) { - return perf_callchain_store(entry, pc); + return perf_callchain_store(entry, pc) == 0; } void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, -- 2.34.1