Received: by 10.223.185.116 with SMTP id b49csp3863152wrg; Tue, 6 Mar 2018 06:18:21 -0800 (PST) X-Google-Smtp-Source: AG47ELuscoQuitjfjukVOESv3DIxWjkNYjR8i42+1IwzIy8m3rQLLOZxigtF99TQdopvnkGPN2o8 X-Received: by 10.99.6.85 with SMTP id 82mr15024027pgg.181.1520345901608; Tue, 06 Mar 2018 06:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520345901; cv=none; d=google.com; s=arc-20160816; b=H991Pb/bxbWeEc6f11Ft8N3fRI6ZM+hrkmlrZpbToF9xZ5s6Mniqzderd8vqHbWoTt vvyoWtJDIhKeI6aXYrk7kaM+Fk55nll+mrLgIWYax4w/QFlSdb5KO78+1DzoLKkLW9r3 ch3TAyuv/PQUMQEmEDEerCvVyB+ZtgXj79+Z3eir7AllxvMVSsUQV1DvAnZP8TUwl5nR VGewn2pNes3JjrcixPG3aNk2EHKHHR96zg/mgzxLo2BufErfVnUGwfjrq9NmU68qTZGz fUly5ETLyjA6mXfrzPYe3J3XHSjAJAPyhgLY3u+uSqJ9osFVf3qbGqct8V5JJeea1OUt RGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=z1hT1IctF9moCDDO1f7P38HMfuQQisW53yE2TPzOaPw=; b=i0qQEZ3pjVvEMBQkbcA2XcyAOXd6nKRw3Pg8uM1gTo4JjI/IIecQBTK7tdPQProtWb +PdUnyphYVsgACiiejKv1J5Pd6yszhq9634o8ZGcMBfpEJ97zkSeRcShNiiMHtY337ZT 8wUD15v0uN4jTZOG0bY6J5lU3dhZCeK7q1ZESzbixEIJ9wNswjz7tOISJ/yQcj/Qou23 Q8j5/MbK/3D+KICEE9g4tAUmM8SFdF5RL+Yx9xWzZZwEB8TaGXLCPDAkjyUqAxCEEEKG 2av24BYOJ+u320ZULf7yXqFHRjuWSzxhCc7C5ksu+qZW3yF/8kYztqFoqSn+j2pTBRn7 38cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si11483938plk.185.2018.03.06.06.18.07; Tue, 06 Mar 2018 06:18:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753583AbeCFORL (ORCPT + 99 others); Tue, 6 Mar 2018 09:17:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:35458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbeCFORJ (ORCPT ); Tue, 6 Mar 2018 09:17:09 -0500 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4E54320685; Tue, 6 Mar 2018 14:17:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E54320685 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 400851450EA; Tue, 6 Mar 2018 11:17:07 -0300 (-03) Date: Tue, 6 Mar 2018 11:17:07 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: changbin.du@intel.com, peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v2 0/2] perf sched map: re-annotate shortname if thread comm changed Message-ID: <20180306141707.GG10176@kernel.org> References: <1520307457-23668-1-git-send-email-changbin.du@intel.com> <20180306075302.GA19895@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306075302.GA19895@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 06, 2018 at 08:53:02AM +0100, Jiri Olsa escreveu: > On Tue, Mar 06, 2018 at 11:37:35AM +0800, changbin.du@intel.com wrote: > > From: Changbin Du > > > > v2: > > o add a patch to move thread::shortname to thread_runtime > > o add function perf_sched__process_comm() to process PERF_RECORD_COMM event. > > > > Changbin Du (2): > > perf sched: move thread::shortname to thread_runtime > > perf sched map: re-annotate shortname if thread comm changed > > Acked-by: Jiri Olsa Thanks, applied both, the final layout for 'struct thread_runtime': [root@jouet perf]# pahole -C thread_runtime ~/bin/perf struct thread_runtime { u64 last_time; /* 0 8 */ u64 dt_run; /* 8 8 */ u64 dt_sleep; /* 16 8 */ u64 dt_iowait; /* 24 8 */ u64 dt_preempt; /* 32 8 */ u64 dt_delay; /* 40 8 */ u64 ready_to_run; /* 48 8 */ struct stats run_stats; /* 56 40 */ /* --- cacheline 1 boundary (64 bytes) was 32 bytes ago --- */ u64 total_run_time; /* 96 8 */ u64 total_sleep_time; /* 104 8 */ u64 total_iowait_time; /* 112 8 */ u64 total_preempt_time; /* 120 8 */ /* --- cacheline 2 boundary (128 bytes) --- */ u64 total_delay_time; /* 128 8 */ int last_state; /* 136 4 */ char shortname[3]; /* 140 3 */ _Bool comm_changed; /* 143 1 */ u64 migrations; /* 144 8 */ /* size: 152, cachelines: 3, members: 17 */ /* last cacheline: 24 bytes */ }; [root@jouet perf]#