public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Janani Ravichandran <janani.rvchndrn@gmail.com>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: riel@surriel.com, akpm@linux-foundation.org,
	vdavydov@virtuozzo.com, mhocko@suse.com, vbabka@suse.cz,
	mgorman@techsingularity.net, kirill.shutemov@linux.intel.com,
	bywxiaobai@163.com
Subject: [PATCH v2 0/2] Get callbacks/names of shrinkers from tracepoints
Date: Thu, 18 Aug 2016 01:33:45 -0400	[thread overview]
Message-ID: <cover.1471496832.git.janani.rvchndrn@gmail.com> (raw)

Currently, it is not possible to know which shrinkers are being run.
Even though the callbacks are printed using %pF in tracepoints 
mm_shrink_slab_start and mm_shrink_slab_end, they are not visible to
userspace tools like perf.

To address this, this patchset
1. Enables the display of names of shrinker callbacks in tracepoints
mm_shrink_slab_start and mm_shrink_slab_end.
2. Adds a new tracepoint in the callback of the superblock shrinker to
get specific names of superblock types.

Changes since v1 at https://lkml.org/lkml/2016/7/9/33:
1. This patchset does not introduce a new variable to hold names of
shrinkers, unlike v1. It makes mm_shrink_slab_start and
mm_shrink_slab_end print names of callbacks instead.
2. It also adds a new tracepoint for superblock shrinkers to display
more specific name information, which v1 did not do.

Thanks to Dave Chinner and Tony Jones for their suggestions.

Janani Ravichandran (2):
  include: trace: Display names of shrinker callbacks
  fs: super.c: Add tracepoint to get name of superblock shrinker

 fs/super.c                    |  2 ++
 include/trace/events/vmscan.h | 39 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 39 insertions(+), 2 deletions(-)

-- 
2.7.0

             reply	other threads:[~2016-08-18  5:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18  5:33 Janani Ravichandran [this message]
2016-08-18  5:38 ` [PATCH v2 1/2] include: trace: Display names of shrinker callbacks Janani Ravichandran
2016-08-18  6:09 ` [PATCH v2 2/2] fs: super.c: Add tracepoint to get name of superblock shrinker Janani Ravichandran
2016-08-18  6:32   ` Al Viro
2016-08-18  6:40     ` Michal Hocko
2016-08-18 13:22     ` Rik van Riel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1471496832.git.janani.rvchndrn@gmail.com \
    --to=janani.rvchndrn@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bywxiaobai@163.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=riel@surriel.com \
    --cc=vbabka@suse.cz \
    --cc=vdavydov@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox