Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5874618rwb; Mon, 5 Dec 2022 05:23:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6MXshI/w0EQRAl43tivvtWcPku73GUebFTB5blFMW48KoOunWTSQr7MHaB9rhefIZiMBSs X-Received: by 2002:a17:906:2481:b0:7b9:a749:e70b with SMTP id e1-20020a170906248100b007b9a749e70bmr46793947ejb.567.1670246595138; Mon, 05 Dec 2022 05:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670246595; cv=none; d=google.com; s=arc-20160816; b=i+Hb+DIzbVUblXixCoCO7CVC5WbBUeraHcAS+8BdG2v86udoIMTnbuS0V4vyKCi+5F +BhGcZPXx1GIMT+iHVJwQemPGp+fkCHcWebaut2w6Gy9WY+LOghPyD8lKt+Cold27xO4 fRFrBiSRovQX+fmLoBtAlc1NMEHlQLniUwq6Thy+FqydEDX65EF9X9u5z0DzSJil+KW+ PaXJjz15NTJ0nUQcbJCmdEtpd6aH5KIDCWu++b0nHcQCiX4O8ItSzqJGp4hLq3a+G/7T K42rpi6Zu2UkPLgHW2FKrLIxlnHBONq5wzxBgOX+CBQoSuC6/akO5Y8otXhp/AdLNPwl /Vdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Wzlj3m6kGHby9wukiy71dHij/9teUhNlBIctAh5C+WQ=; b=Q7jcdfgSErsS1QPQ5Sdhwwo5RE+wARRUpFqHrXItlFbUMOahqgxnZ7+Ij6KyQyk2wI DLlZQMVH6hfIFS0282o2uuNqtKMx3vFfEsrbF6ihTBi8CTQFPbD61KsheEQt5FgPT6X4 DbQpffONA55b9STJhpDOt74bSnLTlXkbFK8EyNuZ4P8cNhgtJlQCe/DXO0oCF7DTDEsh 2M2qglsbQFQ484EvmqsLF5J4Dx2WQPLfOEtkllJVcFtQZ1htUFvCW4JBwQWadUwkmKJY cAvY1gl41Fst3yP8AmzdbDZ48tDpuQxHROKRL/t21/3z6oMqTQ08b20y5zTeLhpbVZg8 FMrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BcH8JBk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a056402440900b0046b999e8854si14273217eda.527.2022.12.05.05.22.53; Mon, 05 Dec 2022 05:23:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BcH8JBk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbiLENHq (ORCPT + 81 others); Mon, 5 Dec 2022 08:07:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbiLENHo (ORCPT ); Mon, 5 Dec 2022 08:07:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6DB72FB; Mon, 5 Dec 2022 05:07:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 28DA6610A2; Mon, 5 Dec 2022 13:07:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 482DDC433D6; Mon, 5 Dec 2022 13:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670245659; bh=+Cz193U0b3uUSIcs+BNCWjvCYp/tWS5mm3h5uD73XO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BcH8JBk2LrNBZWvd17e1fMz7nSeYQuk9OISUT09m3KbYLxCntqDFjs7fzRB54KEfa jFltoAZbNN445Y/WbjIJTqjzZgQuPcOBFeL+jGkb2H16aiG06USCk+GrSMyWQoFYoS m0X7hpld8q/3fIVu6fpffU4BAG2WU/BIT/fnBKpNyNr+U+Pq77ThLwG/QvGEg905Le PtEjZANouSuXw3qqiJAUVbw/4xPOWpx//QYFkrASa6/41Eyif9cGroCC2i9QTPEte8 OuKCsiEDh52KFF5qjjyUz8W8iBKwG1u01VoqG7TUmsVDyRxAVScaFgC411AWEBukdk Y34n0Lkc7jAIA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0169040404; Mon, 5 Dec 2022 10:07:36 -0300 (-03) Date: Mon, 5 Dec 2022 10:07:36 -0300 From: Arnaldo Carvalho de Melo To: Athira Rajeev Cc: James Clark , Namhyung Kim , linux-perf-users@vger.kernel.org, LKML , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers Subject: Re: [PATCH 2/2] perf stat: Fix invalid output handle Message-ID: References: <20221130111521.334152-1-james.clark@arm.com> <20221130111521.334152-2-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, Dec 04, 2022 at 10:38:28PM +0530, Athira Rajeev escreveu: > > > > On 01-Dec-2022, at 3:36 PM, James Clark wrote: > > > > > > > > On 30/11/2022 18:32, Namhyung Kim wrote: > >> On Wed, Nov 30, 2022 at 3:15 AM James Clark wrote: > >>> > >>> In this context, 'os' is already a pointer so the extra dereference > >>> isn't required. This fixes the following test failure on aarch64: > >>> > >>> $ ./perf test "json output" -vvv > >>> 92: perf stat JSON output linter : > >>> --- start --- > >>> Checking json output: no args Test failed for input: > >>> ... > >>> Fatal error: glibc detected an invalid stdio handle > >>> ---- end ---- > >>> perf stat JSON output linter: FAILED! > >>> > >>> Fixes: e7f4da312259 ("perf stat: Pass struct outstate to printout()") > >>> Signed-off-by: James Clark > >> > >> Thanks for fixing this. I'm not sure how I missed it.. :( > >> > > > > It seems to only go down that path on some configuration. At least on > > x86 the test was passing fine for me. > > > >> Acked-by: Namhyung Kim > > > > Thanks for the review! > > Faced same issue on powerpc. Tested with this change and it works with this patch. > > Tested-by: Athira Rajeev Thanks, applied. - Arnaldo