]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hugetlbfs: use tracepoints in hugetlbfs functions.
authorHongbo Li <lihongbo22@huawei.com>
Thu, 29 Aug 2024 06:41:10 +0000 (14:41 +0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 17 Sep 2024 09:07:34 +0000 (11:07 +0200)
commit014ad7c42a69d41aa670df96e41e8796d8645d37
tree0308e9ba01ecf13120309fab736fd7b9796a758f
parent318580ad7f2828f6269e0b8819e943ddedda3375
hugetlbfs: use tracepoints in hugetlbfs functions.

Here we use the hugetlbfs tracepoint to track the call stack. And
the output in trace is as follows:

```
   touch-5265    [005] .....    43.246550: hugetlbfs_alloc_inode: dev 0,51 ino 24621 dir 21959 mode 0100644
   touch-5265    [005] .....    43.246638: hugetlbfs_setattr: dev 0,51 ino 24621 name testfile valid 0x20070 mode 0177777 old_size 0 size -51622648042749952
truncate-5266    [005] .....    45.590890: hugetlbfs_setattr: dev 0,51 ino 24621 name testfile valid 0x2068 mode 00 old_size 0 size 2097152
rm-5273    [007] .....   110.052783: hugetlbfs_evict_inode: dev 0,51 ino 24621 mode 0100644 size 2097152 nlink 0 seals 1 blocks 0
  <idle>-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 <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20240829064110.67884-3-lihongbo22@huawei.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/hugetlbfs/inode.c