[PATCH v4 0/7] ntfs3: add tracepoints for core filesystem paths

Baolin Liu <[email protected]>
Newsgroups dev.linux.lists.ntfs3,org.kernel.vger.linux-kernel,org.kernel.vger.linux-trace-kernel
Message-ID <[email protected]>
From: Baolin Liu <[email protected]>

This series adds an initial set of tracepoints for ntfs3 core paths.

The tracepoints cover:
   - mount and log replay
   - namei operations
   - directory index operations
   - allocation and block mapping
   - iomap operations
   - file I/O entry points

Changes in v4 (both addressing review comments on patch 5):
   - ntfs3_attr_data_get_block: pass the "new" pointer to the trace
     event directly and move the "new != NULL" check into
     TP_fast_assign(), keeping that logic out of the call site and only
     executed when the event is enabled
   - ntfs3_attr_set_size_ex: stop sampling the old size with
     i_size_read() in TP_fast_assign() - on the truncate path
     truncate_setsize() has already updated i_size to the new value, so
     the recorded old_size always equaled new_size. Read the actual old
     size from the on-disk attribute record and pass it as an explicit
     parameter; move the call site after the attribute lookup so both
     resident and non-resident attributes are covered

Baolin Liu (7):
  ntfs3: add mount and log replay tracepoints
  ntfs3: add namei tracepoints
  ntfs3: add create inode tracepoint
  ntfs3: add directory index tracepoints
  ntfs3: add allocation tracepoints
  ntfs3: add iomap tracepoints
  ntfs3: add file I/O tracepoints

 MAINTAINERS                  |   1 +
 fs/ntfs3/attrib.c            |  12 ++
 fs/ntfs3/dir.c               |   3 +
 fs/ntfs3/file.c              |   5 +
 fs/ntfs3/fslog.c             |   3 +
 fs/ntfs3/index.c             |   8 +
 fs/ntfs3/inode.c             |   7 +
 fs/ntfs3/namei.c             |   5 +
 fs/ntfs3/super.c             |  11 +-
 include/trace/events/ntfs3.h | 389 +++++++++++++++++++++++++++++++++++
 10 files changed, 443 insertions(+), 1 deletion(-)
 create mode 100644 include/trace/events/ntfs3.h

-- 
2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.