From patchwork Wed Nov 16 07:12:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 20742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a40e:b0:83:7221:86ba with SMTP id ck14csp250829dyb; Tue, 15 Nov 2022 23:24:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DkvfYGRW1GV1ylLq1TOXfbSPhADqk2kQotLr17P24PX0UEtWCcPbaWM1Q8vRaZRTn+vcP X-Received: by 2002:a17:906:abc8:b0:78a:643e:6892 with SMTP id kq8-20020a170906abc800b0078a643e6892mr16726286ejb.662.1668583440755; Tue, 15 Nov 2022 23:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668583440; cv=none; d=google.com; s=arc-20160816; b=msucjaFDdEzB/7fjCSJTIHH7Nc7QO+6RCkQ22531jsOHjVdAOdes/st7DtQGC1JF46 35AgBiHAXurk3wMcfsNn2y6Av9mjfEBufu4XDispSA1qNbaR29GewHix9zJXqR1pNukO sSosT0OymCE9DfIrvhbU6NDNNzeJxJkH3+4eZNQlrI+Ut/7D41wMQURRhzUkcb/qDYKp 2q0dpUj+oywVOBULk3U2ExzZ9DbzJKyCB6CWbNqZGVJ+/pic8Qr5rC4VceSk8KFZg5x8 l3/j32DtAvDKIhIDD3iPDfrLCXTaDkkhRUGFo/uAG3aRiNZ/IHXBY6mpN8xryBKh3smR qM/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=rZhTm2sCwM0sd4mB+pucosVTiyv4zqlp4wWT/R2sU44=; b=lDIB6VlIj9ySq/Lq9r6MWlR4AewBzgTbz35k5SAUaS0llQ+1OKK8A0rMXhNRIfalco ES/WsnaUMg3/LLiSvgQ4vU5/3+o1qPLG/WZL4zTBgPfuOtrhGbaPfQNtGFQ1htTEb/yZ Wc8bgqT5kE3wBKUBUHSqwwJ1TmvxV6hZv6WxGBzTK6w5ghXIK2rTrrKNHbqTs3MGLBSO bHwGbL25hzUfFjrNtVDr7Hpkked8hzw+pmiTsRYTl/4EvRCG8H74omGPHQsGCLGagrTG Q7m9c+VxVCR8/ELZyQl8sWB4FOjxUQR/vrvqSXzIPnvxWetU4aUV+edtBXg8oU42vJtc +DIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NeVYHzQS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a50c3c4000000b00458e87a1d83si12774347edf.54.2022.11.15.23.23.37; Tue, 15 Nov 2022 23:24:00 -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=@google.com header.s=20210112 header.b=NeVYHzQS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbiKPHNI (ORCPT + 99 others); Wed, 16 Nov 2022 02:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbiKPHNG (ORCPT ); Wed, 16 Nov 2022 02:13:06 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468141F9C1 for ; Tue, 15 Nov 2022 23:13:06 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id c188-20020a25c0c5000000b006d8eba07513so15519139ybf.17 for ; Tue, 15 Nov 2022 23:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=rZhTm2sCwM0sd4mB+pucosVTiyv4zqlp4wWT/R2sU44=; b=NeVYHzQSh9LPa95VeNyD2erJ5RST3qbDcp39rn2M+WV63VJbLXccHQe0jOp3281h// /6QDJStsa5HeC5719ZaHB7dKPIFqJBqwDDDrFvy2JBQFdO9waPThCkNtqp/L8dsBc4Zl je1aGmwz5ZpLRBYgX26Ln8BGYlh3RTzfhwGsIJO3BVaVIrYXzvr4K4LAAWJxYvGT5+sU 0oQCfAFtFchWmcggIp+rTz96cBrbRZVZUb/rV1zk2Wvp5T3s0OowWJ2KL+bqnDxJ3ky0 cex8DimvjWYivY/yPs+0ZEjDCc3R3QCmzuVRoMis6Igioz0Kmnwbd3NVzMGuYdsRoNg4 BfZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rZhTm2sCwM0sd4mB+pucosVTiyv4zqlp4wWT/R2sU44=; b=MNGhNzzUTRxYLHGqy5PHz/M22tcexP944NxBqb9a6ivfmxbHsbWnz4C54jgv496h3v BXZgBCVJk4eydSdSkOy1zdOTrf1yKmw22MdDgD5vcvqRrwDpmO4rCe82+0SS8u1FrwPZ rkJUlKOrUo27IdCGA25vNmcztXmRnzvtUQ2o0Wu5jofcpmofstQ117dhZznuu+hxxDSj 6DNjwv24pPz+3FAouo9tLr1kGAhndcxCz6HQDRIv2+jnRn7dJALRoIJe0I2S0Dfdg7LH Mli8l5BMewdga4KE+oU5ZH8cLYLxyRDbcml4m7VnZl7o+GMWYOtfEnB8eYa7pntNLaNE Ib/g== X-Gm-Message-State: ANoB5pn3dGvkUzL46N17r62xJPM1e5C2gut7WNSgg4PH01Q1d9AwjxQ3 lL6abBi7PzPnfvIiWiqa53buiHV7fPDN X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:bf0f:58f3:342e:c1ec]) (user=irogers job=sendgmr) by 2002:a81:ad7:0:b0:36f:d14a:6158 with SMTP id 206-20020a810ad7000000b0036fd14a6158mr19697123ywk.325.1668582785931; Tue, 15 Nov 2022 23:13:05 -0800 (PST) Date: Tue, 15 Nov 2022 23:12:56 -0800 In-Reply-To: <20221116071259.2832681-1-irogers@google.com> Message-Id: <20221116071259.2832681-2-irogers@google.com> Mime-Version: 1.0 References: <20221116071259.2832681-1-irogers@google.com> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog Subject: [PATCH v1 1/4] perf list: Fix asan issue From: Ian Rogers To: Weilin Wang , Perry Taylor , Caleb Biggers , Leo Yan , Adrian Hunter , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Sandipan Das , Kajol Jain , Zhengjun Xing , Kan Liang , Ravi Bangoria , Xin Gao , Rob Herring , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: Stephane Eranian , Ian Rogers X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749636549807597063?= X-GMAIL-MSGID: =?utf-8?q?1749636549807597063?= Missed due to the void* being a valid cast. Fixes: c9367a0658eb ("perf list: Add JSON output option") Signed-off-by: Ian Rogers --- tools/perf/builtin-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index aec139f7fbb2..0450fbfd0a5c 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf/builtin-list.c @@ -466,7 +466,7 @@ int cmd_list(int argc, const char **argv) pr_warning("WARNING: hybrid cputype is not supported!\n"); } } - print_cb.print_start(&ps); + print_cb.print_start(ps); if (argc == 0) { default_ps.metrics = true;