Received: by 10.223.185.116 with SMTP id b49csp4543917wrg; Tue, 6 Mar 2018 18:39:12 -0800 (PST) X-Google-Smtp-Source: AG47ELuo1k4n2wyWLIKU04o5Dlv93h0pwNU/c9jICAG4zkDPCcMjteGIwU+a0W/zCdFyjHw4c4VG X-Received: by 10.101.68.82 with SMTP id e18mr16728413pgq.329.1520390352124; Tue, 06 Mar 2018 18:39:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520390352; cv=none; d=google.com; s=arc-20160816; b=p6vUuO97TI4dMx/26NRA7sOZAMDaNmL9Orn2moFOTiW6sBWByVg+4ZQLi+JvWZ9QTq RJyIBl1lN0qyzhX+3ggquw/AjN/yUGt7qIUOLWbe8iDaZQbJWt/fLQUj6vJytqiKEl64 kzRY2L7T+HlQJlTxbWNxJGoeUtzbDPku0hyd1Rn7j3uISnshMrJG3rxYIPg0u9x82dHQ MSv0CoNtH8bYtggr5Shp1pWQLfzpUbVyI2VjFLGvYzhzP1UskSVQ/DFzQLvdnuC5X/6f 8t64q/xhyg3Qszqn0lxf7ea2j0OqotFBvb0eYRiMS1zkQMBq3Wss1IfPz6PiLnrL8psP QQBg== 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:arc-authentication-results; bh=WLiIgEpLYBOZTzEttLPQwNq8sWTFX2T2MN6yYE6/B0Y=; b=wBCCkdHHeiAb+veVfvpDuNPZimSHlgbfjCVo133P5gA+kfTPkrsw44G7m4rzHVwNYC bcG4pDZhxI8l4oEwqO059+no6RikobNjmNVCKfTpEp3a762GA+guM2WnVy5o8CVc7+mm ++pibNDb+NsowgqWOxbOMVn7CBnxdWPPGoAb1iDU5f1+Zgj0xeMRRvM+ygYHipwalsKq dotltaGmlV5VikKxL7JvPdBxTA6XalFLeSoXprIFxrjH48ojOQQop1CR+5CC1li+cA+n K+/qRmV0Tn9atE0AJZNmf5Aw4NpDuTabQBsEpiTGE33wsURZoAisvZVzsvd5VVA63yfq DVrA== 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 y9si10616200pgv.776.2018.03.06.18.38.55; Tue, 06 Mar 2018 18:39:11 -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 S1754070AbeCGCh7 (ORCPT + 99 others); Tue, 6 Mar 2018 21:37:59 -0500 Received: from mga02.intel.com ([134.134.136.20]:48401 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753857AbeCGCh6 (ORCPT ); Tue, 6 Mar 2018 21:37:58 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2018 18:37:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,434,1515484800"; d="scan'208";a="25821092" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga002.fm.intel.com with SMTP; 06 Mar 2018 18:37:55 -0800 Date: Wed, 7 Mar 2018 10:28:57 +0800 From: "Du, Changbin" To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , 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: <20180307022857.kqxmo24we5r54nlh@intel.com> References: <1520307457-23668-1-git-send-email-changbin.du@intel.com> <20180306075302.GA19895@krava> <20180306141707.GG10176@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306141707.GG10176@kernel.org> User-Agent: NeoMutt/20171027-42-ad8712 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 11:17:07AM -0300, Arnaldo Carvalho de Melo wrote: > 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]# Hi Arnaldo, thanks for your patient optimization for this! -- Thanks, Changbin Du