From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbbFYSAl (ORCPT ); Thu, 25 Jun 2015 14:00:41 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:35729 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbbFYSAf (ORCPT ); Thu, 25 Jun 2015 14:00:35 -0400 MIME-Version: 1.0 In-Reply-To: References: <1432537954-26665-1-git-send-email-naveen.n.rao@linux.vnet.ibm.com> Date: Thu, 25 Jun 2015 11:00:35 -0700 Message-ID: Subject: Re: [PATCH] proc/schedstat: Expose /proc//schedstat if delay accounting is enabled From: Cong Wang To: Balbir Singh Cc: "Naveen N. Rao" , Ingo Molnar , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2015 at 2:11 AM, Balbir Singh wrote: > On Mon, May 25, 2015 at 12:42 PM, Naveen N. Rao > wrote: >> /proc//schedstat is currently only available if CONFIG_SCHEDSTATS is >> enabled. But, all the fields that this exposes are available and valid >> if CONFIG_TASK_DELAY_ACCT is enabled as well. >> [...] > The change looks reasonable, from what I can understand you want these > changes so that you can use /proc//schedstat instead of the > netlink interface when CONFIG_TASK_DELAY_ACCT is enabled. > Why? If you need the procfs interface, just enable CONFIG_SCHEDSTATS. If you need the netlink interface, enable CONFIG_TASK_DELAY_ACCT. They are just two different interfaces for getting the same sched information, so why make this change? There must be some reason you don't want to enable CONFIG_SCHEDSTATS? If so, please add it in the changelog. My guess is it depends on DEBUG_KERNEL which is not what you want? But I see no reason it should have that dependency, it just exposes some stats, looks like can be just removed (and moved out of Kconfig,debug of course).