Received: by 10.223.185.116 with SMTP id b49csp4550519wrg; Tue, 6 Mar 2018 18:49:15 -0800 (PST) X-Google-Smtp-Source: AG47ELvLAMHn2VHHY7pze7u6DAFdNg24LEGtM0gd0h2T5Xv5kOAEakSZyfZnxP9bOIgSKxYP4xrn X-Received: by 10.101.75.199 with SMTP id p7mr17374354pgr.0.1520390955419; Tue, 06 Mar 2018 18:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520390955; cv=none; d=google.com; s=arc-20160816; b=v3sy3qAbGSHDxLFYd6QW5a1hhJUte1tYeMqwEfB36weyL1hij7FJYRopX8b6A8sk4r P8mKPCa9jpYY2zWvek0iqOP26qLufi534BUcG5HW89tr4LueiI42hdyFl6E8KwA/E54e N1qhBhBJeTMNeH/P1gKLuoI0LXphilpAVP+mGcV7zLsiwViKuCstWQGwcWHXvo+FyJQl XAReL+c/xsvKZtXsJ6+NJqPDh9fjHMeaJ/Wc9YFut08ji2EVcuiKjm1gATOwQMKwQrIZ rCIjMLw1bLjX1KL8XPVCnQacen88+ASrRVHVHKSVzWDXiZpLcmD4WwOcAiqM9ymtSVdy v4tQ== 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:dkim-signature:arc-authentication-results; bh=2Zgdxo/Yl4CNQbn0dHC+2ThLH9ZhnxasMgqEKwJabpo=; b=javNy3d5CuzOStFtc9zYFLO0tbpcqoswfJtm/IwDizyJMGDKCQ09Gj53oeHCH15xN9 U9lciCGO5aWLh78s4XMDkCz5QSJL9zRQ84fLJrmpHf4yDyZnK4ft06Acm73vzeICHr05 mKMfYTEZDpD1cqv1RTB9CVg6se8uzhgcM7gLYdENed3tKJx24KdI2JJ++VEN6mUQOmNa knDJ9D/pNfdYmt0GIW26sfntDmJ5vCo715X1Qt67smxTcR2Sr7OcExwqR+DXbPSmBwDC pj1vhCca85qAn1TMImTv/uaXBwTxF3oO20QLXc0E6Eko/DtD8m5Nf811cmr3JWY62E3e 2Zyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bR0MntKf; 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 u128si10738929pgc.587.2018.03.06.18.48.59; Tue, 06 Mar 2018 18:49:15 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bR0MntKf; 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 S933160AbeCGCsC (ORCPT + 99 others); Tue, 6 Mar 2018 21:48:02 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42883 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932078AbeCGCsB (ORCPT ); Tue, 6 Mar 2018 21:48:01 -0500 Received: by mail-pf0-f195.google.com with SMTP id a16so377976pfn.9; Tue, 06 Mar 2018 18:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2Zgdxo/Yl4CNQbn0dHC+2ThLH9ZhnxasMgqEKwJabpo=; b=bR0MntKfalV3m6dh0EBQ5q5fd5SoV3NYPpMI2N0g2alIBWTcN/EVLtv0CntnvX6x36 +qd4IR5GzbPWyI7Pt01izgweCNwjD07s0kmRBI9bm1TYfMYqTDgyqPB869//FHdC/09Z pAHNuzoQYfU7Un/G/JB0bMlniiIJD6ufoqS1ROP5pXyjQEBXz0uVrvqpsX9lYIIv4Vnr 06est4LXdajBdaVaHVkWGi78o98ZoY1xrwoQqbhjDYEiltWZC8kje86O4nrdrDGcEfFD hCJjJ+tvH+fgg4fnFWqWrID0SOKb6hZSkT2EffAif9QOSjLQPhTwDtzjFjI1NoFpHD3J hfdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=2Zgdxo/Yl4CNQbn0dHC+2ThLH9ZhnxasMgqEKwJabpo=; b=GAmu5q7Axr1DWjn3FXEESSVmuOIItpNr+N0rUz7bhSiUvsu9T2OEcUIsEp6huQB9rQ 2LJqqKxjpzeRLs7SKZzKtyO2zDGH+0tcST3LY0S9hgKZHWD7fgbDTXDhvBmPU7ygXEyY A25zSQK9G4uGLpk4/C50EOsm3rWFNoaj5w/Ls/8B38HakGkAupRtfqITBk6n7EFuN5P8 THbgHr4pTAsDwzVYGJm3MeXDJbUvsdHJthemrv2vyTmWVi6LHBjQlKukYmeLoFpOEcAD apmgrWHv9nG3eb/b6TAhSWqabB/AisTfNHUPmhRi6k0EvAM1pyD4jWFV3KxU+b+VkxNO pUGA== X-Gm-Message-State: APf1xPB0Nnqe7eToQVWAFCGkA4pIMRA3aoO1SCIqqzqYZ7rh5YoqFJ/e nuhMb8hzLjLke/pZQkbVbIamUQ== X-Received: by 10.99.103.195 with SMTP id b186mr16766809pgc.446.1520390880689; Tue, 06 Mar 2018 18:48:00 -0800 (PST) Received: from danjae.aot.lge.com ([220.120.166.216]) by smtp.gmail.com with ESMTPSA id q2sm29958115pfh.103.2018.03.06.18.47.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Mar 2018 18:47:59 -0800 (PST) Date: Wed, 7 Mar 2018 11:44:41 +0900 From: Namhyung Kim To: changbin.du@intel.com Cc: acme@kernel.org, jolsa@redhat.com, peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kernel-team@lge.com Subject: Re: [PATCH v2 1/2] perf sched: move thread::shortname to thread_runtime Message-ID: <20180307024441.GA10527@danjae.aot.lge.com> References: <1520307457-23668-1-git-send-email-changbin.du@intel.com> <1520307457-23668-2-git-send-email-changbin.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1520307457-23668-2-git-send-email-changbin.du@intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Mar 06, 2018 at 11:37:36AM +0800, changbin.du@intel.com wrote: > From: Changbin Du > > The thread::shortname only used by sched command, so move it > to sched private structure. > > Signed-off-by: Changbin Du > --- [SNIP] > diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h > index 40cfa36..14d44c3 100644 > --- a/tools/perf/util/thread.h > +++ b/tools/perf/util/thread.h > @@ -26,7 +26,6 @@ struct thread { > pid_t ppid; > int cpu; > refcount_t refcnt; > - char shortname[3]; > bool comm_set; > int comm_len; > bool dead; /* if set thread has exited */ I also suggest to move the 'dead' field to pack two bools. Thanks, Namhyung