From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 27908A0C4C; Tue, 21 Sep 2021 15:51:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10DDC40DF8; Tue, 21 Sep 2021 15:51:46 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 1366F4003C for ; Tue, 21 Sep 2021 15:51:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632232303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RODBJUgLk0xivxmcIOyUYXKJKrgRbUlRYQA6yVe3CDw=; b=g5TJDk/V3DL5xQUVAAyBdR9AD5YZFKaSmYwlDYxhmAvVIhhM/5eILE8cezWEBE6vWtK1q9 mn/lHaSC/Gxw8It7z/ZysvN0k3syJwqd0I+kpDA9eEF7AeZqEDYdsWWOrr2pRyVfQb1jaa ItBvxEJcpijtX1VZzBfN1j+zmce1mRs= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-577-9bDS_YdGM6KblGkNZy71aw-1; Tue, 21 Sep 2021 09:51:42 -0400 X-MC-Unique: 9bDS_YdGM6KblGkNZy71aw-1 Received: by mail-lf1-f72.google.com with SMTP id t187-20020a19c3c4000000b003fc1361fb20so8742803lff.0 for ; Tue, 21 Sep 2021 06:51:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RODBJUgLk0xivxmcIOyUYXKJKrgRbUlRYQA6yVe3CDw=; b=ELWltJQ0/RgntC6rFo53G06OFp48gnQA+coLvtur8HfaK0rV4XreQYe7hSJVnFh1Sk hUeUBqny7D/ugAjUX1dX8RFen/UbeYlNVI1FPKLbgJGlT4Z2utz0KmnkrEbV7Vrpfn9c 6pwt3HTznnAf+yc68knIDeXDMB19N5NPhvtNB2GKkbntBJBG29BxCzGgtOEtewA11fOJ ZRAdWBiB+LqUSMNFFLBGSaQ7hrzoE1mmrHRkK+rwQpPI+MlJXAuvLcDSIORy8f4gW6yg zn7XLJ5hGLZlSoGOJh1H6r5Ze5hdL44I+UDlekxFaZ0CCvURTRuK5+j82n/Q6cGHd0Zy X8MQ== X-Gm-Message-State: AOAM531Bs1Ael9zjEHZgk5ZePzevR1OBOSaY+NCd4rwGehj9CGU5U/Vo +0rGIPz0V85vEjm9pXe8dasxyIqMJSc10DUZ9OuiiGhJsJsuRbsc795omSwdTsnIGpyrwcOrWu+ /1ISACO43iabjmAgpkQI= X-Received: by 2002:a2e:9201:: with SMTP id k1mr20388124ljg.477.1632232300845; Tue, 21 Sep 2021 06:51:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykBxbRxGVrPuCbH1ouJR8xAjEA5h9iDXgs/elo4ZlUPCo97Zgi4nVOdmEYDqHbw6dDC8LiuBZcD6CXEWgoBi8= X-Received: by 2002:a2e:9201:: with SMTP id k1mr20388099ljg.477.1632232300623; Tue, 21 Sep 2021 06:51:40 -0700 (PDT) MIME-Version: 1.0 References: <20210915121104.30581-1-david.hunt@intel.com> <20210921115015.36442-1-david.hunt@intel.com> In-Reply-To: <20210921115015.36442-1-david.hunt@intel.com> From: David Marchand Date: Tue, 21 Sep 2021 15:51:29 +0200 Message-ID: To: David Hunt Cc: dev , Bruce Richardson , Thomas Monjalon Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3 1/2] eal: add additional info if core list too long X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Sep 21, 2021 at 1:50 PM David Hunt wrote: > static int > eal_parse_coremask(const char *coremask, int *cores) > { > @@ -839,54 +880,89 @@ eal_parse_service_corelist(const char *corelist) > static int > eal_parse_corelist(const char *corelist, int *cores) > { > - unsigned count = 0; > + unsigned int count = 0, k; > char *end = NULL; > int min, max; > int idx; > + int lcores[RTE_MAX_LCORE]; Static array... "-l 0-RTE_MAX_LCORE" / "-c 0x1" / "-l 0-(RTE_MAX_LCORE-1),0" crash. Please set RTE_MAX_LCORE to 4 (or something that is smaller than your system core count) and run the tests I provided in my previous mail. -- David Marchand