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 4CC6EC64ED6 for ; Sat, 11 Feb 2023 16:51:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjBKQv3 (ORCPT ); Sat, 11 Feb 2023 11:51:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjBKQv2 (ORCPT ); Sat, 11 Feb 2023 11:51:28 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B8ED515 for ; Sat, 11 Feb 2023 08:51:23 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id bg26so5974249wmb.0 for ; Sat, 11 Feb 2023 08:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=V3dLOUyD2qLLZeL+RCBFqBDU+r6K7Onh/Gy2tm5yVZc=; b=ER9ivdRQA46j70AsRtLo3uCWnNMEK1js+A1odjy8Q0Z3FMBTW+wMfXjciKmV+z6gW1 k8VkV1E+uBYcsO8SvacDa6fyImvMFIzgtocB2MjOTLT0R0EaDu9jszSbGiTeXetIw81K yHCVKShSA2+RdAwVEqdQLXvrsVSYxRbps4YjQL3gFfW8Q12WxO1WoMpit3RYvCcLYLJw wd1I/Gd+PbRPUMBJ4svv5nAc4RiZRM74ZEd5KQyXsUAnhJ2KD1xN0Ya2j6VrIyGpXSy/ 9L/oFg6Smvz+NKUvzRDYsgn9WBqBhOUD2cfoTgFSfBopcysBA3dBAWTc77y6jTPjPvy4 HueA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V3dLOUyD2qLLZeL+RCBFqBDU+r6K7Onh/Gy2tm5yVZc=; b=bBRjYB3sfBdKyqjOmtAjVHwdsm+Yf62H5hApngUTVb6UTfj37eZFb5NxW/wsCf2sNu ghB7ovYB9BuOuE9pp5a8SuYDqC2iADkfyo2CvY7vbdAJgctNmDLAYxlmbheax/tjtwgj +Lt3Vp2DiU6CRdMSwa2PF0j76SPaDnGRNmNXGL3iLXFTdh6o7Mwlxdc8yVvlas3zJz4A TcDhrFQWc2d0KQBS44PJKRUsrNQbhvhjz+K89Xh602Io0myo2Yip3CybTHH5KSFvc6BA 9A2fGPQ5CvyjGlimSR4XglIFJlqpHMLD4No2Y7sHsyJ0TqL+v0Z7Y39UQKVP+A4lVpuk ofYg== X-Gm-Message-State: AO0yUKWgkm/fcjWYBguKEr5zXP8157QKu72auQkf77zAaug8Dv3U7gT+ tqXU15okx4lbOjUqb3iNi/HklQ== X-Google-Smtp-Source: AK7set/CFEhOT8NQgm8Y1FA7us6RejO5nTqrWa3aLjIDDJhY7POSdEi1Rr+Jp4XzmhMfDx7bAQd+FA== X-Received: by 2002:a05:600c:331c:b0:3df:ee43:860b with SMTP id q28-20020a05600c331c00b003dfee43860bmr15481946wmp.23.1676134282119; Sat, 11 Feb 2023 08:51:22 -0800 (PST) Received: from airbuntu (host86-163-35-10.range86-163.btcentralplus.com. [86.163.35.10]) by smtp.gmail.com with ESMTPSA id r18-20020a05600c459200b003db03725e86sm9729083wmo.8.2023.02.11.08.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 08:51:21 -0800 (PST) Date: Sat, 11 Feb 2023 16:51:20 +0000 From: Qais Yousef To: Yafang Shao 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 Subject: Re: [PATCH v2 7/7] tools/testing/selftests/bpf: replace open-coded 16 with TASK_COMM_LEN Message-ID: <20230211165120.byivmbfhwyegiyae@airbuntu> References: <20211120112738.45980-1-laoar.shao@gmail.com> <20211120112738.45980-8-laoar.shao@gmail.com> <08e1c9d0-376f-d669-6fe8-559b2fbc2f2b@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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