Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4556154pxb; Thu, 14 Oct 2021 07:33:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFf2uSBUDujlejxrdF0ulkWE4BhqQt0FetQ0mAP149dzb/Q/tEA5awN/xnstdV2m5jTVgh X-Received: by 2002:a17:903:1103:b0:12c:59b:dc44 with SMTP id n3-20020a170903110300b0012c059bdc44mr5342884plh.47.1634222027371; Thu, 14 Oct 2021 07:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634222027; cv=none; d=google.com; s=arc-20160816; b=IUktcNOJim+UKOJ+K3Q4C6YgPN/DjsRIWv6OtjP3wvKC5GPw6OrjyDOR+BpFuvrLHr D2B3tyk39W+9OzXefd6zVWADN5pNtRjHieky8aT9TCXPvN134bR/Fh1rvYtHykGPf4TR JBFO5iF3aUnQp2nnXA0Hyk+/3Ce2aqUO5LJU3R05Rj/U6HbF1VXfDUSkzUjSzEmM7dom Qz0kFa99c48btKN5YYpM7r3ZAwEy+y17NsUu98uqvWG+yftlWo6PqqW/MYbu/ww8frKW /krVY6/6+5UYQWvutqIF578UHyUB6IbdoRTKgKbzDmKYmKmvIoQCLWYaFOOhz2fCKpxo 10MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=1oQ91ES9+OrNcvxVdRqxEZUeYE/0Ga7yL1CNMP75TGU=; b=C21eKeDSrEqM+wVab1GYCek5vrqQk7dPGcf/QYI0ACaAe/mAxo4NWD8lRNuRZSitsG GRas2jA6zFaH2VjABRVEpxd5bEk07MueiDkLjhPFyKzpOtyrT/1g+Sw4f46to2zpWqq2 isZ06X1digjvqk6M7U/TsScYXGSegP4R5tUwIpSS+tRyDqicLCszgk3TkuWkU7DSZj8Y qlGpWuA4j3Qsi97DjbbO/xdvMa5FiuWtjMq9QXybtGwCu92VDBM5IuoIJ1kSEldRXJ8U FsC7JKCKEuLu4GtHp4Wboj00kMQVxxYTrxm9qwZzm26pmuWAvD24Qu7t20IgY3M/R5DI w1Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=Gv70AcN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu4si15548345pjb.174.2021.10.14.07.33.33; Thu, 14 Oct 2021 07:33:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=Gv70AcN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231715AbhJNNwy (ORCPT + 99 others); Thu, 14 Oct 2021 09:52:54 -0400 Received: from mail.efficios.com ([167.114.26.124]:53082 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbhJNNwx (ORCPT ); Thu, 14 Oct 2021 09:52:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 23E0438D9B7; Thu, 14 Oct 2021 09:50:48 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rL65uo4OawBC; Thu, 14 Oct 2021 09:50:47 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 7236438D5B9; Thu, 14 Oct 2021 09:50:47 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 7236438D5B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1634219447; bh=1oQ91ES9+OrNcvxVdRqxEZUeYE/0Ga7yL1CNMP75TGU=; h=Date:From:To:Message-ID:MIME-Version; b=Gv70AcN0MVN251go5qKMZ7Ll+9BNGYD1t+t8bBnHhRgjeHtKfSDEzIMOkdVcy4Zcq GzWdCTl+9vtZVvTiGJ8OjumO1OyH7IgPvFD5xMnEaGX94fizNUtPOa3ZhnFLpDc0n2 rvx1VhUrX+CBJ5qJ0/1/trFiGLIV+nvDSMtGqjMxpTzogMtTC1irsQM6tcRzp8Hg/v TxwUTFl9XX5HbsQ6vfG+qjbr0bslrI/qQQv8rSIZ8de001wr8c5cSh3KZRfE25dXBe +UnNIxhjiYMIhAgaR5S+0EDj45JTdaxyPMzSUXLjQDjLKLgj7nYB6I5J4PrBcdYOhb 3fr6sAgkIg3bQ== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id teD4_N-aPibQ; Thu, 14 Oct 2021 09:50:47 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 5710638D850; Thu, 14 Oct 2021 09:50:47 -0400 (EDT) Date: Thu, 14 Oct 2021 09:50:47 -0400 (EDT) From: Mathieu Desnoyers To: Yafang Shao Cc: acme , rostedt , kernel test robot , 0day robot , Petr Mladek , Kees Cook , Peter Zijlstra , Alexander Viro , linux-kernel , lkp , Andrew Morton , Valentin Schneider , Qiang Zhang , robdclark , christian , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Vincent Guittot , Ben Segall , Mel Gorman , bristot , aubrey li , yu c chen Message-ID: <1171592945.14099.1634219447199.JavaMail.zimbra@efficios.com> In-Reply-To: References: <20211010102429.99577-4-laoar.shao@gmail.com> <20211014072707.GA18719@xsang-OptiPlex-9020> <1529739526.13983.1634215325995.JavaMail.zimbra@efficios.com> <173454728.14036.1634216949862.JavaMail.zimbra@efficios.com> Subject: Re: [sched.h] 317419b91e: perf-sanity-tests.Parse_sched_tracepoints_fields.fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4156 (ZimbraWebClient - FF93 (Linux)/8.8.15_GA_4156) Thread-Topic: 317419b91e: perf-sanity-tests.Parse_sched_tracepoints_fields.fail Thread-Index: dnylLOo0GJfvLY2KUZXz7UA2DS74dw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Oct 14, 2021, at 9:11 AM, Yafang Shao laoar.shao@gmail.com wrote: > On Thu, Oct 14, 2021 at 9:09 PM Mathieu Desnoyers > wrote: >> >> ----- On Oct 14, 2021, at 9:05 AM, Yafang Shao laoar.shao@gmail.com wrote: >> [...] >> >> If it happens that this ABI break is noticed by more than an in-tree test >> >> program, then >> >> the kernel's ABI rules will require that this trace field size stays unchanged. >> >> This brings >> >> up once more the whole topic of "Tracepoints ABI" which has been discussed >> >> repeatedly in >> >> the past. >> >> >> > >> > I will check if any other in-tree tools depends on TASK_COMM_LEN. >> >> That's a start, but given this is a userspace ABI, out-of-tree userland >> tools which depend of this to be fixed-size are also relevant. >> > > TASK_COMM_LEN isn't defined in include/uapi/ directory, so it seems > that it isn't the uerspace ABI? One case where this 16 bytes size is expected by userspace is prctl(2) PR_GET_NAME and PR_SET_NAME. The other case I am referring to is with ftrace and perf: mount -t tracefs nodev /sys/kernel/tracing cat /sys/kernel/tracing/events/sched/sched_switch/format name: sched_switch ID: 314 format: [...] field:char prev_comm[16]; offset:8; size:16; signed:1; [...] field:char next_comm[16]; offset:40; size:16; signed:1; Both of those fields expose a fixed-size of 16 bytes. AFAIK Steven's intent was that by parsing this file, trace viewers could adapt to changes in the event field layout. Unfortunately, there have been cases where trace viewers had a hard expectation on the field layout. Hopefully those have all been fixed a while ago. Thanks, Mathieu > > > -- > Thanks > Yafang -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com