Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753680AbcKPOJ7 (ORCPT ); Wed, 16 Nov 2016 09:09:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55840 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753524AbcKPOJ6 (ORCPT ); Wed, 16 Nov 2016 09:09:58 -0500 Date: Wed, 16 Nov 2016 09:09:57 -0500 From: Luiz Capitulino To: Steven Rostedt Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] trace-cmd record: add --cpu-list option Message-ID: <20161116090957.2816dba5@redhat.com> In-Reply-To: <20161115163819.5291b752@gandalf.local.home> References: <1475858831-32687-1-git-send-email-lcapitulino@redhat.com> <1475858831-32687-4-git-send-email-lcapitulino@redhat.com> <20161028154922.64e97208@gandalf.local.home> <20161028171456.3643d626@redhat.com> <20161115163819.5291b752@gandalf.local.home> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 16 Nov 2016 14:09:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 28 On Tue, 15 Nov 2016 16:38:19 -0500 Steven Rostedt wrote: > On Fri, 28 Oct 2016 17:14:56 -0400 > Luiz Capitulino wrote: > > > > > > > > cpu_set(ret_mask, i) sets bits from begin to end in uint64_t cpumask > > > from below. > > > > > > What happens if this range is greater than 64? We already have boxes > > > that run this with 80 CPUs. Looks to be out of memory range to me. > > > > The best solution is probably to detect the number of CPUs at run-time > > and use the CPU_SET() API. The lazy and ugly solution is to just fail. > > > > Any objections to the CPU_SET() solution? > > > > I thought I replied to this, but I'm guessing the reply is still > pending. > > I have no objecting. I'd like to see a patch though. I imagined you didn't have objections :) I haven't started working on this yet because I'm very busy at other stuff. But I'll go back to this soon.