mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 11:10:44 +00:00
scoutfs: replace trace_printk in compact.c
Signed-off-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
@@ -618,7 +618,7 @@ static void scoutfs_compact_func(struct work_struct *work)
|
||||
free_cseg_list(sb, &results);
|
||||
|
||||
WARN_ON_ONCE(ret);
|
||||
trace_printk("ret %d\n", ret);
|
||||
trace_scoutfs_compact_func(sb, ret);
|
||||
}
|
||||
|
||||
void scoutfs_compact_kick(struct super_block *sb)
|
||||
|
||||
@@ -36,6 +36,24 @@
|
||||
#define FSID_ARG(sb) le64_to_cpu(SCOUTFS_SB(sb)->super.hdr.fsid)
|
||||
#define FSID_FMT "%llx"
|
||||
|
||||
TRACE_EVENT(scoutfs_compact_func,
|
||||
TP_PROTO(struct super_block *sb, int ret),
|
||||
|
||||
TP_ARGS(sb, ret),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(__u64, fsid)
|
||||
__field(int, ret)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->fsid = FSID_ARG(sb);
|
||||
__entry->ret = ret;
|
||||
),
|
||||
|
||||
TP_printk(FSID_FMT" ret %d", __entry->fsid, __entry->ret)
|
||||
);
|
||||
|
||||
TRACE_EVENT(scoutfs_alloc_free,
|
||||
TP_PROTO(struct super_block *sb, __u64 segno, __u64 index, int nr,
|
||||
int ret),
|
||||
|
||||
Reference in New Issue
Block a user