From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Add simple way to add statistic counters to debugfs Date: Fri, 2 Dec 2011 10:43:24 -0800 Message-ID: <1322851407-17182-1-git-send-email-andi@firstfloor.org> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, fengguang.wu@intel.com To: greg@kroah.com Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org This extends debugfs to make it very simple to add per cpu counters statistics that are exported there. This is useful for all kind of debugging situations. The counters have very little overhead and are simpler to use than trace points. This is the infrastructure for debugfs and a demo application to instrument the dcache RCU which I developed some time ago to track down some problems there. Posting here also so that Fengguang can use it. Module support is still missing, but could be added without too much work. -Andi