Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4754495pxb; Thu, 14 Oct 2021 11:16:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhrRqiI+14Anc0DMVepq3bLYEERz5maixSN0wCx44Uv4TLq3UfBLkmtMeBxwS1BaqeHzfW X-Received: by 2002:a17:906:7113:: with SMTP id x19mr584307ejj.557.1634235400630; Thu, 14 Oct 2021 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634235400; cv=none; d=google.com; s=arc-20160816; b=sdGzbJPZ4O9XspxOhAcDHrgrZkJdt140deLdg9qopaP57HQovft8wYBGlWPNN4Q8AL CwdBK+tt8S/F3p5lH8hH8oGfg7GyvtSS2I3/1UkroWcaKs78D9DTifVD57Ty3gzXj/+x h3oeJf/uOZC7hGUzNQhmd1qZu5wKSpD3hVbsSYQt/0LX+hBTUcu/mTygRM/EiFNWCFmr OTVwYYsPioGb654CELHdeyfIAn2DJg/wgxaRw9H7PqMBhaWqQqzPtkEyrM7x6WoNlm0L nfB6/6r/YxRaQhL+jcf0tSZBTkJYrKjPoXZVJtUvhcoZJFIYXQ5SdiLrJkJvzTzUerRD ZpoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dqtrsb2myc57sZUFYA0S4hcwxSX7FpAo+OjdmCHiHII=; b=a4c/R+JRUgdBkkL2e57ixXXPu4w1OGjjJjwbYqyt9Ie7CkUNrPeNbUoxS2Hif5nTyj 1GPXjL7jq+UMmyDDV/eEWpnNWsiFof7HtMKRL3PIivnv0sF2EpMcrI7GuV+kpC+otQOq OOXaDXT1vKfEuBlGgkJS6yJGmMd3Lpv6br+833AGiEpeyiZiOusoRz0tLbhM6Cli3wOu w43AWxTciWb8km/S59qiemYMPX7USTncIKfuERyYXwapo4kNManWFRa3VCZBuCkLJBgf FjzRDPlw4BVMhtD6WR79Zng2XaFxFyFnp+1Cu1wAy6rI1UmoAGdTp09MFDkgh7TTGbxq cnpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nlnkQTan; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si4534203edj.628.2021.10.14.11.16.15; Thu, 14 Oct 2021 11:16:40 -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=@gmail.com header.s=20210112 header.b=nlnkQTan; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232456AbhJNPOK (ORCPT + 99 others); Thu, 14 Oct 2021 11:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234223AbhJNPNv (ORCPT ); Thu, 14 Oct 2021 11:13:51 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EFB3C09B04F for ; Thu, 14 Oct 2021 08:05:58 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id d125so4144683iof.5 for ; Thu, 14 Oct 2021 08:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dqtrsb2myc57sZUFYA0S4hcwxSX7FpAo+OjdmCHiHII=; b=nlnkQTanK3tTWZScPGug5nMGE7mk0FQPqQDPAJaLJwzAHmYR/RNwiS4VnyWUGYa1MA aXL9iMfEgKqmwH1WfzxOGLiQzDBfV/HCH/BzPUZP+Df3zB1t2RTT4mnAna4/s/fidXg6 1VnFWPTN0mzhEqnqo7ppO4HkTzMnhv57cvAvLTN5nfpZCtLdliSQpLasMdBMEjT7LR5C S28KOpfUHK+5VJFZLRwna4U58eIkI0gXKZz0CxKab6liKBOL/ru37AhRl254v+K6Ftze HgVBR8t3IgEk+kaLqafaUzRUv925KfahjsZ8liMDRbq3Sqcyge5toAD7BQt0zu0rw3cp I6dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dqtrsb2myc57sZUFYA0S4hcwxSX7FpAo+OjdmCHiHII=; b=10gkdXxb9Jsm7KbuXIr+dL3t/69Nbl8vhIXMMYqc/mAD6G8CqUiDA8PPCTCNO1oHUU YyIFgAp7LaExwZzV1wkbzup0WI0IyQAVnPZEfWEh57jUP3Wv+QPz38ahxOgTQ0TnyWDp 3KSK2rafWe/UkqczD0pdktmmgjYBNZYa5/VOKkAg90Kt9dP34kZtByDx09yKRUX5TuGA Vpeq4tlkkjF7o0peFxNBOjS4wJ98gplve6zfQBwKoghI/lN7fp4iy34JbQrfhWNQlVow kNYXkFElB/lAlV8sewXOACR5gxAWrHPdehChxRA1SfkNNhhizb33xv2UFNs67dro8h2u nzmw== X-Gm-Message-State: AOAM530K1KJO4gFeZRDxbHkN2TQZuYT35CJicnTBJzHT1h41TkZgMYTI 9Qxvgg3hTDKaVQvCDLahSP7nkYtAeT3GJfwsGKw= X-Received: by 2002:a05:6602:27d4:: with SMTP id l20mr2821613ios.94.1634223957717; Thu, 14 Oct 2021 08:05:57 -0700 (PDT) MIME-Version: 1.0 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> <1171592945.14099.1634219447199.JavaMail.zimbra@efficios.com> <20211014104811.356e11ae@gandalf.local.home> In-Reply-To: <20211014104811.356e11ae@gandalf.local.home> From: Yafang Shao Date: Thu, 14 Oct 2021 23:05:17 +0800 Message-ID: Subject: Re: [sched.h] 317419b91e: perf-sanity-tests.Parse_sched_tracepoints_fields.fail To: Steven Rostedt Cc: Mathieu Desnoyers , acme , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 10:48 PM Steven Rostedt wrote: > > On Thu, 14 Oct 2021 22:40:04 +0800 > Yafang Shao wrote: > > > > 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. > > > > > > > I don't have a clear idea what will happen to trace viewers if we > > extend task comm. > > There shouldn't be any doing a hard coded read of the events. That happened > once with powertop, but they broke when they ran 32 bit userspace on a 64 > bit kernel, and they switched to libtraceevent to fix it. Which handles > these updates. > Thanks for the explanation. > > > > Steven, do you have any suggestions ? > > The "Don't break user space" is a "tree in the forest" argument. We break > user space all the time. But if no user space tool is around to hear it, > did it really break? The answer is "no". > Got it! -- Thanks Yafang