From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754476AbcGTOlg (ORCPT ); Wed, 20 Jul 2016 10:41:36 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34482 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754297AbcGTOl2 convert rfc822-to-8bit (ORCPT ); Wed, 20 Jul 2016 10:41:28 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH 1/3] Add a new field to struct shrinker From: Janani Ravichandran In-Reply-To: <20160711143342.GN1811@dhcp22.suse.cz> Date: Wed, 20 Jul 2016 20:11:09 +0530 Cc: Rik van Riel , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, hannes@cmpxchg.org, vdavydov@virtuozzo.com, vbabka@suse.cz, mgorman@techsingularity.net, kirill.shutemov@linux.intel.com, bywxiaobai@163.com Content-Transfer-Encoding: 8BIT Message-Id: References: <85a9712f3853db5d9bc14810b287c23776235f01.1468051281.git.janani.rvchndrn@gmail.com> <20160711063730.GA5284@dhcp22.suse.cz> <1468246371.13253.63.camel@surriel.com> <20160711143342.GN1811@dhcp22.suse.cz> To: Michal Hocko X-Mailer: Apple Mail (2.2104) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jul 11, 2016, at 8:03 PM, Michal Hocko wrote: > > On Mon 11-07-16 10:12:51, Rik van Riel wrote: >> >> What mechanism do you have in mind for obtaining the name, >> Michal? > > Not sure whether tracing infrastructure allows printk like %ps. If not > then it doesn't sound too hard to add. It does allow %ps. Currently what is being printed is the function symbol of the callback using %pF. I’d like to know why %pF is used instead of %ps in this case. Michal, just to make sure I understand you correctly, do you mean that we could infer the names of the shrinkers by looking at the names of their callbacks? Janani.