Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FDF1C64EC7 for ; Sun, 12 Feb 2023 03:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjBLDUa (ORCPT ); Sat, 11 Feb 2023 22:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjBLDU2 (ORCPT ); Sat, 11 Feb 2023 22:20:28 -0500 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C3AF1631B; Sat, 11 Feb 2023 19:20:25 -0800 (PST) Received: by mail-qv1-xf31.google.com with SMTP id d13so6352251qvj.8; Sat, 11 Feb 2023 19:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1676172024; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jV1+eUp6/la6bHJXVKZFSm553P2HVk0e+WKQfNoEdNc=; b=j8FfzjjffbHe996BSSizWFQR8U1LbnObkHS0KW8Sxe+1TLrVLo8zfGGQInnU6xhzbH gMukGPH+cudoOQUyCtBPxH09ZU2QkK/nJH8ttz5+m/XxBZSzTkAF4Ap4BYSEh5CyWXu5 Oapp+5NFd6/X03kKRS+eEcIGQbsuVSOR0T6TXsKtH1llkFVNF2hbgFGkDXAYC3CUbScz uMe/G49BgtdoBhJd/CQtnIiXZwA9o8VLDw6QjV16jK+tWqv8k8XLX8azqyCTZjqVm4rG N41ZuE+xIPxbYbnKDnOYkXcT+j/J6svp22SBMNzQA2X2XCNnyzisAN4pmaKROvaZqJ5G VvlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676172024; h=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=jV1+eUp6/la6bHJXVKZFSm553P2HVk0e+WKQfNoEdNc=; b=Bt8yVgZsRvxq9R+CaQt7/tCVkxNE/PV6uV0ylvoahU+qXgG8oA2L/RZa1SsA3+Ywf3 vyQvDRGmH+q0pX+MgcnDkvpXGHEFg4IDFy2jg+oHSNkf+BAb7L4IOo06wiQkDhCp+KBP vzozHY5d415FYt55JH0RDwetglfbezbRvK+7qRZh494uFxgi218gobKg5Jm2A4a1uZzU deABIG02jjg+JqvHSC4NqjIRUrLAJLrdQf2otCLWeytCO093NdT3JaTy8MATfz+Hrn0u ztOwrD/EUURAdkNT/i6XG6FeAwX4HVoGx6geWiEz2CVhff+CgKuSX50xdaUPgDTyIkqA HP+A== X-Gm-Message-State: AO0yUKVeqGsAWsGBEGr5w69cAIIGUaQwQc9nwT/clFZlk/QC1Mc4r1ku Vz65ALgO7gXCRTRs6q78K4SNR6NbUKltBk7iXH8= X-Google-Smtp-Source: AK7set9FOLosm1uHLls6cm+ufXyr97cSU/KvUyJyDOaMrnKJORlpTgb//i4VEJg64RftXvO3KX+HEdzTDo0amEJz+vU= X-Received: by 2002:a0c:e003:0:b0:56c:f4:989a with SMTP id j3-20020a0ce003000000b0056c00f4989amr2018254qvk.64.1676172024552; Sat, 11 Feb 2023 19:20:24 -0800 (PST) MIME-Version: 1.0 References: <20211120112738.45980-1-laoar.shao@gmail.com> <20211120112738.45980-8-laoar.shao@gmail.com> <08e1c9d0-376f-d669-6fe8-559b2fbc2f2b@efficios.com> <20230211165120.byivmbfhwyegiyae@airbuntu> In-Reply-To: <20230211165120.byivmbfhwyegiyae@airbuntu> From: Yafang Shao Date: Sun, 12 Feb 2023 11:19:48 +0800 Message-ID: Subject: Re: [PATCH v2 7/7] tools/testing/selftests/bpf: replace open-coded 16 with TASK_COMM_LEN To: Qais Yousef Cc: Kajetan Puchalski , Mathieu Desnoyers , John Stultz , Alexei Starovoitov , Andrew Morton , Network Development , bpf , "linux-perf-use." , Linux-Fsdevel , linux-mm , LKML , kernel test robot , kbuild test robot , Andrii Nakryiko , David Hildenbrand , Arnaldo Carvalho de Melo , Andrii Nakryiko , Michal Miroslaw , Peter Zijlstra , Steven Rostedt , Matthew Wilcox , Al Viro , Kees Cook , Petr Mladek , Lukasz Luba , Qais Yousef , Daniele Di Proietto Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 12, 2023 at 12:51 AM Qais Yousef wrote: > > On 02/09/23 23:37, Yafang Shao wrote: > > On Thu, Feb 9, 2023 at 10:28 PM Kajetan Puchalski > > wrote: > > > > > > On Thu, Feb 09, 2023 at 02:20:36PM +0800, Yafang Shao wrote: > > > > > > [...] > > > > > > Hi Yafang, > > > > > > > Many thanks for the detailed analysis. Seems it can work. > > > > > > > > Hi John, > > > > > > > > Could you pls. try the attached fix ? I have verified it in my test env. > > > > > > I tested the patch on my environment where I found the issue with newer > > > kernels + older Perfetto. The patch does improve things so that's nice. > > > > Thanks for the test. I don't have Perfetto in hand, so I haven't > > verify Perfetto. > > FWIW, perfetto is not android specific and can run on normal linux distro setup > (which I do but haven't noticed this breakage). > > It's easy to download the latest release (including for android though I never > tried that) from github > > https://github.com/google/perfetto/releases > Thanks for the information. I will try to run it on my test env. I suspect the "systrace_parse_failure" error is caused by the field we introduced into struct ftrace_event_field in the proposed patch, but I haven't taken a deep look at the perfetto src code yet. > Kajetan might try to see if he can pick the latest version which IIUC contains > a workaround. > > If this simple patch can be tweaked to make it work again against older > versions that'd be nice though. > > HTH. > > > Cheers > > -- > Qais Yousef -- Regards Yafang