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>
This commit is contained in:
Hongbo Li 2024-08-29 14:41:10 +08:00 • committed by Christian Brauner
commit 014ad7c42a
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2