Re: [PATCH RESEND v3 0/2] Introduce tracepoint for hugetlbfs

2024-09-14 Thread Hongbo Li
Hi, Just a gently ping for this. Does this patch have a change of making it into this cycle? Thanks, Hongbo On 2024/8/29 14:41, Hongbo Li wrote: Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. v2 can be found at: https

Re: [PATCH RESEND v3 1/2] hugetlbfs: support tracepoint

2024-09-07 Thread Hongbo Li
On 2024/9/4 3:56, Steven Rostedt wrote: On Thu, 29 Aug 2024 14:41:09 +0800 Hongbo Li wrote: Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li Pretty basic trace events. yeah

[PATCH RESEND v3 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-08-28 Thread Hongbo Li
mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 -0 [007] ..s1. 110.059441: hugetlbfs_free_inode: dev 0,51 ino 24621 mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[PATCH RESEND v3 1/2] hugetlbfs: support tracepoint

2024-08-28 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 156 +++ 2 files changed

[PATCH RESEND v3 0/2] Introduce tracepoint for hugetlbfs

2024-08-28 Thread Hongbo Li
separated. v1 can be found at: https://lore.kernel.org/linux-mm/20240701194906.3a9b6...@gandalf.local.home/T/ Changes since v1: - Decrease the parameters for setattr tracer suggested by Steve and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2

Re: [PATCH v3 0/2] Introduce tracepoint for hugetlbfs

2024-08-21 Thread Hongbo Li
Give you a friendly ping.🙂 Thanks, Hongbo On 2024/7/23 11:08, Hongbo Li wrote: Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. v2 can be found at: https://lore.kernel.org/all/zoyy-sfj5jvs8...@casper.infradead.org/T/ Changes

[PATCH v3 1/2] hugetlbfs: support tracepoint

2024-07-22 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 156 +++ 2 files changed

[PATCH v3 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-22 Thread Hongbo Li
mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 -0 [007] ..s1. 110.059441: hugetlbfs_free_inode: dev 0,51 ino 24621 mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[PATCH v3 0/2] Introduce tracepoint for hugetlbfs

2024-07-22 Thread Hongbo Li
separated. v1 can be found at: https://lore.kernel.org/linux-mm/20240701194906.3a9b6...@gandalf.local.home/T/ Changes since v1: - Decrease the parameters for setattr tracer suggested by Steve and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2

Re: [PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-04 Thread Hongbo Li
On 2024/7/5 7:34, Dave Chinner wrote: On Thu, Jul 04, 2024 at 10:13:22AM -0400, Steven Rostedt wrote: On Thu, 4 Jul 2024 22:56:29 +1000 Dave Chinner wrote: Having to do this is additional work when writing use-once scripts that get thrown away when the tracepoint output analysis is done is

Re: [PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-03 Thread Hongbo Li
On 2024/7/4 11:37, Matthew Wilcox wrote: On Thu, Jul 04, 2024 at 11:07:03AM +0800, Hongbo Li wrote: + TP_printk("dev = (%d,%d), ino = %lu, dir = %lu, mode = 0%o", + MAJOR(__entry->dev), MINOR(__entry->dev), + (unsigned lo

[PATCH v2 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-03 Thread Hongbo Li
= 2097152, i_nlink = 0, seals = 1, i_blocks = 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 412f295acebe..2e826bbcb6ed 100644 --- a/fs/hugetlbfs/inode.c

[PATCH v2 0/2] Introduce tracepoint for hugetlbfs

2024-07-03 Thread Hongbo Li
and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2): hugetlbfs: support tracepoint hugetlbfs: use tracepoints in hugetlbfs functions. MAINTAINERS | 1 + fs/hugetlbfs/inode.c | 17 +++- include/trace/events

[PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-03 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 160 +++ 2 files changed

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-02 Thread Hongbo Li
On 2024/7/2 21:30, Mathieu Desnoyers wrote: On 2024-07-02 07:55, Hongbo Li wrote: On 2024/7/2 7:49, Steven Rostedt wrote: On Wed, 12 Jun 2024 09:11:56 +0800 Hongbo Li wrote: @@ -934,6 +943,12 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap,   if (error)   return

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-02 Thread Hongbo Li
On 2024/7/2 7:49, Steven Rostedt wrote: On Wed, 12 Jun 2024 09:11:56 +0800 Hongbo Li wrote: @@ -934,6 +943,12 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap, if (error) return error; + trace_hugetlbfs_setattr(inode, dentry->d_name.len, den

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-06-20 Thread Hongbo Li
Just a friendly ping to the patch :) https://lore.kernel.org/all/20240612011156.2891254-1-lihongb...@huawei.com/ Thanks, Hongbo On 2024/6/12 9:11, Hongbo Li wrote: Here we use the hugetlbfs tracepoint to track the call stack. And the output in trace is as follows: ``` touch-5307[004

[PATCH 1/2] hugetlbfs: support tracepoint

2024-06-11 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 164 +++ 2 files changed

[PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-06-11 Thread Hongbo Li
= 21380, i_mode = 0100644, i_size = 2097152, i_nlink = 0, seals = 1, i_blocks = 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 412f295acebe

[PATCH 0/2] Introduce tracepoint for hugetlbfs

2024-06-11 Thread Hongbo Li
Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. Hongbo Li (2): hugetlbfs: support tracepoint hugetlbfs: use tracepoints in hugetlbfs functions. MAINTAINERS | 1 + fs/hugetlbfs/inode.c | 21