Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1269624ybg; Wed, 23 Oct 2019 13:04:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0tU2jKYJiemHMqr+Ys1MxZqz6UM79zn/3ladzIzRzhlT69dq7VJpfNbxssc9sQVUS6teG X-Received: by 2002:aa7:d1ca:: with SMTP id g10mr39685553edp.156.1571861060873; Wed, 23 Oct 2019 13:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861060; cv=none; d=google.com; s=arc-20160816; b=vYopCz/ZkG6hJ66EvCBwate8Tnd/c1HDOB4uQ6SLfAypbnJsi+fAmqtYxNFDi3rL+X +ZCPl8rlwc9leJggvH8+tkDFUUW+Hz+cGOBRTChHChpmokrYbSNvV5ss3tyKd3aYE/XN XT6ij7d6xFkuveEk31M1YG3ZFQVo5282+F5K4ec/K7Q3Edp6HGdh8j5VWcD9ykXEwp9x CzQFOMyXRtMQjsEFmt0C7QB4QtE52WQMxMP+Xd+6sPKr9HFyVLyqsfcuN/NcGJCIMBLa Ca/J7cVEPlzgc3Q4nJHgB/rK0sdpka9BoHhuuljqsd04H3LBrN1nVbhStMTSarjkIQKW Q4fQ== 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; bh=TkG9A7rvb0Uyb86yM67MxYmum/oe8wLUgtlogW2yyx0=; b=d92s0uoqmgYlh52npitngaLkzn5b26kSOaItw9s8iNWGT0Q2GCQMTCdN4MtboQtdPD 0S3th4y0i9y3M9ro1/0Pwq+235KRzMoSd3SIyEvsn6xFmoUpUvRTGLuEG7iSUo6hWs6e vr9jp1RoSRyMBdxDCHvrT6YQ6sxmyWydU92/VK+ZWxbFe2tsYIDZDOQtrGy8uEyZJ/Gn xVpJVw3JdmgMYZTkIpDScm7YdScss7NZjN9jNiyUy+c3pJiLyKdTrKWYac4yC7J8X1Wz TjL0n2MPR8P3m5OgK5GF7jlepMuIhT0OktTwmKqo83TeyC2qUOMtvQVALQk+6TVkt9v1 70YA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si13888087ejj.347.2019.10.23.13.03.54; Wed, 23 Oct 2019 13:04:20 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405538AbfJWNCg (ORCPT + 99 others); Wed, 23 Oct 2019 09:02:36 -0400 Received: from mga11.intel.com ([192.55.52.93]:61271 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403983AbfJWNCg (ORCPT ); Wed, 23 Oct 2019 09:02:36 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 06:02:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="223176393" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga004.fm.intel.com with ESMTP; 23 Oct 2019 06:02:35 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 35B2830034D; Wed, 23 Oct 2019 06:02:35 -0700 (PDT) Date: Wed, 23 Oct 2019 06:02:35 -0700 From: Andi Kleen To: Jiri Olsa Cc: Andi Kleen , acme@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, eranian@google.com, kan.liang@linux.intel.com, peterz@infradead.org Subject: Re: [PATCH v2 4/9] perf affinity: Add infrastructure to save/restore affinity Message-ID: <20191023130235.GF4660@tassilo.jf.intel.com> References: <20191020175202.32456-1-andi@firstfloor.org> <20191020175202.32456-5-andi@firstfloor.org> <20191023095911.GJ22919@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191023095911.GJ22919@krava> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 11:59:11AM +0200, Jiri Olsa wrote: > On Sun, Oct 20, 2019 at 10:51:57AM -0700, Andi Kleen wrote: > > SNIP > > > +} > > diff --git a/tools/perf/util/affinity.h b/tools/perf/util/affinity.h > > new file mode 100644 > > index 000000000000..e56148607e33 > > --- /dev/null > > +++ b/tools/perf/util/affinity.h > > @@ -0,0 +1,15 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +#ifndef AFFINITY_H > > +#define AFFINITY_H 1 > > + > > +struct affinity { > > + unsigned char *orig_cpus; > > + unsigned char *sched_cpus; > > why not use cpu_set_t directly? Because it's too small in glibc (only 1024 CPUs) and perf already supports more. -andi