From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756720AbcGIIoz (ORCPT ); Sat, 9 Jul 2016 04:44:55 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35446 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbcGIIow (ORCPT ); Sat, 9 Jul 2016 04:44:52 -0400 Date: Sat, 9 Jul 2016 04:43:31 -0400 From: Janani Ravichandran To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: riel@surriel.com, akpm@linux-foundation.org, hannes@cmpxchg.org, vdavydov@virtuozzo.com, mhocko@suse.com, vbabka@suse.cz, mgorman@techsingularity.net, kirill.shutemov@linux.intel.com, bywxiaobai@163.com Subject: [PATCH 1/3] Add a new field to struct shrinker Message-ID: <85a9712f3853db5d9bc14810b287c23776235f01.1468051281.git.janani.rvchndrn@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Struct shrinker does not have a field to uniquely identify the shrinkers it represents. It would be helpful to have a new field to hold names of shrinkers. This information would be useful while analyzing their behavior using tracepoints. --- include/linux/shrinker.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 4fcacd9..431125c 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -52,6 +52,7 @@ struct shrinker { unsigned long (*scan_objects)(struct shrinker *, struct shrink_control *sc); + const char *name; int seeks; /* seeks to recreate an obj */ long batch; /* reclaim batch size, 0 = default */ unsigned long flags; -- 2.7.0