Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1464928

[PATCH v2 0/2] Get callbacks/names of shrinkers from tracepoints

From Janani Ravichandran <janani.rvchndrn@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 0/2] Get callbacks/names of shrinkers from tracepoints
Date 2016-08-18 07:40 +0200
Message-ID <s7odz-3HB-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View 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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] Get callbacks/names of shrinkers from tracepoints Janani Ravichandran <janani.rvchndrn@gmail.com> - 2016-08-18 07:40 +0200
  [PATCH v2 1/2] include: trace: Display names of shrinker callbacks Janani Ravichandran <janani.rvchndrn@gmail.com> - 2016-08-18 07:50 +0200
  [PATCH v2 2/2] fs: super.c: Add tracepoint to get name of superblock  shrinker Janani Ravichandran <janani.rvchndrn@gmail.com> - 2016-08-18 08:20 +0200
    Re: [PATCH v2 2/2] fs: super.c: Add tracepoint to get name of  superblock shrinker Al Viro <viro@ZenIV.linux.org.uk> - 2016-08-18 08:40 +0200
      Re: [PATCH v2 2/2] fs: super.c: Add tracepoint to get name of  superblock shrinker Michal Hocko <mhocko@kernel.org> - 2016-08-18 08:50 +0200
      Re: [PATCH v2 2/2] fs: super.c: Add tracepoint to get name of  superblock shrinker Rik van Riel <riel@surriel.com> - 2016-08-18 15:30 +0200

csiph-web