Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1314500imm; Fri, 12 Oct 2018 16:04:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV63GGfFUpvqSHtNjLYPc8LlXb2Z6iwpPt1vIPEKxKPYlDIjZS0e3K4FQI+NrSLgtw8bOycyf X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr7605927pla.204.1539385472165; Fri, 12 Oct 2018 16:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539385472; cv=none; d=google.com; s=arc-20160816; b=PyrAhF/QoHBRscvAN5F+NfWuPNMFFKTEaLZL2gYLnjqVtCMN3xe5iK+oseYBW/V+Mq j6WDpINpUDFjLmbibNgVAyTKlLCdsrCROjSP8iPoHCpWWWerVVAPuQ19+1OmMVzKN8gx uJ6kplgyUKo5A0jJ0U4CO90GhH3mQPHN06sKdIk+QI2R9BmA9tjLfqwYEzXaniREcNe6 9l03POJ1ADkQKn6VB0mfM4Wj/xF27mxVVHqB7cqz/hwcqDyMfwfwUAMCQRbVjO4tnNyK WpeeSTdi4G7aNLmXHMUpGcfrLfG5dJyO4m11j/1soLp31urvbRMpFm2nJbBbY4J/wOL4 1uLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=sl2NXSIGVg/TtmXzNKFTngWKViZSonIOXep3zu0gGxk=; b=guedMY5PPZmSPoOpxLu1BhvySrXiY4ywbhs7y/KxayvF+xsxQgahiqVUGT7iCPNwhr /Dr98ywbxfG+lCDSOyCdSlP8TZedaJY+fQd2+WiA5sd5w3f9A6fVcVPaqBEQ6HqtOF1R hpgQLvPkFPpBtA6hpMnFwKi5DTmYwWfPZIozr0+d0Lh6vNiry1PwJDtoBfMp1OQh3wOL +WTdxWsi9eRNVcwtZnK2TER0GnDcV3d+LsmI3DB1Wy3fXs0aQDg5xO1Xho1Og4a6yMGG XZMh8PNMsnK5UwsAikAgHANPFOzeldWmXCQWuFl58CulRiASAkQZwv/PPyoga6hjz/hQ pDFQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15-v6si2606315pga.114.2018.10.12.16.04.14; Fri, 12 Oct 2018 16:04:32 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726033AbeJMGib (ORCPT + 99 others); Sat, 13 Oct 2018 02:38:31 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41368 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbeJMGib (ORCPT ); Sat, 13 Oct 2018 02:38:31 -0400 Received: by mail-qt1-f195.google.com with SMTP id l41-v6so15595735qtl.8; Fri, 12 Oct 2018 16:03:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sl2NXSIGVg/TtmXzNKFTngWKViZSonIOXep3zu0gGxk=; b=Uxj9GjlE4u+0tt9gUjJpZ+O0rZKdBH/aNCKvUkiar/ipMUrwKIL5WNfRVI9P1B7dqp 8c5bfwyb6ZuvXiazIdkld30A7/dem+JYQpFO06IKVTzJDz90CcWj8r4DqwomHx9z0hN0 GOOsCZhvOH51JZ8xWL0qZeJf/2lmOvKYIiXxEjKnTzuHgcGbccuu832ceWgCNGCQCbZq pVc3YhPJdMvYL9USBY10rzPhP1GeRk4UV0YRfJgoQwmUxsc6KOV+7wWXajs/73zg1eVB d54/zsmYxis9/+JCe8Mm3/j+TWVrfEp8700W34BCqaapZ7LsyJ19fllifKryPdxIN8v1 ecMg== X-Gm-Message-State: ABuFfoh8wCH7ZcOQ0HRcWzzuL+2hUzAizSPHQkqqV3zwLEwn5bOkOgbX 5zkBLx1ZncX5tVeQ2ZxSyUzkFINWEcqvyxleCJ0= X-Received: by 2002:a0c:eb42:: with SMTP id c2mr7973848qvq.105.1539385432156; Fri, 12 Oct 2018 16:03:52 -0700 (PDT) MIME-Version: 1.0 References: <20181012182630.GA13352@ssarabia-MOBL7.amr.corp.intel.com> <20181012222743.GA14100@ssarabia-MOBL7.amr.corp.intel.com> In-Reply-To: <20181012222743.GA14100@ssarabia-MOBL7.amr.corp.intel.com> From: Len Brown Date: Fri, 12 Oct 2018 19:03:41 -0400 Message-ID: Subject: Re: turbostat-17.06.23 floating point exception To: solio.sarabia@intel.com Cc: linux-kernel@vger.kernel.org, Linux PM list , "Brown, Len" , shiny.sebastian@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Why would the cpu topology report 0 cpus? I added a debug entry to > cpu_usage_stat and /proc/stat showed it as an extra column. Then > fscanf parsing in for_all_cpus() failed, causing the SIGFPE. > > This is not an issue. Thanks. Yes, it is true that turbostat doesn't check for systems with 0 cpus. I'm curious how you provoked the kernel to claim that. If it is something others might do, we can have check for it and gracefully exit. thanks, -Len -- Len Brown, Intel Open Source Technology Center