162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#undef TRACE_SYSTEM
362306a36Sopenharmony_ci#define TRACE_SYSTEM ocfs2
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#if !defined(_TRACE_OCFS2_H) || defined(TRACE_HEADER_MULTI_READ)
662306a36Sopenharmony_ci#define _TRACE_OCFS2_H
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <linux/tracepoint.h>
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__int,
1162306a36Sopenharmony_ci	TP_PROTO(int num),
1262306a36Sopenharmony_ci	TP_ARGS(num),
1362306a36Sopenharmony_ci	TP_STRUCT__entry(
1462306a36Sopenharmony_ci		__field(int, num)
1562306a36Sopenharmony_ci	),
1662306a36Sopenharmony_ci	TP_fast_assign(
1762306a36Sopenharmony_ci		__entry->num = num;
1862306a36Sopenharmony_ci	),
1962306a36Sopenharmony_ci	TP_printk("%d", __entry->num)
2062306a36Sopenharmony_ci);
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#define DEFINE_OCFS2_INT_EVENT(name)	\
2362306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__int, name,	\
2462306a36Sopenharmony_ci	TP_PROTO(int num),	\
2562306a36Sopenharmony_ci	TP_ARGS(num))
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__uint,
2862306a36Sopenharmony_ci	TP_PROTO(unsigned int num),
2962306a36Sopenharmony_ci	TP_ARGS(num),
3062306a36Sopenharmony_ci	TP_STRUCT__entry(
3162306a36Sopenharmony_ci		__field(	unsigned int,	num		)
3262306a36Sopenharmony_ci	),
3362306a36Sopenharmony_ci	TP_fast_assign(
3462306a36Sopenharmony_ci		__entry->num	= 	num;
3562306a36Sopenharmony_ci	),
3662306a36Sopenharmony_ci	TP_printk("%u", __entry->num)
3762306a36Sopenharmony_ci);
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci#define DEFINE_OCFS2_UINT_EVENT(name)	\
4062306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__uint, name,	\
4162306a36Sopenharmony_ci	TP_PROTO(unsigned int num),	\
4262306a36Sopenharmony_ci	TP_ARGS(num))
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull,
4562306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno),
4662306a36Sopenharmony_ci	TP_ARGS(blkno),
4762306a36Sopenharmony_ci	TP_STRUCT__entry(
4862306a36Sopenharmony_ci		__field(unsigned long long, blkno)
4962306a36Sopenharmony_ci	),
5062306a36Sopenharmony_ci	TP_fast_assign(
5162306a36Sopenharmony_ci		__entry->blkno = blkno;
5262306a36Sopenharmony_ci	),
5362306a36Sopenharmony_ci	TP_printk("%llu", __entry->blkno)
5462306a36Sopenharmony_ci);
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_EVENT(name)	\
5762306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull, name,	\
5862306a36Sopenharmony_ci	TP_PROTO(unsigned long long num),	\
5962306a36Sopenharmony_ci	TP_ARGS(num))
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__pointer,
6262306a36Sopenharmony_ci	TP_PROTO(void *pointer),
6362306a36Sopenharmony_ci	TP_ARGS(pointer),
6462306a36Sopenharmony_ci	TP_STRUCT__entry(
6562306a36Sopenharmony_ci		__field(void *, pointer)
6662306a36Sopenharmony_ci	),
6762306a36Sopenharmony_ci	TP_fast_assign(
6862306a36Sopenharmony_ci		__entry->pointer = pointer;
6962306a36Sopenharmony_ci	),
7062306a36Sopenharmony_ci	TP_printk("%p", __entry->pointer)
7162306a36Sopenharmony_ci);
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci#define DEFINE_OCFS2_POINTER_EVENT(name)	\
7462306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__pointer, name,	\
7562306a36Sopenharmony_ci	TP_PROTO(void *pointer),	\
7662306a36Sopenharmony_ci	TP_ARGS(pointer))
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__string,
7962306a36Sopenharmony_ci	TP_PROTO(const char *name),
8062306a36Sopenharmony_ci	TP_ARGS(name),
8162306a36Sopenharmony_ci	TP_STRUCT__entry(
8262306a36Sopenharmony_ci		__string(name,name)
8362306a36Sopenharmony_ci	),
8462306a36Sopenharmony_ci	TP_fast_assign(
8562306a36Sopenharmony_ci		__assign_str(name, name);
8662306a36Sopenharmony_ci	),
8762306a36Sopenharmony_ci	TP_printk("%s", __get_str(name))
8862306a36Sopenharmony_ci);
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci#define DEFINE_OCFS2_STRING_EVENT(name)	\
9162306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__string, name,	\
9262306a36Sopenharmony_ci	TP_PROTO(const char *name),	\
9362306a36Sopenharmony_ci	TP_ARGS(name))
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__int_int,
9662306a36Sopenharmony_ci	TP_PROTO(int value1, int value2),
9762306a36Sopenharmony_ci	TP_ARGS(value1, value2),
9862306a36Sopenharmony_ci	TP_STRUCT__entry(
9962306a36Sopenharmony_ci		__field(int, value1)
10062306a36Sopenharmony_ci		__field(int, value2)
10162306a36Sopenharmony_ci	),
10262306a36Sopenharmony_ci	TP_fast_assign(
10362306a36Sopenharmony_ci		__entry->value1	= value1;
10462306a36Sopenharmony_ci		__entry->value2	= value2;
10562306a36Sopenharmony_ci	),
10662306a36Sopenharmony_ci	TP_printk("%d %d", __entry->value1, __entry->value2)
10762306a36Sopenharmony_ci);
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ci#define DEFINE_OCFS2_INT_INT_EVENT(name)	\
11062306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__int_int, name,	\
11162306a36Sopenharmony_ci	TP_PROTO(int val1, int val2),	\
11262306a36Sopenharmony_ci	TP_ARGS(val1, val2))
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__uint_int,
11562306a36Sopenharmony_ci	TP_PROTO(unsigned int value1, int value2),
11662306a36Sopenharmony_ci	TP_ARGS(value1, value2),
11762306a36Sopenharmony_ci	TP_STRUCT__entry(
11862306a36Sopenharmony_ci		__field(unsigned int, value1)
11962306a36Sopenharmony_ci		__field(int, value2)
12062306a36Sopenharmony_ci	),
12162306a36Sopenharmony_ci	TP_fast_assign(
12262306a36Sopenharmony_ci		__entry->value1	= value1;
12362306a36Sopenharmony_ci		__entry->value2	= value2;
12462306a36Sopenharmony_ci	),
12562306a36Sopenharmony_ci	TP_printk("%u %d", __entry->value1, __entry->value2)
12662306a36Sopenharmony_ci);
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci#define DEFINE_OCFS2_UINT_INT_EVENT(name)	\
12962306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__uint_int, name,	\
13062306a36Sopenharmony_ci	TP_PROTO(unsigned int val1, int val2),	\
13162306a36Sopenharmony_ci	TP_ARGS(val1, val2))
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__uint_uint,
13462306a36Sopenharmony_ci	TP_PROTO(unsigned int value1, unsigned int value2),
13562306a36Sopenharmony_ci	TP_ARGS(value1, value2),
13662306a36Sopenharmony_ci	TP_STRUCT__entry(
13762306a36Sopenharmony_ci		__field(unsigned int, value1)
13862306a36Sopenharmony_ci		__field(unsigned int, value2)
13962306a36Sopenharmony_ci	),
14062306a36Sopenharmony_ci	TP_fast_assign(
14162306a36Sopenharmony_ci		__entry->value1 = value1;
14262306a36Sopenharmony_ci		__entry->value2 = value2;
14362306a36Sopenharmony_ci	),
14462306a36Sopenharmony_ci	TP_printk("%u %u", __entry->value1, __entry->value2)
14562306a36Sopenharmony_ci);
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci#define DEFINE_OCFS2_UINT_UINT_EVENT(name)	\
14862306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__uint_uint, name,	\
14962306a36Sopenharmony_ci	TP_PROTO(unsigned int val1, unsigned int val2),	\
15062306a36Sopenharmony_ci	TP_ARGS(val1, val2))
15162306a36Sopenharmony_ci
15262306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_uint,
15362306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1, unsigned int value2),
15462306a36Sopenharmony_ci	TP_ARGS(value1, value2),
15562306a36Sopenharmony_ci	TP_STRUCT__entry(
15662306a36Sopenharmony_ci		__field(unsigned long long, value1)
15762306a36Sopenharmony_ci		__field(unsigned int, value2)
15862306a36Sopenharmony_ci	),
15962306a36Sopenharmony_ci	TP_fast_assign(
16062306a36Sopenharmony_ci		__entry->value1 = value1;
16162306a36Sopenharmony_ci		__entry->value2 = value2;
16262306a36Sopenharmony_ci	),
16362306a36Sopenharmony_ci	TP_printk("%llu %u", __entry->value1, __entry->value2)
16462306a36Sopenharmony_ci);
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_UINT_EVENT(name)	\
16762306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_uint, name,	\
16862306a36Sopenharmony_ci	TP_PROTO(unsigned long long val1, unsigned int val2),	\
16962306a36Sopenharmony_ci	TP_ARGS(val1, val2))
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_int,
17262306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1, int value2),
17362306a36Sopenharmony_ci	TP_ARGS(value1, value2),
17462306a36Sopenharmony_ci	TP_STRUCT__entry(
17562306a36Sopenharmony_ci		__field(unsigned long long, value1)
17662306a36Sopenharmony_ci		__field(int, value2)
17762306a36Sopenharmony_ci	),
17862306a36Sopenharmony_ci	TP_fast_assign(
17962306a36Sopenharmony_ci		__entry->value1	= value1;
18062306a36Sopenharmony_ci		__entry->value2	= value2;
18162306a36Sopenharmony_ci	),
18262306a36Sopenharmony_ci	TP_printk("%llu %d", __entry->value1, __entry->value2)
18362306a36Sopenharmony_ci);
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_INT_EVENT(name)	\
18662306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_int, name,	\
18762306a36Sopenharmony_ci	TP_PROTO(unsigned long long val1, int val2),	\
18862306a36Sopenharmony_ci	TP_ARGS(val1, val2))
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_ull,
19162306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1, unsigned long long value2),
19262306a36Sopenharmony_ci	TP_ARGS(value1, value2),
19362306a36Sopenharmony_ci	TP_STRUCT__entry(
19462306a36Sopenharmony_ci		__field(unsigned long long, value1)
19562306a36Sopenharmony_ci		__field(unsigned long long, value2)
19662306a36Sopenharmony_ci	),
19762306a36Sopenharmony_ci	TP_fast_assign(
19862306a36Sopenharmony_ci		__entry->value1 = value1;
19962306a36Sopenharmony_ci		__entry->value2 = value2;
20062306a36Sopenharmony_ci	),
20162306a36Sopenharmony_ci	TP_printk("%llu %llu", __entry->value1, __entry->value2)
20262306a36Sopenharmony_ci);
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_ULL_EVENT(name)	\
20562306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_ull, name,	\
20662306a36Sopenharmony_ci	TP_PROTO(unsigned long long val1, unsigned long long val2),	\
20762306a36Sopenharmony_ci	TP_ARGS(val1, val2))
20862306a36Sopenharmony_ci
20962306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_ull_uint,
21062306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1,
21162306a36Sopenharmony_ci		 unsigned long long value2, unsigned int value3),
21262306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3),
21362306a36Sopenharmony_ci	TP_STRUCT__entry(
21462306a36Sopenharmony_ci		__field(unsigned long long, value1)
21562306a36Sopenharmony_ci		__field(unsigned long long, value2)
21662306a36Sopenharmony_ci		__field(unsigned int, value3)
21762306a36Sopenharmony_ci	),
21862306a36Sopenharmony_ci	TP_fast_assign(
21962306a36Sopenharmony_ci		__entry->value1 = value1;
22062306a36Sopenharmony_ci		__entry->value2 = value2;
22162306a36Sopenharmony_ci		__entry->value3 = value3;
22262306a36Sopenharmony_ci	),
22362306a36Sopenharmony_ci	TP_printk("%llu %llu %u",
22462306a36Sopenharmony_ci		  __entry->value1, __entry->value2, __entry->value3)
22562306a36Sopenharmony_ci);
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_ULL_UINT_EVENT(name)	\
22862306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_ull_uint, name,	\
22962306a36Sopenharmony_ci	TP_PROTO(unsigned long long val1,	\
23062306a36Sopenharmony_ci		 unsigned long long val2, unsigned int val3),	\
23162306a36Sopenharmony_ci	TP_ARGS(val1, val2, val3))
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_uint_uint,
23462306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1,
23562306a36Sopenharmony_ci		 unsigned int value2, unsigned int value3),
23662306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3),
23762306a36Sopenharmony_ci	TP_STRUCT__entry(
23862306a36Sopenharmony_ci		__field(unsigned long long, value1)
23962306a36Sopenharmony_ci		__field(unsigned int, value2)
24062306a36Sopenharmony_ci		__field(unsigned int, value3)
24162306a36Sopenharmony_ci	),
24262306a36Sopenharmony_ci	TP_fast_assign(
24362306a36Sopenharmony_ci		__entry->value1 = value1;
24462306a36Sopenharmony_ci		__entry->value2 = value2;
24562306a36Sopenharmony_ci		__entry->value3	= value3;
24662306a36Sopenharmony_ci	),
24762306a36Sopenharmony_ci	TP_printk("%llu %u %u", __entry->value1,
24862306a36Sopenharmony_ci		  __entry->value2, __entry->value3)
24962306a36Sopenharmony_ci);
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_UINT_UINT_EVENT(name)	\
25262306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_uint_uint, name,	\
25362306a36Sopenharmony_ci	TP_PROTO(unsigned long long val1,	\
25462306a36Sopenharmony_ci		 unsigned int val2, unsigned int val3),	\
25562306a36Sopenharmony_ci	TP_ARGS(val1, val2, val3))
25662306a36Sopenharmony_ci
25762306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__uint_uint_uint,
25862306a36Sopenharmony_ci	TP_PROTO(unsigned int value1, unsigned int value2,
25962306a36Sopenharmony_ci		 unsigned int value3),
26062306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3),
26162306a36Sopenharmony_ci	TP_STRUCT__entry(
26262306a36Sopenharmony_ci		__field(	unsigned int,	value1		)
26362306a36Sopenharmony_ci		__field(	unsigned int,	value2		)
26462306a36Sopenharmony_ci		__field(	unsigned int,	value3		)
26562306a36Sopenharmony_ci	),
26662306a36Sopenharmony_ci	TP_fast_assign(
26762306a36Sopenharmony_ci		__entry->value1	= 	value1;
26862306a36Sopenharmony_ci		__entry->value2	= 	value2;
26962306a36Sopenharmony_ci		__entry->value3	= 	value3;
27062306a36Sopenharmony_ci	),
27162306a36Sopenharmony_ci	TP_printk("%u %u %u", __entry->value1, __entry->value2, __entry->value3)
27262306a36Sopenharmony_ci);
27362306a36Sopenharmony_ci
27462306a36Sopenharmony_ci#define DEFINE_OCFS2_UINT_UINT_UINT_EVENT(name)	\
27562306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__uint_uint_uint, name,	\
27662306a36Sopenharmony_ci	TP_PROTO(unsigned int value1, unsigned int value2,	\
27762306a36Sopenharmony_ci		 unsigned int value3),	\
27862306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3))
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_ull_ull,
28162306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1,
28262306a36Sopenharmony_ci		 unsigned long long value2, unsigned long long value3),
28362306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3),
28462306a36Sopenharmony_ci	TP_STRUCT__entry(
28562306a36Sopenharmony_ci		__field(unsigned long long, value1)
28662306a36Sopenharmony_ci		__field(unsigned long long, value2)
28762306a36Sopenharmony_ci		__field(unsigned long long, value3)
28862306a36Sopenharmony_ci	),
28962306a36Sopenharmony_ci	TP_fast_assign(
29062306a36Sopenharmony_ci		__entry->value1 = value1;
29162306a36Sopenharmony_ci		__entry->value2 = value2;
29262306a36Sopenharmony_ci		__entry->value3 = value3;
29362306a36Sopenharmony_ci	),
29462306a36Sopenharmony_ci	TP_printk("%llu %llu %llu",
29562306a36Sopenharmony_ci		  __entry->value1, __entry->value2, __entry->value3)
29662306a36Sopenharmony_ci);
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_ULL_ULL_EVENT(name)	\
29962306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_ull_ull, name,	\
30062306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1, unsigned long long value2,	\
30162306a36Sopenharmony_ci		 unsigned long long value3),	\
30262306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3))
30362306a36Sopenharmony_ci
30462306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_int_int_int,
30562306a36Sopenharmony_ci	TP_PROTO(unsigned long long ull, int value1, int value2, int value3),
30662306a36Sopenharmony_ci	TP_ARGS(ull, value1, value2, value3),
30762306a36Sopenharmony_ci	TP_STRUCT__entry(
30862306a36Sopenharmony_ci		__field(	unsigned long long,	ull	)
30962306a36Sopenharmony_ci		__field(	int,	value1			)
31062306a36Sopenharmony_ci		__field(	int,	value2			)
31162306a36Sopenharmony_ci		__field(	int,	value3			)
31262306a36Sopenharmony_ci	),
31362306a36Sopenharmony_ci	TP_fast_assign(
31462306a36Sopenharmony_ci		__entry->ull		= ull;
31562306a36Sopenharmony_ci		__entry->value1		= value1;
31662306a36Sopenharmony_ci		__entry->value2		= value2;
31762306a36Sopenharmony_ci		__entry->value3		= value3;
31862306a36Sopenharmony_ci	),
31962306a36Sopenharmony_ci	TP_printk("%llu %d %d %d",
32062306a36Sopenharmony_ci		  __entry->ull, __entry->value1,
32162306a36Sopenharmony_ci		  __entry->value2, __entry->value3)
32262306a36Sopenharmony_ci);
32362306a36Sopenharmony_ci
32462306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(name)	\
32562306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_int_int_int, name,	\
32662306a36Sopenharmony_ci	TP_PROTO(unsigned long long ull, int value1,	\
32762306a36Sopenharmony_ci		 int value2, int value3),	\
32862306a36Sopenharmony_ci	TP_ARGS(ull, value1, value2, value3))
32962306a36Sopenharmony_ci
33062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_uint_uint_uint,
33162306a36Sopenharmony_ci	TP_PROTO(unsigned long long ull, unsigned int value1,
33262306a36Sopenharmony_ci		 unsigned int value2, unsigned int value3),
33362306a36Sopenharmony_ci	TP_ARGS(ull, value1, value2, value3),
33462306a36Sopenharmony_ci	TP_STRUCT__entry(
33562306a36Sopenharmony_ci		__field(unsigned long long, ull)
33662306a36Sopenharmony_ci		__field(unsigned int, value1)
33762306a36Sopenharmony_ci		__field(unsigned int, value2)
33862306a36Sopenharmony_ci		__field(unsigned int, value3)
33962306a36Sopenharmony_ci	),
34062306a36Sopenharmony_ci	TP_fast_assign(
34162306a36Sopenharmony_ci		__entry->ull = ull;
34262306a36Sopenharmony_ci		__entry->value1 = value1;
34362306a36Sopenharmony_ci		__entry->value2	= value2;
34462306a36Sopenharmony_ci		__entry->value3	= value3;
34562306a36Sopenharmony_ci	),
34662306a36Sopenharmony_ci	TP_printk("%llu %u %u %u",
34762306a36Sopenharmony_ci		  __entry->ull, __entry->value1,
34862306a36Sopenharmony_ci		  __entry->value2, __entry->value3)
34962306a36Sopenharmony_ci);
35062306a36Sopenharmony_ci
35162306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(name)	\
35262306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_uint_uint_uint, name,	\
35362306a36Sopenharmony_ci	TP_PROTO(unsigned long long ull, unsigned int value1,	\
35462306a36Sopenharmony_ci		 unsigned int value2, unsigned int value3),	\
35562306a36Sopenharmony_ci	TP_ARGS(ull, value1, value2, value3))
35662306a36Sopenharmony_ci
35762306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__ull_ull_uint_uint,
35862306a36Sopenharmony_ci	TP_PROTO(unsigned long long value1, unsigned long long value2,
35962306a36Sopenharmony_ci		 unsigned int value3, unsigned int value4),
36062306a36Sopenharmony_ci	TP_ARGS(value1, value2, value3, value4),
36162306a36Sopenharmony_ci	TP_STRUCT__entry(
36262306a36Sopenharmony_ci		__field(unsigned long long, value1)
36362306a36Sopenharmony_ci		__field(unsigned long long, value2)
36462306a36Sopenharmony_ci		__field(unsigned int, value3)
36562306a36Sopenharmony_ci		__field(unsigned int, value4)
36662306a36Sopenharmony_ci	),
36762306a36Sopenharmony_ci	TP_fast_assign(
36862306a36Sopenharmony_ci		__entry->value1 = value1;
36962306a36Sopenharmony_ci		__entry->value2 = value2;
37062306a36Sopenharmony_ci		__entry->value3 = value3;
37162306a36Sopenharmony_ci		__entry->value4 = value4;
37262306a36Sopenharmony_ci	),
37362306a36Sopenharmony_ci	TP_printk("%llu %llu %u %u",
37462306a36Sopenharmony_ci		  __entry->value1, __entry->value2,
37562306a36Sopenharmony_ci		  __entry->value3, __entry->value4)
37662306a36Sopenharmony_ci);
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ci#define DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(name)	\
37962306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__ull_ull_uint_uint, name,	\
38062306a36Sopenharmony_ci	TP_PROTO(unsigned long long ull, unsigned long long ull1,	\
38162306a36Sopenharmony_ci		 unsigned int value2, unsigned int value3),	\
38262306a36Sopenharmony_ci	TP_ARGS(ull, ull1, value2, value3))
38362306a36Sopenharmony_ci
38462306a36Sopenharmony_ci/* Trace events for fs/ocfs2/alloc.c. */
38562306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__btree_ops,
38662306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner,\
38762306a36Sopenharmony_ci		 unsigned int value1, unsigned int value2),
38862306a36Sopenharmony_ci	TP_ARGS(owner, value1, value2),
38962306a36Sopenharmony_ci	TP_STRUCT__entry(
39062306a36Sopenharmony_ci		__field(unsigned long long, owner)
39162306a36Sopenharmony_ci		__field(unsigned int, value1)
39262306a36Sopenharmony_ci		__field(unsigned int, value2)
39362306a36Sopenharmony_ci	),
39462306a36Sopenharmony_ci	TP_fast_assign(
39562306a36Sopenharmony_ci		__entry->owner = owner;
39662306a36Sopenharmony_ci		__entry->value1 = value1;
39762306a36Sopenharmony_ci		__entry->value2	= value2;
39862306a36Sopenharmony_ci	),
39962306a36Sopenharmony_ci	TP_printk("%llu %u %u",
40062306a36Sopenharmony_ci		  __entry->owner, __entry->value1, __entry->value2)
40162306a36Sopenharmony_ci);
40262306a36Sopenharmony_ci
40362306a36Sopenharmony_ci#define DEFINE_OCFS2_BTREE_EVENT(name)	\
40462306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__btree_ops, name,	\
40562306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner,	\
40662306a36Sopenharmony_ci		 unsigned int value1, unsigned int value2),	\
40762306a36Sopenharmony_ci	TP_ARGS(owner, value1, value2))
40862306a36Sopenharmony_ci
40962306a36Sopenharmony_ciDEFINE_OCFS2_BTREE_EVENT(ocfs2_adjust_rightmost_branch);
41062306a36Sopenharmony_ci
41162306a36Sopenharmony_ciDEFINE_OCFS2_BTREE_EVENT(ocfs2_rotate_tree_right);
41262306a36Sopenharmony_ci
41362306a36Sopenharmony_ciDEFINE_OCFS2_BTREE_EVENT(ocfs2_append_rec_to_path);
41462306a36Sopenharmony_ci
41562306a36Sopenharmony_ciDEFINE_OCFS2_BTREE_EVENT(ocfs2_insert_extent_start);
41662306a36Sopenharmony_ci
41762306a36Sopenharmony_ciDEFINE_OCFS2_BTREE_EVENT(ocfs2_add_clusters_in_btree);
41862306a36Sopenharmony_ci
41962306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_num_free_extents);
42062306a36Sopenharmony_ci
42162306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_complete_edge_insert);
42262306a36Sopenharmony_ci
42362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_grow_tree,
42462306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner, int depth),
42562306a36Sopenharmony_ci	TP_ARGS(owner, depth),
42662306a36Sopenharmony_ci	TP_STRUCT__entry(
42762306a36Sopenharmony_ci		__field(unsigned long long, owner)
42862306a36Sopenharmony_ci		__field(int, depth)
42962306a36Sopenharmony_ci	),
43062306a36Sopenharmony_ci	TP_fast_assign(
43162306a36Sopenharmony_ci		__entry->owner = owner;
43262306a36Sopenharmony_ci		__entry->depth = depth;
43362306a36Sopenharmony_ci	),
43462306a36Sopenharmony_ci	TP_printk("%llu %d", __entry->owner, __entry->depth)
43562306a36Sopenharmony_ci);
43662306a36Sopenharmony_ci
43762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_rotate_subtree,
43862306a36Sopenharmony_ci	TP_PROTO(int subtree_root, unsigned long long blkno,
43962306a36Sopenharmony_ci		 int depth),
44062306a36Sopenharmony_ci	TP_ARGS(subtree_root, blkno, depth),
44162306a36Sopenharmony_ci	TP_STRUCT__entry(
44262306a36Sopenharmony_ci		__field(int, subtree_root)
44362306a36Sopenharmony_ci		__field(unsigned long long, blkno)
44462306a36Sopenharmony_ci		__field(int, depth)
44562306a36Sopenharmony_ci	),
44662306a36Sopenharmony_ci	TP_fast_assign(
44762306a36Sopenharmony_ci		__entry->subtree_root = subtree_root;
44862306a36Sopenharmony_ci		__entry->blkno = blkno;
44962306a36Sopenharmony_ci		__entry->depth = depth;
45062306a36Sopenharmony_ci	),
45162306a36Sopenharmony_ci	TP_printk("%d %llu %d", __entry->subtree_root,
45262306a36Sopenharmony_ci		  __entry->blkno, __entry->depth)
45362306a36Sopenharmony_ci);
45462306a36Sopenharmony_ci
45562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_insert_extent,
45662306a36Sopenharmony_ci	TP_PROTO(unsigned int ins_appending, unsigned int ins_contig,
45762306a36Sopenharmony_ci		 int ins_contig_index, int free_records, int ins_tree_depth),
45862306a36Sopenharmony_ci	TP_ARGS(ins_appending, ins_contig, ins_contig_index, free_records,
45962306a36Sopenharmony_ci		ins_tree_depth),
46062306a36Sopenharmony_ci	TP_STRUCT__entry(
46162306a36Sopenharmony_ci		__field(unsigned int, ins_appending)
46262306a36Sopenharmony_ci		__field(unsigned int, ins_contig)
46362306a36Sopenharmony_ci		__field(int, ins_contig_index)
46462306a36Sopenharmony_ci		__field(int, free_records)
46562306a36Sopenharmony_ci		__field(int, ins_tree_depth)
46662306a36Sopenharmony_ci	),
46762306a36Sopenharmony_ci	TP_fast_assign(
46862306a36Sopenharmony_ci		__entry->ins_appending = ins_appending;
46962306a36Sopenharmony_ci		__entry->ins_contig = ins_contig;
47062306a36Sopenharmony_ci		__entry->ins_contig_index = ins_contig_index;
47162306a36Sopenharmony_ci		__entry->free_records = free_records;
47262306a36Sopenharmony_ci		__entry->ins_tree_depth = ins_tree_depth;
47362306a36Sopenharmony_ci	),
47462306a36Sopenharmony_ci	TP_printk("%u %u %d %d %d",
47562306a36Sopenharmony_ci		  __entry->ins_appending, __entry->ins_contig,
47662306a36Sopenharmony_ci		  __entry->ins_contig_index, __entry->free_records,
47762306a36Sopenharmony_ci		  __entry->ins_tree_depth)
47862306a36Sopenharmony_ci);
47962306a36Sopenharmony_ci
48062306a36Sopenharmony_ciTRACE_EVENT(ocfs2_split_extent,
48162306a36Sopenharmony_ci	TP_PROTO(int split_index, unsigned int c_contig_type,
48262306a36Sopenharmony_ci		 unsigned int c_has_empty_extent,
48362306a36Sopenharmony_ci		 unsigned int c_split_covers_rec),
48462306a36Sopenharmony_ci	TP_ARGS(split_index, c_contig_type,
48562306a36Sopenharmony_ci		c_has_empty_extent, c_split_covers_rec),
48662306a36Sopenharmony_ci	TP_STRUCT__entry(
48762306a36Sopenharmony_ci		__field(int, split_index)
48862306a36Sopenharmony_ci		__field(unsigned int, c_contig_type)
48962306a36Sopenharmony_ci		__field(unsigned int, c_has_empty_extent)
49062306a36Sopenharmony_ci		__field(unsigned int, c_split_covers_rec)
49162306a36Sopenharmony_ci	),
49262306a36Sopenharmony_ci	TP_fast_assign(
49362306a36Sopenharmony_ci		__entry->split_index = split_index;
49462306a36Sopenharmony_ci		__entry->c_contig_type = c_contig_type;
49562306a36Sopenharmony_ci		__entry->c_has_empty_extent = c_has_empty_extent;
49662306a36Sopenharmony_ci		__entry->c_split_covers_rec = c_split_covers_rec;
49762306a36Sopenharmony_ci	),
49862306a36Sopenharmony_ci	TP_printk("%d %u %u %u", __entry->split_index, __entry->c_contig_type,
49962306a36Sopenharmony_ci		  __entry->c_has_empty_extent, __entry->c_split_covers_rec)
50062306a36Sopenharmony_ci);
50162306a36Sopenharmony_ci
50262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_remove_extent,
50362306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner, unsigned int cpos,
50462306a36Sopenharmony_ci		 unsigned int len, int index,
50562306a36Sopenharmony_ci		 unsigned int e_cpos, unsigned int clusters),
50662306a36Sopenharmony_ci	TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
50762306a36Sopenharmony_ci	TP_STRUCT__entry(
50862306a36Sopenharmony_ci		__field(unsigned long long, owner)
50962306a36Sopenharmony_ci		__field(unsigned int, cpos)
51062306a36Sopenharmony_ci		__field(unsigned int, len)
51162306a36Sopenharmony_ci		__field(int, index)
51262306a36Sopenharmony_ci		__field(unsigned int, e_cpos)
51362306a36Sopenharmony_ci		__field(unsigned int, clusters)
51462306a36Sopenharmony_ci	),
51562306a36Sopenharmony_ci	TP_fast_assign(
51662306a36Sopenharmony_ci		__entry->owner = owner;
51762306a36Sopenharmony_ci		__entry->cpos = cpos;
51862306a36Sopenharmony_ci		__entry->len = len;
51962306a36Sopenharmony_ci		__entry->index = index;
52062306a36Sopenharmony_ci		__entry->e_cpos = e_cpos;
52162306a36Sopenharmony_ci		__entry->clusters = clusters;
52262306a36Sopenharmony_ci	),
52362306a36Sopenharmony_ci	TP_printk("%llu %u %u %d %u %u",
52462306a36Sopenharmony_ci		  __entry->owner, __entry->cpos, __entry->len, __entry->index,
52562306a36Sopenharmony_ci		  __entry->e_cpos, __entry->clusters)
52662306a36Sopenharmony_ci);
52762306a36Sopenharmony_ci
52862306a36Sopenharmony_ciTRACE_EVENT(ocfs2_commit_truncate,
52962306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int new_cpos,
53062306a36Sopenharmony_ci		 unsigned int clusters, unsigned int depth),
53162306a36Sopenharmony_ci	TP_ARGS(ino, new_cpos, clusters, depth),
53262306a36Sopenharmony_ci	TP_STRUCT__entry(
53362306a36Sopenharmony_ci		__field(unsigned long long, ino)
53462306a36Sopenharmony_ci		__field(unsigned int, new_cpos)
53562306a36Sopenharmony_ci		__field(unsigned int, clusters)
53662306a36Sopenharmony_ci		__field(unsigned int, depth)
53762306a36Sopenharmony_ci	),
53862306a36Sopenharmony_ci	TP_fast_assign(
53962306a36Sopenharmony_ci		__entry->ino = ino;
54062306a36Sopenharmony_ci		__entry->new_cpos = new_cpos;
54162306a36Sopenharmony_ci		__entry->clusters = clusters;
54262306a36Sopenharmony_ci		__entry->depth = depth;
54362306a36Sopenharmony_ci	),
54462306a36Sopenharmony_ci	TP_printk("%llu %u %u %u",
54562306a36Sopenharmony_ci		  __entry->ino, __entry->new_cpos,
54662306a36Sopenharmony_ci		  __entry->clusters, __entry->depth)
54762306a36Sopenharmony_ci);
54862306a36Sopenharmony_ci
54962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_validate_extent_block,
55062306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno),
55162306a36Sopenharmony_ci	TP_ARGS(blkno),
55262306a36Sopenharmony_ci	TP_STRUCT__entry(
55362306a36Sopenharmony_ci		__field(unsigned long long, blkno)
55462306a36Sopenharmony_ci	),
55562306a36Sopenharmony_ci	TP_fast_assign(
55662306a36Sopenharmony_ci		__entry->blkno = blkno;
55762306a36Sopenharmony_ci	),
55862306a36Sopenharmony_ci	TP_printk("%llu ", __entry->blkno)
55962306a36Sopenharmony_ci);
56062306a36Sopenharmony_ci
56162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_rotate_leaf,
56262306a36Sopenharmony_ci	TP_PROTO(unsigned int insert_cpos, int insert_index,
56362306a36Sopenharmony_ci		 int has_empty, int next_free,
56462306a36Sopenharmony_ci		 unsigned int l_count),
56562306a36Sopenharmony_ci	TP_ARGS(insert_cpos, insert_index, has_empty,
56662306a36Sopenharmony_ci		next_free, l_count),
56762306a36Sopenharmony_ci	TP_STRUCT__entry(
56862306a36Sopenharmony_ci		__field(unsigned int, insert_cpos)
56962306a36Sopenharmony_ci		__field(int, insert_index)
57062306a36Sopenharmony_ci		__field(int, has_empty)
57162306a36Sopenharmony_ci		__field(int, next_free)
57262306a36Sopenharmony_ci		__field(unsigned int, l_count)
57362306a36Sopenharmony_ci	),
57462306a36Sopenharmony_ci	TP_fast_assign(
57562306a36Sopenharmony_ci		__entry->insert_cpos = insert_cpos;
57662306a36Sopenharmony_ci		__entry->insert_index = insert_index;
57762306a36Sopenharmony_ci		__entry->has_empty = has_empty;
57862306a36Sopenharmony_ci		__entry->next_free = next_free;
57962306a36Sopenharmony_ci		__entry->l_count = l_count;
58062306a36Sopenharmony_ci	),
58162306a36Sopenharmony_ci	TP_printk("%u %d %d %d %u", __entry->insert_cpos,
58262306a36Sopenharmony_ci		  __entry->insert_index, __entry->has_empty,
58362306a36Sopenharmony_ci		  __entry->next_free, __entry->l_count)
58462306a36Sopenharmony_ci);
58562306a36Sopenharmony_ci
58662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_add_clusters_in_btree_ret,
58762306a36Sopenharmony_ci	TP_PROTO(int status, int reason, int err),
58862306a36Sopenharmony_ci	TP_ARGS(status, reason, err),
58962306a36Sopenharmony_ci	TP_STRUCT__entry(
59062306a36Sopenharmony_ci		__field(int, status)
59162306a36Sopenharmony_ci		__field(int, reason)
59262306a36Sopenharmony_ci		__field(int, err)
59362306a36Sopenharmony_ci	),
59462306a36Sopenharmony_ci	TP_fast_assign(
59562306a36Sopenharmony_ci		__entry->status = status;
59662306a36Sopenharmony_ci		__entry->reason = reason;
59762306a36Sopenharmony_ci		__entry->err = err;
59862306a36Sopenharmony_ci	),
59962306a36Sopenharmony_ci	TP_printk("%d %d %d", __entry->status,
60062306a36Sopenharmony_ci		  __entry->reason, __entry->err)
60162306a36Sopenharmony_ci);
60262306a36Sopenharmony_ci
60362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_mark_extent_written,
60462306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner, unsigned int cpos,
60562306a36Sopenharmony_ci		 unsigned int len, unsigned int phys),
60662306a36Sopenharmony_ci	TP_ARGS(owner, cpos, len, phys),
60762306a36Sopenharmony_ci	TP_STRUCT__entry(
60862306a36Sopenharmony_ci		__field(unsigned long long, owner)
60962306a36Sopenharmony_ci		__field(unsigned int, cpos)
61062306a36Sopenharmony_ci		__field(unsigned int, len)
61162306a36Sopenharmony_ci		__field(unsigned int, phys)
61262306a36Sopenharmony_ci	),
61362306a36Sopenharmony_ci	TP_fast_assign(
61462306a36Sopenharmony_ci		__entry->owner = owner;
61562306a36Sopenharmony_ci		__entry->cpos = cpos;
61662306a36Sopenharmony_ci		__entry->len = len;
61762306a36Sopenharmony_ci		__entry->phys = phys;
61862306a36Sopenharmony_ci	),
61962306a36Sopenharmony_ci	TP_printk("%llu %u %u %u",
62062306a36Sopenharmony_ci		  __entry->owner, __entry->cpos,
62162306a36Sopenharmony_ci		  __entry->len, __entry->phys)
62262306a36Sopenharmony_ci);
62362306a36Sopenharmony_ci
62462306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__truncate_log_ops,
62562306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno, int index,
62662306a36Sopenharmony_ci		 unsigned int start, unsigned int num),
62762306a36Sopenharmony_ci	TP_ARGS(blkno, index, start, num),
62862306a36Sopenharmony_ci	TP_STRUCT__entry(
62962306a36Sopenharmony_ci		__field(unsigned long long, blkno)
63062306a36Sopenharmony_ci		__field(int, index)
63162306a36Sopenharmony_ci		__field(unsigned int, start)
63262306a36Sopenharmony_ci		__field(unsigned int, num)
63362306a36Sopenharmony_ci	),
63462306a36Sopenharmony_ci	TP_fast_assign(
63562306a36Sopenharmony_ci		__entry->blkno = blkno;
63662306a36Sopenharmony_ci		__entry->index = index;
63762306a36Sopenharmony_ci		__entry->start = start;
63862306a36Sopenharmony_ci		__entry->num = num;
63962306a36Sopenharmony_ci	),
64062306a36Sopenharmony_ci	TP_printk("%llu %d %u %u",
64162306a36Sopenharmony_ci		  __entry->blkno, __entry->index,
64262306a36Sopenharmony_ci		  __entry->start, __entry->num)
64362306a36Sopenharmony_ci);
64462306a36Sopenharmony_ci
64562306a36Sopenharmony_ci#define DEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(name)	\
64662306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__truncate_log_ops, name,	\
64762306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno, int index,	\
64862306a36Sopenharmony_ci		 unsigned int start, unsigned int num),	\
64962306a36Sopenharmony_ci	TP_ARGS(blkno, index, start, num))
65062306a36Sopenharmony_ci
65162306a36Sopenharmony_ciDEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(ocfs2_truncate_log_append);
65262306a36Sopenharmony_ci
65362306a36Sopenharmony_ciDEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(ocfs2_replay_truncate_records);
65462306a36Sopenharmony_ci
65562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_flush_truncate_log);
65662306a36Sopenharmony_ci
65762306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_begin_truncate_log_recovery);
65862306a36Sopenharmony_ci
65962306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_truncate_log_recovery_num);
66062306a36Sopenharmony_ci
66162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_complete_truncate_log_recovery);
66262306a36Sopenharmony_ci
66362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_free_cached_blocks);
66462306a36Sopenharmony_ci
66562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_cache_cluster_dealloc);
66662306a36Sopenharmony_ci
66762306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_run_deallocs);
66862306a36Sopenharmony_ci
66962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_cache_block_dealloc,
67062306a36Sopenharmony_ci	TP_PROTO(int type, int slot, unsigned long long suballoc,
67162306a36Sopenharmony_ci		 unsigned long long blkno, unsigned int bit),
67262306a36Sopenharmony_ci	TP_ARGS(type, slot, suballoc, blkno, bit),
67362306a36Sopenharmony_ci	TP_STRUCT__entry(
67462306a36Sopenharmony_ci		__field(int, type)
67562306a36Sopenharmony_ci		__field(int, slot)
67662306a36Sopenharmony_ci		__field(unsigned long long, suballoc)
67762306a36Sopenharmony_ci		__field(unsigned long long, blkno)
67862306a36Sopenharmony_ci		__field(unsigned int, bit)
67962306a36Sopenharmony_ci	),
68062306a36Sopenharmony_ci	TP_fast_assign(
68162306a36Sopenharmony_ci		__entry->type = type;
68262306a36Sopenharmony_ci		__entry->slot = slot;
68362306a36Sopenharmony_ci		__entry->suballoc = suballoc;
68462306a36Sopenharmony_ci		__entry->blkno = blkno;
68562306a36Sopenharmony_ci		__entry->bit = bit;
68662306a36Sopenharmony_ci	),
68762306a36Sopenharmony_ci	TP_printk("%d %d %llu %llu %u",
68862306a36Sopenharmony_ci		  __entry->type, __entry->slot, __entry->suballoc,
68962306a36Sopenharmony_ci		  __entry->blkno, __entry->bit)
69062306a36Sopenharmony_ci);
69162306a36Sopenharmony_ci
69262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_trim_extent,
69362306a36Sopenharmony_ci	TP_PROTO(struct super_block *sb, unsigned long long blk,
69462306a36Sopenharmony_ci		 unsigned long long count),
69562306a36Sopenharmony_ci	TP_ARGS(sb, blk, count),
69662306a36Sopenharmony_ci	TP_STRUCT__entry(
69762306a36Sopenharmony_ci		__field(int, dev_major)
69862306a36Sopenharmony_ci		__field(int, dev_minor)
69962306a36Sopenharmony_ci		__field(unsigned long long, blk)
70062306a36Sopenharmony_ci		__field(__u64,	count)
70162306a36Sopenharmony_ci	),
70262306a36Sopenharmony_ci	TP_fast_assign(
70362306a36Sopenharmony_ci		__entry->dev_major = MAJOR(sb->s_dev);
70462306a36Sopenharmony_ci		__entry->dev_minor = MINOR(sb->s_dev);
70562306a36Sopenharmony_ci		__entry->blk = blk;
70662306a36Sopenharmony_ci		__entry->count = count;
70762306a36Sopenharmony_ci	),
70862306a36Sopenharmony_ci	TP_printk("%d %d %llu %llu",
70962306a36Sopenharmony_ci		  __entry->dev_major, __entry->dev_minor,
71062306a36Sopenharmony_ci		  __entry->blk, __entry->count)
71162306a36Sopenharmony_ci);
71262306a36Sopenharmony_ci
71362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_trim_group);
71462306a36Sopenharmony_ci
71562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_trim_mainbm);
71662306a36Sopenharmony_ci
71762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_trim_fs);
71862306a36Sopenharmony_ci
71962306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/alloc.c. */
72062306a36Sopenharmony_ci
72162306a36Sopenharmony_ci/* Trace events for fs/ocfs2/localalloc.c. */
72262306a36Sopenharmony_ci
72362306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_la_set_sizes);
72462306a36Sopenharmony_ci
72562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_alloc_should_use_local);
72662306a36Sopenharmony_ci
72762306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_load_local_alloc);
72862306a36Sopenharmony_ci
72962306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_begin_local_alloc_recovery);
73062306a36Sopenharmony_ci
73162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_reserve_local_alloc_bits);
73262306a36Sopenharmony_ci
73362306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_local_alloc_count_bits);
73462306a36Sopenharmony_ci
73562306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_local_alloc_find_clear_bits_search_bitmap);
73662306a36Sopenharmony_ci
73762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_local_alloc_find_clear_bits);
73862306a36Sopenharmony_ci
73962306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_sync_local_to_main);
74062306a36Sopenharmony_ci
74162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_sync_local_to_main_free,
74262306a36Sopenharmony_ci	TP_PROTO(int count, int bit, unsigned long long start_blk,
74362306a36Sopenharmony_ci		 unsigned long long blkno),
74462306a36Sopenharmony_ci	TP_ARGS(count, bit, start_blk, blkno),
74562306a36Sopenharmony_ci	TP_STRUCT__entry(
74662306a36Sopenharmony_ci		__field(int, count)
74762306a36Sopenharmony_ci		__field(int, bit)
74862306a36Sopenharmony_ci		__field(unsigned long long, start_blk)
74962306a36Sopenharmony_ci		__field(unsigned long long, blkno)
75062306a36Sopenharmony_ci	),
75162306a36Sopenharmony_ci	TP_fast_assign(
75262306a36Sopenharmony_ci		__entry->count = count;
75362306a36Sopenharmony_ci		__entry->bit = bit;
75462306a36Sopenharmony_ci		__entry->start_blk = start_blk;
75562306a36Sopenharmony_ci		__entry->blkno = blkno;
75662306a36Sopenharmony_ci	),
75762306a36Sopenharmony_ci	TP_printk("%d %d %llu %llu",
75862306a36Sopenharmony_ci		  __entry->count, __entry->bit, __entry->start_blk,
75962306a36Sopenharmony_ci		  __entry->blkno)
76062306a36Sopenharmony_ci);
76162306a36Sopenharmony_ci
76262306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_local_alloc_new_window);
76362306a36Sopenharmony_ci
76462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_local_alloc_new_window_result);
76562306a36Sopenharmony_ci
76662306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/localalloc.c. */
76762306a36Sopenharmony_ci
76862306a36Sopenharmony_ci/* Trace events for fs/ocfs2/resize.c. */
76962306a36Sopenharmony_ci
77062306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_update_last_group_and_inode);
77162306a36Sopenharmony_ci
77262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_group_extend);
77362306a36Sopenharmony_ci
77462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_group_add);
77562306a36Sopenharmony_ci
77662306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/resize.c. */
77762306a36Sopenharmony_ci
77862306a36Sopenharmony_ci/* Trace events for fs/ocfs2/suballoc.c. */
77962306a36Sopenharmony_ci
78062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_group_descriptor);
78162306a36Sopenharmony_ci
78262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_contig);
78362306a36Sopenharmony_ci
78462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_discontig);
78562306a36Sopenharmony_ci
78662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_block_group_alloc);
78762306a36Sopenharmony_ci
78862306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_nospc);
78962306a36Sopenharmony_ci
79062306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_no_new_group);
79162306a36Sopenharmony_ci
79262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_reserve_new_inode_new_group);
79362306a36Sopenharmony_ci
79462306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_set_bits);
79562306a36Sopenharmony_ci
79662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_relink_block_group,
79762306a36Sopenharmony_ci	TP_PROTO(unsigned long long i_blkno, unsigned int chain,
79862306a36Sopenharmony_ci		 unsigned long long bg_blkno,
79962306a36Sopenharmony_ci		 unsigned long long prev_blkno),
80062306a36Sopenharmony_ci	TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno),
80162306a36Sopenharmony_ci	TP_STRUCT__entry(
80262306a36Sopenharmony_ci		__field(unsigned long long, i_blkno)
80362306a36Sopenharmony_ci		__field(unsigned int, chain)
80462306a36Sopenharmony_ci		__field(unsigned long long, bg_blkno)
80562306a36Sopenharmony_ci		__field(unsigned long long, prev_blkno)
80662306a36Sopenharmony_ci	),
80762306a36Sopenharmony_ci	TP_fast_assign(
80862306a36Sopenharmony_ci		__entry->i_blkno = i_blkno;
80962306a36Sopenharmony_ci		__entry->chain = chain;
81062306a36Sopenharmony_ci		__entry->bg_blkno = bg_blkno;
81162306a36Sopenharmony_ci		__entry->prev_blkno = prev_blkno;
81262306a36Sopenharmony_ci	),
81362306a36Sopenharmony_ci	TP_printk("%llu %u %llu %llu",
81462306a36Sopenharmony_ci		  __entry->i_blkno, __entry->chain, __entry->bg_blkno,
81562306a36Sopenharmony_ci		  __entry->prev_blkno)
81662306a36Sopenharmony_ci);
81762306a36Sopenharmony_ci
81862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_cluster_group_search_wrong_max_bits);
81962306a36Sopenharmony_ci
82062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cluster_group_search_max_block);
82162306a36Sopenharmony_ci
82262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_block_group_search_max_block);
82362306a36Sopenharmony_ci
82462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_search_chain_begin);
82562306a36Sopenharmony_ci
82662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_succ);
82762306a36Sopenharmony_ci
82862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_end);
82962306a36Sopenharmony_ci
83062306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_claim_suballoc_bits);
83162306a36Sopenharmony_ci
83262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_claim_new_inode_at_loc);
83362306a36Sopenharmony_ci
83462306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_clear_bits);
83562306a36Sopenharmony_ci
83662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_free_suballoc_bits,
83762306a36Sopenharmony_ci	TP_PROTO(unsigned long long inode, unsigned long long group,
83862306a36Sopenharmony_ci		 unsigned int start_bit, unsigned int count),
83962306a36Sopenharmony_ci	TP_ARGS(inode, group, start_bit, count),
84062306a36Sopenharmony_ci	TP_STRUCT__entry(
84162306a36Sopenharmony_ci		__field(unsigned long long, inode)
84262306a36Sopenharmony_ci		__field(unsigned long long, group)
84362306a36Sopenharmony_ci		__field(unsigned int, start_bit)
84462306a36Sopenharmony_ci		__field(unsigned int, count)
84562306a36Sopenharmony_ci	),
84662306a36Sopenharmony_ci	TP_fast_assign(
84762306a36Sopenharmony_ci		__entry->inode = inode;
84862306a36Sopenharmony_ci		__entry->group = group;
84962306a36Sopenharmony_ci		__entry->start_bit = start_bit;
85062306a36Sopenharmony_ci		__entry->count = count;
85162306a36Sopenharmony_ci	),
85262306a36Sopenharmony_ci	TP_printk("%llu %llu %u %u", __entry->inode, __entry->group,
85362306a36Sopenharmony_ci		  __entry->start_bit, __entry->count)
85462306a36Sopenharmony_ci);
85562306a36Sopenharmony_ci
85662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_free_clusters,
85762306a36Sopenharmony_ci	TP_PROTO(unsigned long long bg_blkno, unsigned long long start_blk,
85862306a36Sopenharmony_ci		 unsigned int start_bit, unsigned int count),
85962306a36Sopenharmony_ci	TP_ARGS(bg_blkno, start_blk, start_bit, count),
86062306a36Sopenharmony_ci	TP_STRUCT__entry(
86162306a36Sopenharmony_ci		__field(unsigned long long, bg_blkno)
86262306a36Sopenharmony_ci		__field(unsigned long long, start_blk)
86362306a36Sopenharmony_ci		__field(unsigned int, start_bit)
86462306a36Sopenharmony_ci		__field(unsigned int, count)
86562306a36Sopenharmony_ci	),
86662306a36Sopenharmony_ci	TP_fast_assign(
86762306a36Sopenharmony_ci		__entry->bg_blkno = bg_blkno;
86862306a36Sopenharmony_ci		__entry->start_blk = start_blk;
86962306a36Sopenharmony_ci		__entry->start_bit = start_bit;
87062306a36Sopenharmony_ci		__entry->count = count;
87162306a36Sopenharmony_ci	),
87262306a36Sopenharmony_ci	TP_printk("%llu %llu %u %u", __entry->bg_blkno, __entry->start_blk,
87362306a36Sopenharmony_ci		  __entry->start_bit, __entry->count)
87462306a36Sopenharmony_ci);
87562306a36Sopenharmony_ci
87662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_get_suballoc_slot_bit);
87762306a36Sopenharmony_ci
87862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_test_suballoc_bit);
87962306a36Sopenharmony_ci
88062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_test_inode_bit);
88162306a36Sopenharmony_ci
88262306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/suballoc.c. */
88362306a36Sopenharmony_ci
88462306a36Sopenharmony_ci/* Trace events for fs/ocfs2/refcounttree.c. */
88562306a36Sopenharmony_ci
88662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_refcount_block);
88762306a36Sopenharmony_ci
88862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_purge_refcount_trees);
88962306a36Sopenharmony_ci
89062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_create_refcount_tree);
89162306a36Sopenharmony_ci
89262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_create_refcount_tree_blkno);
89362306a36Sopenharmony_ci
89462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_change_refcount_rec);
89562306a36Sopenharmony_ci
89662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_expand_inline_ref_root);
89762306a36Sopenharmony_ci
89862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_divide_leaf_refcount_block);
89962306a36Sopenharmony_ci
90062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_new_leaf_refcount_block);
90162306a36Sopenharmony_ci
90262306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__refcount_tree_ops,
90362306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno, int index,
90462306a36Sopenharmony_ci		 unsigned long long cpos,
90562306a36Sopenharmony_ci		 unsigned int clusters, unsigned int refcount),
90662306a36Sopenharmony_ci	TP_ARGS(blkno, index, cpos, clusters, refcount),
90762306a36Sopenharmony_ci	TP_STRUCT__entry(
90862306a36Sopenharmony_ci		__field(unsigned long long, blkno)
90962306a36Sopenharmony_ci		__field(int, index)
91062306a36Sopenharmony_ci		__field(unsigned long long, cpos)
91162306a36Sopenharmony_ci		__field(unsigned int, clusters)
91262306a36Sopenharmony_ci		__field(unsigned int, refcount)
91362306a36Sopenharmony_ci	),
91462306a36Sopenharmony_ci	TP_fast_assign(
91562306a36Sopenharmony_ci		__entry->blkno = blkno;
91662306a36Sopenharmony_ci		__entry->index = index;
91762306a36Sopenharmony_ci		__entry->cpos = cpos;
91862306a36Sopenharmony_ci		__entry->clusters = clusters;
91962306a36Sopenharmony_ci		__entry->refcount = refcount;
92062306a36Sopenharmony_ci	),
92162306a36Sopenharmony_ci	TP_printk("%llu %d %llu %u %u", __entry->blkno, __entry->index,
92262306a36Sopenharmony_ci		  __entry->cpos, __entry->clusters, __entry->refcount)
92362306a36Sopenharmony_ci);
92462306a36Sopenharmony_ci
92562306a36Sopenharmony_ci#define DEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(name)	\
92662306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__refcount_tree_ops, name,		\
92762306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno, int index,	\
92862306a36Sopenharmony_ci		 unsigned long long cpos,		\
92962306a36Sopenharmony_ci		 unsigned int count, unsigned int refcount),	\
93062306a36Sopenharmony_ci	TP_ARGS(blkno, index, cpos, count, refcount))
93162306a36Sopenharmony_ci
93262306a36Sopenharmony_ciDEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(ocfs2_insert_refcount_rec);
93362306a36Sopenharmony_ci
93462306a36Sopenharmony_ciTRACE_EVENT(ocfs2_split_refcount_rec,
93562306a36Sopenharmony_ci	TP_PROTO(unsigned long long cpos,
93662306a36Sopenharmony_ci		 unsigned int clusters, unsigned int refcount,
93762306a36Sopenharmony_ci		 unsigned long long split_cpos,
93862306a36Sopenharmony_ci		 unsigned int split_clusters, unsigned int split_refcount),
93962306a36Sopenharmony_ci	TP_ARGS(cpos, clusters, refcount,
94062306a36Sopenharmony_ci		split_cpos, split_clusters, split_refcount),
94162306a36Sopenharmony_ci	TP_STRUCT__entry(
94262306a36Sopenharmony_ci		__field(unsigned long long, cpos)
94362306a36Sopenharmony_ci		__field(unsigned int, clusters)
94462306a36Sopenharmony_ci		__field(unsigned int, refcount)
94562306a36Sopenharmony_ci		__field(unsigned long long, split_cpos)
94662306a36Sopenharmony_ci		__field(unsigned int, split_clusters)
94762306a36Sopenharmony_ci		__field(unsigned int, split_refcount)
94862306a36Sopenharmony_ci	),
94962306a36Sopenharmony_ci	TP_fast_assign(
95062306a36Sopenharmony_ci		__entry->cpos = cpos;
95162306a36Sopenharmony_ci		__entry->clusters = clusters;
95262306a36Sopenharmony_ci		__entry->refcount = refcount;
95362306a36Sopenharmony_ci		__entry->split_cpos = split_cpos;
95462306a36Sopenharmony_ci		__entry->split_clusters = split_clusters;
95562306a36Sopenharmony_ci		__entry->split_refcount	= split_refcount;
95662306a36Sopenharmony_ci	),
95762306a36Sopenharmony_ci	TP_printk("%llu %u %u %llu %u %u",
95862306a36Sopenharmony_ci		  __entry->cpos, __entry->clusters, __entry->refcount,
95962306a36Sopenharmony_ci		  __entry->split_cpos, __entry->split_clusters,
96062306a36Sopenharmony_ci		  __entry->split_refcount)
96162306a36Sopenharmony_ci);
96262306a36Sopenharmony_ci
96362306a36Sopenharmony_ciDEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(ocfs2_split_refcount_rec_insert);
96462306a36Sopenharmony_ci
96562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_increase_refcount_begin);
96662306a36Sopenharmony_ci
96762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_increase_refcount_change);
96862306a36Sopenharmony_ci
96962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_increase_refcount_insert);
97062306a36Sopenharmony_ci
97162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_increase_refcount_split);
97262306a36Sopenharmony_ci
97362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_remove_refcount_extent);
97462306a36Sopenharmony_ci
97562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_restore_refcount_block);
97662306a36Sopenharmony_ci
97762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_decrease_refcount_rec);
97862306a36Sopenharmony_ci
97962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_decrease_refcount,
98062306a36Sopenharmony_ci	TP_PROTO(unsigned long long owner,
98162306a36Sopenharmony_ci		 unsigned long long cpos,
98262306a36Sopenharmony_ci		 unsigned int len, int delete),
98362306a36Sopenharmony_ci	TP_ARGS(owner, cpos, len, delete),
98462306a36Sopenharmony_ci	TP_STRUCT__entry(
98562306a36Sopenharmony_ci		__field(unsigned long long, owner)
98662306a36Sopenharmony_ci		__field(unsigned long long, cpos)
98762306a36Sopenharmony_ci		__field(unsigned int, len)
98862306a36Sopenharmony_ci		__field(int, delete)
98962306a36Sopenharmony_ci	),
99062306a36Sopenharmony_ci	TP_fast_assign(
99162306a36Sopenharmony_ci		__entry->owner = owner;
99262306a36Sopenharmony_ci		__entry->cpos = cpos;
99362306a36Sopenharmony_ci		__entry->len = len;
99462306a36Sopenharmony_ci		__entry->delete = delete;
99562306a36Sopenharmony_ci	),
99662306a36Sopenharmony_ci	TP_printk("%llu %llu %u %d",
99762306a36Sopenharmony_ci		  __entry->owner, __entry->cpos, __entry->len, __entry->delete)
99862306a36Sopenharmony_ci);
99962306a36Sopenharmony_ci
100062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_mark_extent_refcounted);
100162306a36Sopenharmony_ci
100262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_calc_refcount_meta_credits);
100362306a36Sopenharmony_ci
100462306a36Sopenharmony_ciTRACE_EVENT(ocfs2_calc_refcount_meta_credits_iterate,
100562306a36Sopenharmony_ci	TP_PROTO(int recs_add, unsigned long long cpos,
100662306a36Sopenharmony_ci		 unsigned int clusters, unsigned long long r_cpos,
100762306a36Sopenharmony_ci		 unsigned int r_clusters, unsigned int refcount, int index),
100862306a36Sopenharmony_ci	TP_ARGS(recs_add, cpos, clusters, r_cpos, r_clusters, refcount, index),
100962306a36Sopenharmony_ci	TP_STRUCT__entry(
101062306a36Sopenharmony_ci		__field(int, recs_add)
101162306a36Sopenharmony_ci		__field(unsigned long long, cpos)
101262306a36Sopenharmony_ci		__field(unsigned int, clusters)
101362306a36Sopenharmony_ci		__field(unsigned long long, r_cpos)
101462306a36Sopenharmony_ci		__field(unsigned int, r_clusters)
101562306a36Sopenharmony_ci		__field(unsigned int, refcount)
101662306a36Sopenharmony_ci		__field(int, index)
101762306a36Sopenharmony_ci	),
101862306a36Sopenharmony_ci	TP_fast_assign(
101962306a36Sopenharmony_ci		__entry->recs_add = recs_add;
102062306a36Sopenharmony_ci		__entry->cpos = cpos;
102162306a36Sopenharmony_ci		__entry->clusters = clusters;
102262306a36Sopenharmony_ci		__entry->r_cpos = r_cpos;
102362306a36Sopenharmony_ci		__entry->r_clusters = r_clusters;
102462306a36Sopenharmony_ci		__entry->refcount = refcount;
102562306a36Sopenharmony_ci		__entry->index = index;
102662306a36Sopenharmony_ci	),
102762306a36Sopenharmony_ci	TP_printk("%d %llu %u %llu %u %u %d",
102862306a36Sopenharmony_ci		  __entry->recs_add, __entry->cpos, __entry->clusters,
102962306a36Sopenharmony_ci		  __entry->r_cpos, __entry->r_clusters,
103062306a36Sopenharmony_ci		  __entry->refcount, __entry->index)
103162306a36Sopenharmony_ci);
103262306a36Sopenharmony_ci
103362306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_add_refcount_flag);
103462306a36Sopenharmony_ci
103562306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_prepare_refcount_change_for_del);
103662306a36Sopenharmony_ci
103762306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_lock_refcount_allocators);
103862306a36Sopenharmony_ci
103962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_duplicate_clusters_by_page);
104062306a36Sopenharmony_ci
104162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_duplicate_clusters_by_jbd);
104262306a36Sopenharmony_ci
104362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_clear_ext_refcount,
104462306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int cpos,
104562306a36Sopenharmony_ci		 unsigned int len, unsigned int p_cluster,
104662306a36Sopenharmony_ci		 unsigned int ext_flags),
104762306a36Sopenharmony_ci	TP_ARGS(ino, cpos, len, p_cluster, ext_flags),
104862306a36Sopenharmony_ci	TP_STRUCT__entry(
104962306a36Sopenharmony_ci		__field(unsigned long long, ino)
105062306a36Sopenharmony_ci		__field(unsigned int, cpos)
105162306a36Sopenharmony_ci		__field(unsigned int, len)
105262306a36Sopenharmony_ci		__field(unsigned int, p_cluster)
105362306a36Sopenharmony_ci		__field(unsigned int, ext_flags)
105462306a36Sopenharmony_ci	),
105562306a36Sopenharmony_ci	TP_fast_assign(
105662306a36Sopenharmony_ci		__entry->ino = ino;
105762306a36Sopenharmony_ci		__entry->cpos = cpos;
105862306a36Sopenharmony_ci		__entry->len = len;
105962306a36Sopenharmony_ci		__entry->p_cluster = p_cluster;
106062306a36Sopenharmony_ci		__entry->ext_flags = ext_flags;
106162306a36Sopenharmony_ci	),
106262306a36Sopenharmony_ci	TP_printk("%llu %u %u %u %u",
106362306a36Sopenharmony_ci		  __entry->ino, __entry->cpos, __entry->len,
106462306a36Sopenharmony_ci		  __entry->p_cluster, __entry->ext_flags)
106562306a36Sopenharmony_ci);
106662306a36Sopenharmony_ci
106762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_replace_clusters,
106862306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int cpos,
106962306a36Sopenharmony_ci		 unsigned int old, unsigned int new, unsigned int len,
107062306a36Sopenharmony_ci		 unsigned int ext_flags),
107162306a36Sopenharmony_ci	TP_ARGS(ino, cpos, old, new, len, ext_flags),
107262306a36Sopenharmony_ci	TP_STRUCT__entry(
107362306a36Sopenharmony_ci		__field(unsigned long long, ino)
107462306a36Sopenharmony_ci		__field(unsigned int, cpos)
107562306a36Sopenharmony_ci		__field(unsigned int, old)
107662306a36Sopenharmony_ci		__field(unsigned int, new)
107762306a36Sopenharmony_ci		__field(unsigned int, len)
107862306a36Sopenharmony_ci		__field(unsigned int, ext_flags)
107962306a36Sopenharmony_ci	),
108062306a36Sopenharmony_ci	TP_fast_assign(
108162306a36Sopenharmony_ci		__entry->ino = ino;
108262306a36Sopenharmony_ci		__entry->cpos = cpos;
108362306a36Sopenharmony_ci		__entry->old = old;
108462306a36Sopenharmony_ci		__entry->new = new;
108562306a36Sopenharmony_ci		__entry->len = len;
108662306a36Sopenharmony_ci		__entry->ext_flags = ext_flags;
108762306a36Sopenharmony_ci	),
108862306a36Sopenharmony_ci	TP_printk("%llu %u %u %u %u %u",
108962306a36Sopenharmony_ci		  __entry->ino, __entry->cpos, __entry->old, __entry->new,
109062306a36Sopenharmony_ci		  __entry->len, __entry->ext_flags)
109162306a36Sopenharmony_ci);
109262306a36Sopenharmony_ci
109362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_make_clusters_writable);
109462306a36Sopenharmony_ci
109562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_refcount_cow_hunk,
109662306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int cpos,
109762306a36Sopenharmony_ci		 unsigned int write_len, unsigned int max_cpos,
109862306a36Sopenharmony_ci		 unsigned int cow_start, unsigned int cow_len),
109962306a36Sopenharmony_ci	TP_ARGS(ino, cpos, write_len, max_cpos, cow_start, cow_len),
110062306a36Sopenharmony_ci	TP_STRUCT__entry(
110162306a36Sopenharmony_ci		__field(unsigned long long, ino)
110262306a36Sopenharmony_ci		__field(unsigned int, cpos)
110362306a36Sopenharmony_ci		__field(unsigned int, write_len)
110462306a36Sopenharmony_ci		__field(unsigned int, max_cpos)
110562306a36Sopenharmony_ci		__field(unsigned int, cow_start)
110662306a36Sopenharmony_ci		__field(unsigned int, cow_len)
110762306a36Sopenharmony_ci	),
110862306a36Sopenharmony_ci	TP_fast_assign(
110962306a36Sopenharmony_ci		__entry->ino = ino;
111062306a36Sopenharmony_ci		__entry->cpos = cpos;
111162306a36Sopenharmony_ci		__entry->write_len = write_len;
111262306a36Sopenharmony_ci		__entry->max_cpos = max_cpos;
111362306a36Sopenharmony_ci		__entry->cow_start = cow_start;
111462306a36Sopenharmony_ci		__entry->cow_len = cow_len;
111562306a36Sopenharmony_ci	),
111662306a36Sopenharmony_ci	TP_printk("%llu %u %u %u %u %u",
111762306a36Sopenharmony_ci		  __entry->ino, __entry->cpos, __entry->write_len,
111862306a36Sopenharmony_ci		  __entry->max_cpos, __entry->cow_start, __entry->cow_len)
111962306a36Sopenharmony_ci);
112062306a36Sopenharmony_ci
112162306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/refcounttree.c. */
112262306a36Sopenharmony_ci
112362306a36Sopenharmony_ci/* Trace events for fs/ocfs2/aops.c. */
112462306a36Sopenharmony_ci
112562306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__get_block,
112662306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned long long iblock,
112762306a36Sopenharmony_ci		 void *bh_result, int create),
112862306a36Sopenharmony_ci	TP_ARGS(ino, iblock, bh_result, create),
112962306a36Sopenharmony_ci	TP_STRUCT__entry(
113062306a36Sopenharmony_ci		__field(unsigned long long, ino)
113162306a36Sopenharmony_ci		__field(unsigned long long, iblock)
113262306a36Sopenharmony_ci		__field(void *, bh_result)
113362306a36Sopenharmony_ci		__field(int, create)
113462306a36Sopenharmony_ci	),
113562306a36Sopenharmony_ci	TP_fast_assign(
113662306a36Sopenharmony_ci		__entry->ino = ino;
113762306a36Sopenharmony_ci		__entry->iblock = iblock;
113862306a36Sopenharmony_ci		__entry->bh_result = bh_result;
113962306a36Sopenharmony_ci		__entry->create = create;
114062306a36Sopenharmony_ci	),
114162306a36Sopenharmony_ci	TP_printk("%llu %llu %p %d",
114262306a36Sopenharmony_ci		  __entry->ino, __entry->iblock,
114362306a36Sopenharmony_ci		  __entry->bh_result, __entry->create)
114462306a36Sopenharmony_ci);
114562306a36Sopenharmony_ci
114662306a36Sopenharmony_ci#define DEFINE_OCFS2_GET_BLOCK_EVENT(name)	\
114762306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__get_block, name,	\
114862306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned long long iblock,	\
114962306a36Sopenharmony_ci		 void *bh_result, int create),	\
115062306a36Sopenharmony_ci	TP_ARGS(ino, iblock, bh_result, create))
115162306a36Sopenharmony_ci
115262306a36Sopenharmony_ciDEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_symlink_get_block);
115362306a36Sopenharmony_ci
115462306a36Sopenharmony_ciDEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_get_block);
115562306a36Sopenharmony_ci
115662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_get_block_end);
115762306a36Sopenharmony_ci
115862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_readpage);
115962306a36Sopenharmony_ci
116062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_writepage);
116162306a36Sopenharmony_ci
116262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_bmap);
116362306a36Sopenharmony_ci
116462306a36Sopenharmony_ciTRACE_EVENT(ocfs2_try_to_write_inline_data,
116562306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int len,
116662306a36Sopenharmony_ci		 unsigned long long pos, unsigned int flags),
116762306a36Sopenharmony_ci	TP_ARGS(ino, len, pos, flags),
116862306a36Sopenharmony_ci	TP_STRUCT__entry(
116962306a36Sopenharmony_ci		__field(unsigned long long, ino)
117062306a36Sopenharmony_ci		__field(unsigned int, len)
117162306a36Sopenharmony_ci		__field(unsigned long long, pos)
117262306a36Sopenharmony_ci		__field(unsigned int, flags)
117362306a36Sopenharmony_ci	),
117462306a36Sopenharmony_ci	TP_fast_assign(
117562306a36Sopenharmony_ci		__entry->ino = ino;
117662306a36Sopenharmony_ci		__entry->len = len;
117762306a36Sopenharmony_ci		__entry->pos = pos;
117862306a36Sopenharmony_ci		__entry->flags = flags;
117962306a36Sopenharmony_ci	),
118062306a36Sopenharmony_ci	TP_printk("%llu %u %llu 0x%x",
118162306a36Sopenharmony_ci		  __entry->ino, __entry->len, __entry->pos, __entry->flags)
118262306a36Sopenharmony_ci);
118362306a36Sopenharmony_ci
118462306a36Sopenharmony_ciTRACE_EVENT(ocfs2_write_begin_nolock,
118562306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino,
118662306a36Sopenharmony_ci		 long long i_size, unsigned int i_clusters,
118762306a36Sopenharmony_ci		 unsigned long long pos, unsigned int len,
118862306a36Sopenharmony_ci		 unsigned int flags, void *page,
118962306a36Sopenharmony_ci		 unsigned int clusters, unsigned int extents_to_split),
119062306a36Sopenharmony_ci	TP_ARGS(ino, i_size, i_clusters, pos, len, flags,
119162306a36Sopenharmony_ci		page, clusters, extents_to_split),
119262306a36Sopenharmony_ci	TP_STRUCT__entry(
119362306a36Sopenharmony_ci		__field(unsigned long long, ino)
119462306a36Sopenharmony_ci		__field(long long, i_size)
119562306a36Sopenharmony_ci		__field(unsigned int, i_clusters)
119662306a36Sopenharmony_ci		__field(unsigned long long, pos)
119762306a36Sopenharmony_ci		__field(unsigned int, len)
119862306a36Sopenharmony_ci		__field(unsigned int, flags)
119962306a36Sopenharmony_ci		__field(void *, page)
120062306a36Sopenharmony_ci		__field(unsigned int, clusters)
120162306a36Sopenharmony_ci		__field(unsigned int, extents_to_split)
120262306a36Sopenharmony_ci	),
120362306a36Sopenharmony_ci	TP_fast_assign(
120462306a36Sopenharmony_ci		__entry->ino = ino;
120562306a36Sopenharmony_ci		__entry->i_size = i_size;
120662306a36Sopenharmony_ci		__entry->i_clusters = i_clusters;
120762306a36Sopenharmony_ci		__entry->pos = pos;
120862306a36Sopenharmony_ci		__entry->len = len;
120962306a36Sopenharmony_ci		__entry->flags = flags;
121062306a36Sopenharmony_ci		__entry->page = page;
121162306a36Sopenharmony_ci		__entry->clusters = clusters;
121262306a36Sopenharmony_ci		__entry->extents_to_split = extents_to_split;
121362306a36Sopenharmony_ci	),
121462306a36Sopenharmony_ci	TP_printk("%llu %lld %u %llu %u %u %p %u %u",
121562306a36Sopenharmony_ci		  __entry->ino, __entry->i_size, __entry->i_clusters,
121662306a36Sopenharmony_ci		  __entry->pos, __entry->len,
121762306a36Sopenharmony_ci		  __entry->flags, __entry->page, __entry->clusters,
121862306a36Sopenharmony_ci		  __entry->extents_to_split)
121962306a36Sopenharmony_ci);
122062306a36Sopenharmony_ci
122162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_write_end_inline,
122262306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino,
122362306a36Sopenharmony_ci		 unsigned long long pos, unsigned int copied,
122462306a36Sopenharmony_ci		 unsigned int id_count, unsigned int features),
122562306a36Sopenharmony_ci	TP_ARGS(ino, pos, copied, id_count, features),
122662306a36Sopenharmony_ci	TP_STRUCT__entry(
122762306a36Sopenharmony_ci		__field(unsigned long long, ino)
122862306a36Sopenharmony_ci		__field(unsigned long long, pos)
122962306a36Sopenharmony_ci		__field(unsigned int, copied)
123062306a36Sopenharmony_ci		__field(unsigned int, id_count)
123162306a36Sopenharmony_ci		__field(unsigned int, features)
123262306a36Sopenharmony_ci	),
123362306a36Sopenharmony_ci	TP_fast_assign(
123462306a36Sopenharmony_ci		__entry->ino = ino;
123562306a36Sopenharmony_ci		__entry->pos = pos;
123662306a36Sopenharmony_ci		__entry->copied = copied;
123762306a36Sopenharmony_ci		__entry->id_count = id_count;
123862306a36Sopenharmony_ci		__entry->features = features;
123962306a36Sopenharmony_ci	),
124062306a36Sopenharmony_ci	TP_printk("%llu %llu %u %u %u",
124162306a36Sopenharmony_ci		  __entry->ino, __entry->pos, __entry->copied,
124262306a36Sopenharmony_ci		  __entry->id_count, __entry->features)
124362306a36Sopenharmony_ci);
124462306a36Sopenharmony_ci
124562306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/aops.c. */
124662306a36Sopenharmony_ci
124762306a36Sopenharmony_ci/* Trace events for fs/ocfs2/mmap.c. */
124862306a36Sopenharmony_ci
124962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_fault,
125062306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino,
125162306a36Sopenharmony_ci		 void *area, void *page, unsigned long pgoff),
125262306a36Sopenharmony_ci	TP_ARGS(ino, area, page, pgoff),
125362306a36Sopenharmony_ci	TP_STRUCT__entry(
125462306a36Sopenharmony_ci		__field(unsigned long long, ino)
125562306a36Sopenharmony_ci		__field(void *, area)
125662306a36Sopenharmony_ci		__field(void *, page)
125762306a36Sopenharmony_ci		__field(unsigned long, pgoff)
125862306a36Sopenharmony_ci	),
125962306a36Sopenharmony_ci	TP_fast_assign(
126062306a36Sopenharmony_ci		__entry->ino = ino;
126162306a36Sopenharmony_ci		__entry->area = area;
126262306a36Sopenharmony_ci		__entry->page = page;
126362306a36Sopenharmony_ci		__entry->pgoff = pgoff;
126462306a36Sopenharmony_ci	),
126562306a36Sopenharmony_ci	TP_printk("%llu %p %p %lu",
126662306a36Sopenharmony_ci		  __entry->ino, __entry->area, __entry->page, __entry->pgoff)
126762306a36Sopenharmony_ci);
126862306a36Sopenharmony_ci
126962306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/mmap.c. */
127062306a36Sopenharmony_ci
127162306a36Sopenharmony_ci/* Trace events for fs/ocfs2/file.c. */
127262306a36Sopenharmony_ci
127362306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__file_ops,
127462306a36Sopenharmony_ci	TP_PROTO(void *inode, void *file, void *dentry,
127562306a36Sopenharmony_ci		 unsigned long long ino,
127662306a36Sopenharmony_ci		 unsigned int d_len, const unsigned char *d_name,
127762306a36Sopenharmony_ci		 unsigned long long para),
127862306a36Sopenharmony_ci	TP_ARGS(inode, file, dentry, ino, d_len, d_name, para),
127962306a36Sopenharmony_ci	TP_STRUCT__entry(
128062306a36Sopenharmony_ci		__field(void *, inode)
128162306a36Sopenharmony_ci		__field(void *, file)
128262306a36Sopenharmony_ci		__field(void *, dentry)
128362306a36Sopenharmony_ci		__field(unsigned long long, ino)
128462306a36Sopenharmony_ci		__field(unsigned int, d_len)
128562306a36Sopenharmony_ci		__string(d_name, d_name)
128662306a36Sopenharmony_ci		__field(unsigned long long, para)
128762306a36Sopenharmony_ci	),
128862306a36Sopenharmony_ci	TP_fast_assign(
128962306a36Sopenharmony_ci		__entry->inode = inode;
129062306a36Sopenharmony_ci		__entry->file = file;
129162306a36Sopenharmony_ci		__entry->dentry = dentry;
129262306a36Sopenharmony_ci		__entry->ino = ino;
129362306a36Sopenharmony_ci		__entry->d_len = d_len;
129462306a36Sopenharmony_ci		__assign_str(d_name, d_name);
129562306a36Sopenharmony_ci		__entry->para = para;
129662306a36Sopenharmony_ci	),
129762306a36Sopenharmony_ci	TP_printk("%p %p %p %llu %llu %.*s", __entry->inode, __entry->file,
129862306a36Sopenharmony_ci		  __entry->dentry, __entry->ino, __entry->para,
129962306a36Sopenharmony_ci		  __entry->d_len, __get_str(d_name))
130062306a36Sopenharmony_ci);
130162306a36Sopenharmony_ci
130262306a36Sopenharmony_ci#define DEFINE_OCFS2_FILE_OPS(name)				\
130362306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__file_ops, name,				\
130462306a36Sopenharmony_ciTP_PROTO(void *inode, void *file, void *dentry,			\
130562306a36Sopenharmony_ci	 unsigned long long ino,				\
130662306a36Sopenharmony_ci	 unsigned int d_len, const unsigned char *d_name,	\
130762306a36Sopenharmony_ci	 unsigned long long mode),				\
130862306a36Sopenharmony_ci	TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode))
130962306a36Sopenharmony_ci
131062306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_file_open);
131162306a36Sopenharmony_ci
131262306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_file_release);
131362306a36Sopenharmony_ci
131462306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_sync_file);
131562306a36Sopenharmony_ci
131662306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_file_write_iter);
131762306a36Sopenharmony_ci
131862306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_file_read_iter);
131962306a36Sopenharmony_ci
132062306a36Sopenharmony_ciDEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_read);
132162306a36Sopenharmony_ci
132262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file);
132362306a36Sopenharmony_ci
132462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_truncate_file_error);
132562306a36Sopenharmony_ci
132662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_extend_allocation,
132762306a36Sopenharmony_ci	TP_PROTO(unsigned long long ip_blkno, unsigned long long size,
132862306a36Sopenharmony_ci		 unsigned int clusters, unsigned int clusters_to_add,
132962306a36Sopenharmony_ci		 int why, int restart_func),
133062306a36Sopenharmony_ci	TP_ARGS(ip_blkno, size, clusters, clusters_to_add, why, restart_func),
133162306a36Sopenharmony_ci	TP_STRUCT__entry(
133262306a36Sopenharmony_ci		__field(unsigned long long, ip_blkno)
133362306a36Sopenharmony_ci		__field(unsigned long long, size)
133462306a36Sopenharmony_ci		__field(unsigned int, clusters)
133562306a36Sopenharmony_ci		__field(unsigned int, clusters_to_add)
133662306a36Sopenharmony_ci		__field(int, why)
133762306a36Sopenharmony_ci		__field(int, restart_func)
133862306a36Sopenharmony_ci	),
133962306a36Sopenharmony_ci	TP_fast_assign(
134062306a36Sopenharmony_ci		__entry->ip_blkno = ip_blkno;
134162306a36Sopenharmony_ci		__entry->size = size;
134262306a36Sopenharmony_ci		__entry->clusters = clusters;
134362306a36Sopenharmony_ci		__entry->clusters_to_add = clusters_to_add;
134462306a36Sopenharmony_ci		__entry->why = why;
134562306a36Sopenharmony_ci		__entry->restart_func = restart_func;
134662306a36Sopenharmony_ci	),
134762306a36Sopenharmony_ci	TP_printk("%llu %llu %u %u %d %d",
134862306a36Sopenharmony_ci		  __entry->ip_blkno, __entry->size, __entry->clusters,
134962306a36Sopenharmony_ci		  __entry->clusters_to_add, __entry->why, __entry->restart_func)
135062306a36Sopenharmony_ci);
135162306a36Sopenharmony_ci
135262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_extend_allocation_end,
135362306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino,
135462306a36Sopenharmony_ci		 unsigned int di_clusters, unsigned long long di_size,
135562306a36Sopenharmony_ci		 unsigned int ip_clusters, unsigned long long i_size),
135662306a36Sopenharmony_ci	TP_ARGS(ino, di_clusters, di_size, ip_clusters, i_size),
135762306a36Sopenharmony_ci	TP_STRUCT__entry(
135862306a36Sopenharmony_ci		__field(unsigned long long, ino)
135962306a36Sopenharmony_ci		__field(unsigned int, di_clusters)
136062306a36Sopenharmony_ci		__field(unsigned long long, di_size)
136162306a36Sopenharmony_ci		__field(unsigned int, ip_clusters)
136262306a36Sopenharmony_ci		__field(unsigned long long, i_size)
136362306a36Sopenharmony_ci	),
136462306a36Sopenharmony_ci	TP_fast_assign(
136562306a36Sopenharmony_ci		__entry->ino = ino;
136662306a36Sopenharmony_ci		__entry->di_clusters = di_clusters;
136762306a36Sopenharmony_ci		__entry->di_size = di_size;
136862306a36Sopenharmony_ci		__entry->ip_clusters = ip_clusters;
136962306a36Sopenharmony_ci		__entry->i_size = i_size;
137062306a36Sopenharmony_ci	),
137162306a36Sopenharmony_ci	TP_printk("%llu %u %llu %u %llu", __entry->ino, __entry->di_clusters,
137262306a36Sopenharmony_ci		  __entry->di_size, __entry->ip_clusters, __entry->i_size)
137362306a36Sopenharmony_ci);
137462306a36Sopenharmony_ci
137562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_write_zero_page,
137662306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino,
137762306a36Sopenharmony_ci		 unsigned long long abs_from, unsigned long long abs_to,
137862306a36Sopenharmony_ci		 unsigned long index, unsigned int zero_from,
137962306a36Sopenharmony_ci		 unsigned int zero_to),
138062306a36Sopenharmony_ci	TP_ARGS(ino, abs_from, abs_to, index, zero_from, zero_to),
138162306a36Sopenharmony_ci	TP_STRUCT__entry(
138262306a36Sopenharmony_ci		__field(unsigned long long, ino)
138362306a36Sopenharmony_ci		__field(unsigned long long, abs_from)
138462306a36Sopenharmony_ci		__field(unsigned long long, abs_to)
138562306a36Sopenharmony_ci		__field(unsigned long, index)
138662306a36Sopenharmony_ci		__field(unsigned int, zero_from)
138762306a36Sopenharmony_ci		__field(unsigned int, zero_to)
138862306a36Sopenharmony_ci	),
138962306a36Sopenharmony_ci	TP_fast_assign(
139062306a36Sopenharmony_ci		__entry->ino = ino;
139162306a36Sopenharmony_ci		__entry->abs_from = abs_from;
139262306a36Sopenharmony_ci		__entry->abs_to = abs_to;
139362306a36Sopenharmony_ci		__entry->index = index;
139462306a36Sopenharmony_ci		__entry->zero_from = zero_from;
139562306a36Sopenharmony_ci		__entry->zero_to = zero_to;
139662306a36Sopenharmony_ci	),
139762306a36Sopenharmony_ci	TP_printk("%llu %llu %llu %lu %u %u", __entry->ino,
139862306a36Sopenharmony_ci		  __entry->abs_from, __entry->abs_to,
139962306a36Sopenharmony_ci		  __entry->index, __entry->zero_from, __entry->zero_to)
140062306a36Sopenharmony_ci);
140162306a36Sopenharmony_ci
140262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_extend_range);
140362306a36Sopenharmony_ci
140462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_extend);
140562306a36Sopenharmony_ci
140662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_setattr,
140762306a36Sopenharmony_ci	TP_PROTO(void *inode, void *dentry,
140862306a36Sopenharmony_ci		 unsigned long long ino,
140962306a36Sopenharmony_ci		 unsigned int d_len, const unsigned char *d_name,
141062306a36Sopenharmony_ci		 unsigned int ia_valid, unsigned int ia_mode,
141162306a36Sopenharmony_ci		 unsigned int ia_uid, unsigned int ia_gid),
141262306a36Sopenharmony_ci	TP_ARGS(inode, dentry, ino, d_len, d_name,
141362306a36Sopenharmony_ci		ia_valid, ia_mode, ia_uid, ia_gid),
141462306a36Sopenharmony_ci	TP_STRUCT__entry(
141562306a36Sopenharmony_ci		__field(void *, inode)
141662306a36Sopenharmony_ci		__field(void *, dentry)
141762306a36Sopenharmony_ci		__field(unsigned long long, ino)
141862306a36Sopenharmony_ci		__field(unsigned int, d_len)
141962306a36Sopenharmony_ci		__string(d_name, d_name)
142062306a36Sopenharmony_ci		__field(unsigned int, ia_valid)
142162306a36Sopenharmony_ci		__field(unsigned int, ia_mode)
142262306a36Sopenharmony_ci		__field(unsigned int, ia_uid)
142362306a36Sopenharmony_ci		__field(unsigned int, ia_gid)
142462306a36Sopenharmony_ci	),
142562306a36Sopenharmony_ci	TP_fast_assign(
142662306a36Sopenharmony_ci		__entry->inode = inode;
142762306a36Sopenharmony_ci		__entry->dentry = dentry;
142862306a36Sopenharmony_ci		__entry->ino = ino;
142962306a36Sopenharmony_ci		__entry->d_len = d_len;
143062306a36Sopenharmony_ci		__assign_str(d_name, d_name);
143162306a36Sopenharmony_ci		__entry->ia_valid = ia_valid;
143262306a36Sopenharmony_ci		__entry->ia_mode = ia_mode;
143362306a36Sopenharmony_ci		__entry->ia_uid = ia_uid;
143462306a36Sopenharmony_ci		__entry->ia_gid = ia_gid;
143562306a36Sopenharmony_ci	),
143662306a36Sopenharmony_ci	TP_printk("%p %p %llu %.*s %u %u %u %u", __entry->inode,
143762306a36Sopenharmony_ci		  __entry->dentry, __entry->ino, __entry->d_len,
143862306a36Sopenharmony_ci		  __get_str(d_name), __entry->ia_valid, __entry->ia_mode,
143962306a36Sopenharmony_ci		  __entry->ia_uid, __entry->ia_gid)
144062306a36Sopenharmony_ci);
144162306a36Sopenharmony_ci
144262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_write_remove_suid);
144362306a36Sopenharmony_ci
144462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_partial_clusters);
144562306a36Sopenharmony_ci
144662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_zero_partial_clusters_range1);
144762306a36Sopenharmony_ci
144862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_zero_partial_clusters_range2);
144962306a36Sopenharmony_ci
145062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_remove_inode_range);
145162306a36Sopenharmony_ci
145262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_prepare_inode_for_write,
145362306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned long long saved_pos,
145462306a36Sopenharmony_ci		 unsigned long count, int wait),
145562306a36Sopenharmony_ci	TP_ARGS(ino, saved_pos, count, wait),
145662306a36Sopenharmony_ci	TP_STRUCT__entry(
145762306a36Sopenharmony_ci		__field(unsigned long long, ino)
145862306a36Sopenharmony_ci		__field(unsigned long long, saved_pos)
145962306a36Sopenharmony_ci		__field(unsigned long, count)
146062306a36Sopenharmony_ci		__field(int, wait)
146162306a36Sopenharmony_ci	),
146262306a36Sopenharmony_ci	TP_fast_assign(
146362306a36Sopenharmony_ci		__entry->ino = ino;
146462306a36Sopenharmony_ci		__entry->saved_pos = saved_pos;
146562306a36Sopenharmony_ci		__entry->count = count;
146662306a36Sopenharmony_ci		__entry->wait = wait;
146762306a36Sopenharmony_ci	),
146862306a36Sopenharmony_ci	TP_printk("%llu %llu %lu %d", __entry->ino,
146962306a36Sopenharmony_ci		  __entry->saved_pos, __entry->count, __entry->wait)
147062306a36Sopenharmony_ci);
147162306a36Sopenharmony_ci
147262306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(generic_file_read_iter_ret);
147362306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(filemap_splice_read_ret);
147462306a36Sopenharmony_ci
147562306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/file.c. */
147662306a36Sopenharmony_ci
147762306a36Sopenharmony_ci/* Trace events for fs/ocfs2/inode.c. */
147862306a36Sopenharmony_ci
147962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_iget_begin,
148062306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, unsigned int flags, int sysfile_type),
148162306a36Sopenharmony_ci	TP_ARGS(ino, flags, sysfile_type),
148262306a36Sopenharmony_ci	TP_STRUCT__entry(
148362306a36Sopenharmony_ci		__field(unsigned long long, ino)
148462306a36Sopenharmony_ci		__field(unsigned int, flags)
148562306a36Sopenharmony_ci		__field(int, sysfile_type)
148662306a36Sopenharmony_ci	),
148762306a36Sopenharmony_ci	TP_fast_assign(
148862306a36Sopenharmony_ci		__entry->ino = ino;
148962306a36Sopenharmony_ci		__entry->flags = flags;
149062306a36Sopenharmony_ci		__entry->sysfile_type = sysfile_type;
149162306a36Sopenharmony_ci	),
149262306a36Sopenharmony_ci	TP_printk("%llu %u %d", __entry->ino,
149362306a36Sopenharmony_ci		  __entry->flags, __entry->sysfile_type)
149462306a36Sopenharmony_ci);
149562306a36Sopenharmony_ci
149662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_iget5_locked);
149762306a36Sopenharmony_ci
149862306a36Sopenharmony_ciTRACE_EVENT(ocfs2_iget_end,
149962306a36Sopenharmony_ci	TP_PROTO(void *inode, unsigned long long ino),
150062306a36Sopenharmony_ci	TP_ARGS(inode, ino),
150162306a36Sopenharmony_ci	TP_STRUCT__entry(
150262306a36Sopenharmony_ci		__field(void *, inode)
150362306a36Sopenharmony_ci		__field(unsigned long long, ino)
150462306a36Sopenharmony_ci	),
150562306a36Sopenharmony_ci	TP_fast_assign(
150662306a36Sopenharmony_ci		__entry->inode = inode;
150762306a36Sopenharmony_ci		__entry->ino = ino;
150862306a36Sopenharmony_ci	),
150962306a36Sopenharmony_ci	TP_printk("%p %llu", __entry->inode, __entry->ino)
151062306a36Sopenharmony_ci);
151162306a36Sopenharmony_ci
151262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_find_actor,
151362306a36Sopenharmony_ci	TP_PROTO(void *inode, unsigned long long ino,
151462306a36Sopenharmony_ci		 void *args,  unsigned long long fi_blkno),
151562306a36Sopenharmony_ci	TP_ARGS(inode, ino, args, fi_blkno),
151662306a36Sopenharmony_ci	TP_STRUCT__entry(
151762306a36Sopenharmony_ci		__field(void *, inode)
151862306a36Sopenharmony_ci		__field(unsigned long long, ino)
151962306a36Sopenharmony_ci		__field(void *, args)
152062306a36Sopenharmony_ci		__field(unsigned long long, fi_blkno)
152162306a36Sopenharmony_ci	),
152262306a36Sopenharmony_ci	TP_fast_assign(
152362306a36Sopenharmony_ci		__entry->inode = inode;
152462306a36Sopenharmony_ci		__entry->ino = ino;
152562306a36Sopenharmony_ci		__entry->args = args;
152662306a36Sopenharmony_ci		__entry->fi_blkno = fi_blkno;
152762306a36Sopenharmony_ci	),
152862306a36Sopenharmony_ci	TP_printk("%p %llu %p %llu", __entry->inode, __entry->ino,
152962306a36Sopenharmony_ci		  __entry->args, __entry->fi_blkno)
153062306a36Sopenharmony_ci);
153162306a36Sopenharmony_ci
153262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_populate_inode);
153362306a36Sopenharmony_ci
153462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_read_locked_inode);
153562306a36Sopenharmony_ci
153662306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_check_orphan_recovery_state);
153762306a36Sopenharmony_ci
153862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_inode_block);
153962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_filecheck_validate_inode_block);
154062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_filecheck_repair_inode_block);
154162306a36Sopenharmony_ci
154262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_inode_is_valid_to_delete,
154362306a36Sopenharmony_ci	TP_PROTO(void *task, void *dc_task, unsigned long long ino,
154462306a36Sopenharmony_ci		 unsigned int flags),
154562306a36Sopenharmony_ci	TP_ARGS(task, dc_task, ino, flags),
154662306a36Sopenharmony_ci	TP_STRUCT__entry(
154762306a36Sopenharmony_ci		__field(void *, task)
154862306a36Sopenharmony_ci		__field(void *, dc_task)
154962306a36Sopenharmony_ci		__field(unsigned long long, ino)
155062306a36Sopenharmony_ci		__field(unsigned int, flags)
155162306a36Sopenharmony_ci	),
155262306a36Sopenharmony_ci	TP_fast_assign(
155362306a36Sopenharmony_ci		__entry->task = task;
155462306a36Sopenharmony_ci		__entry->dc_task = dc_task;
155562306a36Sopenharmony_ci		__entry->ino = ino;
155662306a36Sopenharmony_ci		__entry->flags = flags;
155762306a36Sopenharmony_ci	),
155862306a36Sopenharmony_ci	TP_printk("%p %p %llu %u", __entry->task, __entry->dc_task,
155962306a36Sopenharmony_ci		  __entry->ino, __entry->flags)
156062306a36Sopenharmony_ci);
156162306a36Sopenharmony_ci
156262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_query_inode_wipe_begin);
156362306a36Sopenharmony_ci
156462306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_query_inode_wipe_succ);
156562306a36Sopenharmony_ci
156662306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_query_inode_wipe_end);
156762306a36Sopenharmony_ci
156862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_cleanup_delete_inode);
156962306a36Sopenharmony_ci
157062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_delete_inode);
157162306a36Sopenharmony_ci
157262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_clear_inode);
157362306a36Sopenharmony_ci
157462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_drop_inode);
157562306a36Sopenharmony_ci
157662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_inode_revalidate,
157762306a36Sopenharmony_ci	TP_PROTO(void *inode, unsigned long long ino,
157862306a36Sopenharmony_ci		 unsigned int flags),
157962306a36Sopenharmony_ci	TP_ARGS(inode, ino, flags),
158062306a36Sopenharmony_ci	TP_STRUCT__entry(
158162306a36Sopenharmony_ci		__field(void *, inode)
158262306a36Sopenharmony_ci		__field(unsigned long long, ino)
158362306a36Sopenharmony_ci		__field(unsigned int, flags)
158462306a36Sopenharmony_ci	),
158562306a36Sopenharmony_ci	TP_fast_assign(
158662306a36Sopenharmony_ci		__entry->inode = inode;
158762306a36Sopenharmony_ci		__entry->ino = ino;
158862306a36Sopenharmony_ci		__entry->flags = flags;
158962306a36Sopenharmony_ci	),
159062306a36Sopenharmony_ci	TP_printk("%p %llu %u", __entry->inode, __entry->ino, __entry->flags)
159162306a36Sopenharmony_ci);
159262306a36Sopenharmony_ci
159362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty);
159462306a36Sopenharmony_ci
159562306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/inode.c. */
159662306a36Sopenharmony_ci
159762306a36Sopenharmony_ci/* Trace events for fs/ocfs2/extent_map.c. */
159862306a36Sopenharmony_ci
159962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_read_virt_blocks,
160062306a36Sopenharmony_ci	TP_PROTO(void *inode, unsigned long long vblock, int nr,
160162306a36Sopenharmony_ci		 void *bhs, unsigned int flags, void *validate),
160262306a36Sopenharmony_ci	TP_ARGS(inode, vblock, nr, bhs, flags, validate),
160362306a36Sopenharmony_ci	TP_STRUCT__entry(
160462306a36Sopenharmony_ci		__field(void *, inode)
160562306a36Sopenharmony_ci		__field(unsigned long long, vblock)
160662306a36Sopenharmony_ci		__field(int, nr)
160762306a36Sopenharmony_ci		__field(void *, bhs)
160862306a36Sopenharmony_ci		__field(unsigned int, flags)
160962306a36Sopenharmony_ci		__field(void *, validate)
161062306a36Sopenharmony_ci	),
161162306a36Sopenharmony_ci	TP_fast_assign(
161262306a36Sopenharmony_ci		__entry->inode = inode;
161362306a36Sopenharmony_ci		__entry->vblock = vblock;
161462306a36Sopenharmony_ci		__entry->nr = nr;
161562306a36Sopenharmony_ci		__entry->bhs = bhs;
161662306a36Sopenharmony_ci		__entry->flags = flags;
161762306a36Sopenharmony_ci		__entry->validate = validate;
161862306a36Sopenharmony_ci	),
161962306a36Sopenharmony_ci	TP_printk("%p %llu %d %p %x %p", __entry->inode, __entry->vblock,
162062306a36Sopenharmony_ci		  __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
162162306a36Sopenharmony_ci);
162262306a36Sopenharmony_ci
162362306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/extent_map.c. */
162462306a36Sopenharmony_ci
162562306a36Sopenharmony_ci/* Trace events for fs/ocfs2/slot_map.c. */
162662306a36Sopenharmony_ci
162762306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_refresh_slot_info);
162862306a36Sopenharmony_ci
162962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers);
163062306a36Sopenharmony_ci
163162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers_block);
163262306a36Sopenharmony_ci
163362306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_find_slot);
163462306a36Sopenharmony_ci
163562306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/slot_map.c. */
163662306a36Sopenharmony_ci
163762306a36Sopenharmony_ci/* Trace events for fs/ocfs2/heartbeat.c. */
163862306a36Sopenharmony_ci
163962306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_do_node_down);
164062306a36Sopenharmony_ci
164162306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/heartbeat.c. */
164262306a36Sopenharmony_ci
164362306a36Sopenharmony_ci/* Trace events for fs/ocfs2/super.c. */
164462306a36Sopenharmony_ci
164562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_remount,
164662306a36Sopenharmony_ci	TP_PROTO(unsigned long s_flags, unsigned long osb_flags, int flags),
164762306a36Sopenharmony_ci	TP_ARGS(s_flags, osb_flags, flags),
164862306a36Sopenharmony_ci	TP_STRUCT__entry(
164962306a36Sopenharmony_ci		__field(unsigned long, s_flags)
165062306a36Sopenharmony_ci		__field(unsigned long, osb_flags)
165162306a36Sopenharmony_ci		__field(int, flags)
165262306a36Sopenharmony_ci	),
165362306a36Sopenharmony_ci	TP_fast_assign(
165462306a36Sopenharmony_ci		__entry->s_flags = s_flags;
165562306a36Sopenharmony_ci		__entry->osb_flags = osb_flags;
165662306a36Sopenharmony_ci		__entry->flags = flags;
165762306a36Sopenharmony_ci	),
165862306a36Sopenharmony_ci	TP_printk("%lu %lu %d", __entry->s_flags,
165962306a36Sopenharmony_ci		  __entry->osb_flags, __entry->flags)
166062306a36Sopenharmony_ci);
166162306a36Sopenharmony_ci
166262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_fill_super,
166362306a36Sopenharmony_ci	TP_PROTO(void *sb, void *data, int silent),
166462306a36Sopenharmony_ci	TP_ARGS(sb, data, silent),
166562306a36Sopenharmony_ci	TP_STRUCT__entry(
166662306a36Sopenharmony_ci		__field(void *, sb)
166762306a36Sopenharmony_ci		__field(void *, data)
166862306a36Sopenharmony_ci		__field(int, silent)
166962306a36Sopenharmony_ci	),
167062306a36Sopenharmony_ci	TP_fast_assign(
167162306a36Sopenharmony_ci		__entry->sb = sb;
167262306a36Sopenharmony_ci		__entry->data = data;
167362306a36Sopenharmony_ci		__entry->silent = silent;
167462306a36Sopenharmony_ci	),
167562306a36Sopenharmony_ci	TP_printk("%p %p %d", __entry->sb,
167662306a36Sopenharmony_ci		  __entry->data, __entry->silent)
167762306a36Sopenharmony_ci);
167862306a36Sopenharmony_ci
167962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_parse_options,
168062306a36Sopenharmony_ci	TP_PROTO(int is_remount, char *options),
168162306a36Sopenharmony_ci	TP_ARGS(is_remount, options),
168262306a36Sopenharmony_ci	TP_STRUCT__entry(
168362306a36Sopenharmony_ci		__field(int, is_remount)
168462306a36Sopenharmony_ci		__string(options, options)
168562306a36Sopenharmony_ci	),
168662306a36Sopenharmony_ci	TP_fast_assign(
168762306a36Sopenharmony_ci		__entry->is_remount = is_remount;
168862306a36Sopenharmony_ci		__assign_str(options, options);
168962306a36Sopenharmony_ci	),
169062306a36Sopenharmony_ci	TP_printk("%d %s", __entry->is_remount, __get_str(options))
169162306a36Sopenharmony_ci);
169262306a36Sopenharmony_ci
169362306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_put_super);
169462306a36Sopenharmony_ci
169562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_statfs,
169662306a36Sopenharmony_ci	TP_PROTO(void *sb, void *buf),
169762306a36Sopenharmony_ci	TP_ARGS(sb, buf),
169862306a36Sopenharmony_ci	TP_STRUCT__entry(
169962306a36Sopenharmony_ci		__field(void *, sb)
170062306a36Sopenharmony_ci		__field(void *, buf)
170162306a36Sopenharmony_ci	),
170262306a36Sopenharmony_ci	TP_fast_assign(
170362306a36Sopenharmony_ci		__entry->sb = sb;
170462306a36Sopenharmony_ci		__entry->buf = buf;
170562306a36Sopenharmony_ci	),
170662306a36Sopenharmony_ci	TP_printk("%p %p", __entry->sb, __entry->buf)
170762306a36Sopenharmony_ci);
170862306a36Sopenharmony_ci
170962306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_dismount_volume);
171062306a36Sopenharmony_ci
171162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_initialize_super,
171262306a36Sopenharmony_ci	TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir,
171362306a36Sopenharmony_ci		 unsigned long long system_dir, int cluster_bits),
171462306a36Sopenharmony_ci	TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits),
171562306a36Sopenharmony_ci	TP_STRUCT__entry(
171662306a36Sopenharmony_ci		__string(label, label)
171762306a36Sopenharmony_ci		__string(uuid_str, uuid_str)
171862306a36Sopenharmony_ci		__field(unsigned long long, root_dir)
171962306a36Sopenharmony_ci		__field(unsigned long long, system_dir)
172062306a36Sopenharmony_ci		__field(int, cluster_bits)
172162306a36Sopenharmony_ci	),
172262306a36Sopenharmony_ci	TP_fast_assign(
172362306a36Sopenharmony_ci		__assign_str(label, label);
172462306a36Sopenharmony_ci		__assign_str(uuid_str, uuid_str);
172562306a36Sopenharmony_ci		__entry->root_dir = root_dir;
172662306a36Sopenharmony_ci		__entry->system_dir = system_dir;
172762306a36Sopenharmony_ci		__entry->cluster_bits = cluster_bits;
172862306a36Sopenharmony_ci	),
172962306a36Sopenharmony_ci	TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
173062306a36Sopenharmony_ci		  __entry->root_dir, __entry->system_dir, __entry->cluster_bits)
173162306a36Sopenharmony_ci);
173262306a36Sopenharmony_ci
173362306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/super.c. */
173462306a36Sopenharmony_ci
173562306a36Sopenharmony_ci/* Trace events for fs/ocfs2/xattr.c. */
173662306a36Sopenharmony_ci
173762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_xattr_block);
173862306a36Sopenharmony_ci
173962306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_xattr_extend_allocation);
174062306a36Sopenharmony_ci
174162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_init_xattr_set_ctxt,
174262306a36Sopenharmony_ci	TP_PROTO(const char *name, int meta, int clusters, int credits),
174362306a36Sopenharmony_ci	TP_ARGS(name, meta, clusters, credits),
174462306a36Sopenharmony_ci	TP_STRUCT__entry(
174562306a36Sopenharmony_ci		__string(name, name)
174662306a36Sopenharmony_ci		__field(int, meta)
174762306a36Sopenharmony_ci		__field(int, clusters)
174862306a36Sopenharmony_ci		__field(int, credits)
174962306a36Sopenharmony_ci	),
175062306a36Sopenharmony_ci	TP_fast_assign(
175162306a36Sopenharmony_ci		__assign_str(name, name);
175262306a36Sopenharmony_ci		__entry->meta = meta;
175362306a36Sopenharmony_ci		__entry->clusters = clusters;
175462306a36Sopenharmony_ci		__entry->credits = credits;
175562306a36Sopenharmony_ci	),
175662306a36Sopenharmony_ci	TP_printk("%s %d %d %d", __get_str(name), __entry->meta,
175762306a36Sopenharmony_ci		  __entry->clusters, __entry->credits)
175862306a36Sopenharmony_ci);
175962306a36Sopenharmony_ci
176062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__xattr_find,
176162306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, const char *name, int name_index,
176262306a36Sopenharmony_ci		 unsigned int hash, unsigned long long location,
176362306a36Sopenharmony_ci		 int xe_index),
176462306a36Sopenharmony_ci	TP_ARGS(ino, name, name_index, hash, location, xe_index),
176562306a36Sopenharmony_ci	TP_STRUCT__entry(
176662306a36Sopenharmony_ci		__field(unsigned long long, ino)
176762306a36Sopenharmony_ci		__string(name, name)
176862306a36Sopenharmony_ci		__field(int, name_index)
176962306a36Sopenharmony_ci		__field(unsigned int, hash)
177062306a36Sopenharmony_ci		__field(unsigned long long, location)
177162306a36Sopenharmony_ci		__field(int, xe_index)
177262306a36Sopenharmony_ci	),
177362306a36Sopenharmony_ci	TP_fast_assign(
177462306a36Sopenharmony_ci		__entry->ino = ino;
177562306a36Sopenharmony_ci		__assign_str(name, name);
177662306a36Sopenharmony_ci		__entry->name_index = name_index;
177762306a36Sopenharmony_ci		__entry->hash = hash;
177862306a36Sopenharmony_ci		__entry->location = location;
177962306a36Sopenharmony_ci		__entry->xe_index = xe_index;
178062306a36Sopenharmony_ci	),
178162306a36Sopenharmony_ci	TP_printk("%llu %s %d %u %llu %d", __entry->ino, __get_str(name),
178262306a36Sopenharmony_ci		  __entry->name_index, __entry->hash, __entry->location,
178362306a36Sopenharmony_ci		  __entry->xe_index)
178462306a36Sopenharmony_ci);
178562306a36Sopenharmony_ci
178662306a36Sopenharmony_ci#define DEFINE_OCFS2_XATTR_FIND_EVENT(name)					\
178762306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__xattr_find, name,					\
178862306a36Sopenharmony_ciTP_PROTO(unsigned long long ino, const char *name, int name_index,	\
178962306a36Sopenharmony_ci	 unsigned int hash, unsigned long long bucket,			\
179062306a36Sopenharmony_ci	 int xe_index),							\
179162306a36Sopenharmony_ci	TP_ARGS(ino, name, name_index, hash, bucket, xe_index))
179262306a36Sopenharmony_ci
179362306a36Sopenharmony_ciDEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_bucket_find);
179462306a36Sopenharmony_ci
179562306a36Sopenharmony_ciDEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find);
179662306a36Sopenharmony_ci
179762306a36Sopenharmony_ciDEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find_rec);
179862306a36Sopenharmony_ci
179962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_iterate_xattr_buckets);
180062306a36Sopenharmony_ci
180162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_iterate_xattr_bucket);
180262306a36Sopenharmony_ci
180362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cp_xattr_block_to_bucket_begin);
180462306a36Sopenharmony_ci
180562306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cp_xattr_block_to_bucket_end);
180662306a36Sopenharmony_ci
180762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block_begin);
180862306a36Sopenharmony_ci
180962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block);
181062306a36Sopenharmony_ci
181162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_defrag_xattr_bucket);
181262306a36Sopenharmony_ci
181362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_bucket_cross_cluster);
181462306a36Sopenharmony_ci
181562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_divide_xattr_bucket_begin);
181662306a36Sopenharmony_ci
181762306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_divide_xattr_bucket_move);
181862306a36Sopenharmony_ci
181962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_cp_xattr_bucket);
182062306a36Sopenharmony_ci
182162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_buckets);
182262306a36Sopenharmony_ci
182362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_adjust_xattr_cross_cluster);
182462306a36Sopenharmony_ci
182562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_begin);
182662306a36Sopenharmony_ci
182762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_add_new_xattr_cluster);
182862306a36Sopenharmony_ci
182962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_insert);
183062306a36Sopenharmony_ci
183162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_extend_xattr_bucket);
183262306a36Sopenharmony_ci
183362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_add_new_xattr_bucket);
183462306a36Sopenharmony_ci
183562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_xattr_bucket_value_truncate);
183662306a36Sopenharmony_ci
183762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_rm_xattr_cluster);
183862306a36Sopenharmony_ci
183962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_header);
184062306a36Sopenharmony_ci
184162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_create_empty_xattr_block);
184262306a36Sopenharmony_ci
184362306a36Sopenharmony_ciDEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_bucket);
184462306a36Sopenharmony_ci
184562306a36Sopenharmony_ciDEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_index_block);
184662306a36Sopenharmony_ci
184762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_xattr_bucket_value_refcount);
184862306a36Sopenharmony_ci
184962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_reflink_xattr_buckets);
185062306a36Sopenharmony_ci
185162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_rec);
185262306a36Sopenharmony_ci
185362306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/xattr.c. */
185462306a36Sopenharmony_ci
185562306a36Sopenharmony_ci/* Trace events for fs/ocfs2/reservations.c. */
185662306a36Sopenharmony_ci
185762306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_insert);
185862306a36Sopenharmony_ci
185962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_begin);
186062306a36Sopenharmony_ci
186162306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_end);
186262306a36Sopenharmony_ci
186362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_resv_find_window_begin,
186462306a36Sopenharmony_ci	TP_PROTO(unsigned int r_start, unsigned int r_end, unsigned int goal,
186562306a36Sopenharmony_ci		 unsigned int wanted, int empty_root),
186662306a36Sopenharmony_ci	TP_ARGS(r_start, r_end, goal, wanted, empty_root),
186762306a36Sopenharmony_ci	TP_STRUCT__entry(
186862306a36Sopenharmony_ci		__field(unsigned int, r_start)
186962306a36Sopenharmony_ci		__field(unsigned int, r_end)
187062306a36Sopenharmony_ci		__field(unsigned int, goal)
187162306a36Sopenharmony_ci		__field(unsigned int, wanted)
187262306a36Sopenharmony_ci		__field(int, empty_root)
187362306a36Sopenharmony_ci	),
187462306a36Sopenharmony_ci	TP_fast_assign(
187562306a36Sopenharmony_ci		__entry->r_start = r_start;
187662306a36Sopenharmony_ci		__entry->r_end = r_end;
187762306a36Sopenharmony_ci		__entry->goal = goal;
187862306a36Sopenharmony_ci		__entry->wanted = wanted;
187962306a36Sopenharmony_ci		__entry->empty_root = empty_root;
188062306a36Sopenharmony_ci	),
188162306a36Sopenharmony_ci	TP_printk("%u %u %u %u %d", __entry->r_start, __entry->r_end,
188262306a36Sopenharmony_ci		  __entry->goal, __entry->wanted, __entry->empty_root)
188362306a36Sopenharmony_ci);
188462306a36Sopenharmony_ci
188562306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_find_window_prev);
188662306a36Sopenharmony_ci
188762306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_resv_find_window_next);
188862306a36Sopenharmony_ci
188962306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cannibalize_resv_begin);
189062306a36Sopenharmony_ci
189162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_cannibalize_resv_end,
189262306a36Sopenharmony_ci	TP_PROTO(unsigned int start, unsigned int end, unsigned int len,
189362306a36Sopenharmony_ci		 unsigned int last_start, unsigned int last_len),
189462306a36Sopenharmony_ci	TP_ARGS(start, end, len, last_start, last_len),
189562306a36Sopenharmony_ci	TP_STRUCT__entry(
189662306a36Sopenharmony_ci		__field(unsigned int, start)
189762306a36Sopenharmony_ci		__field(unsigned int, end)
189862306a36Sopenharmony_ci		__field(unsigned int, len)
189962306a36Sopenharmony_ci		__field(unsigned int, last_start)
190062306a36Sopenharmony_ci		__field(unsigned int, last_len)
190162306a36Sopenharmony_ci	),
190262306a36Sopenharmony_ci	TP_fast_assign(
190362306a36Sopenharmony_ci		__entry->start = start;
190462306a36Sopenharmony_ci		__entry->end = end;
190562306a36Sopenharmony_ci		__entry->len = len;
190662306a36Sopenharmony_ci		__entry->last_start = last_start;
190762306a36Sopenharmony_ci		__entry->last_len = last_len;
190862306a36Sopenharmony_ci	),
190962306a36Sopenharmony_ci	TP_printk("%u %u %u %u %u", __entry->start, __entry->end,
191062306a36Sopenharmony_ci		  __entry->len, __entry->last_start, __entry->last_len)
191162306a36Sopenharmony_ci);
191262306a36Sopenharmony_ci
191362306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_resv_bits);
191462306a36Sopenharmony_ci
191562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_resmap_claimed_bits_begin,
191662306a36Sopenharmony_ci	TP_PROTO(unsigned int cstart, unsigned int cend, unsigned int clen,
191762306a36Sopenharmony_ci		 unsigned int r_start, unsigned int r_end, unsigned int r_len,
191862306a36Sopenharmony_ci		 unsigned int last_start, unsigned int last_len),
191962306a36Sopenharmony_ci	TP_ARGS(cstart, cend, clen, r_start, r_end,
192062306a36Sopenharmony_ci		r_len, last_start, last_len),
192162306a36Sopenharmony_ci	TP_STRUCT__entry(
192262306a36Sopenharmony_ci		__field(unsigned int, cstart)
192362306a36Sopenharmony_ci		__field(unsigned int, cend)
192462306a36Sopenharmony_ci		__field(unsigned int, clen)
192562306a36Sopenharmony_ci		__field(unsigned int, r_start)
192662306a36Sopenharmony_ci		__field(unsigned int, r_end)
192762306a36Sopenharmony_ci		__field(unsigned int, r_len)
192862306a36Sopenharmony_ci		__field(unsigned int, last_start)
192962306a36Sopenharmony_ci		__field(unsigned int, last_len)
193062306a36Sopenharmony_ci	),
193162306a36Sopenharmony_ci	TP_fast_assign(
193262306a36Sopenharmony_ci		__entry->cstart = cstart;
193362306a36Sopenharmony_ci		__entry->cend = cend;
193462306a36Sopenharmony_ci		__entry->clen = clen;
193562306a36Sopenharmony_ci		__entry->r_start = r_start;
193662306a36Sopenharmony_ci		__entry->r_end = r_end;
193762306a36Sopenharmony_ci		__entry->r_len = r_len;
193862306a36Sopenharmony_ci		__entry->last_start = last_start;
193962306a36Sopenharmony_ci		__entry->last_len = last_len;
194062306a36Sopenharmony_ci	),
194162306a36Sopenharmony_ci	TP_printk("%u %u %u %u %u %u %u %u",
194262306a36Sopenharmony_ci		  __entry->cstart, __entry->cend, __entry->clen,
194362306a36Sopenharmony_ci		  __entry->r_start, __entry->r_end, __entry->r_len,
194462306a36Sopenharmony_ci		  __entry->last_start, __entry->last_len)
194562306a36Sopenharmony_ci);
194662306a36Sopenharmony_ci
194762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_resmap_claimed_bits_end,
194862306a36Sopenharmony_ci	TP_PROTO(unsigned int start, unsigned int end, unsigned int len,
194962306a36Sopenharmony_ci		 unsigned int last_start, unsigned int last_len),
195062306a36Sopenharmony_ci	TP_ARGS(start, end, len, last_start, last_len),
195162306a36Sopenharmony_ci	TP_STRUCT__entry(
195262306a36Sopenharmony_ci		__field(unsigned int, start)
195362306a36Sopenharmony_ci		__field(unsigned int, end)
195462306a36Sopenharmony_ci		__field(unsigned int, len)
195562306a36Sopenharmony_ci		__field(unsigned int, last_start)
195662306a36Sopenharmony_ci		__field(unsigned int, last_len)
195762306a36Sopenharmony_ci	),
195862306a36Sopenharmony_ci	TP_fast_assign(
195962306a36Sopenharmony_ci		__entry->start = start;
196062306a36Sopenharmony_ci		__entry->end = end;
196162306a36Sopenharmony_ci		__entry->len = len;
196262306a36Sopenharmony_ci		__entry->last_start = last_start;
196362306a36Sopenharmony_ci		__entry->last_len = last_len;
196462306a36Sopenharmony_ci	),
196562306a36Sopenharmony_ci	TP_printk("%u %u %u %u %u", __entry->start, __entry->end,
196662306a36Sopenharmony_ci		  __entry->len, __entry->last_start, __entry->last_len)
196762306a36Sopenharmony_ci);
196862306a36Sopenharmony_ci
196962306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/reservations.c. */
197062306a36Sopenharmony_ci
197162306a36Sopenharmony_ci/* Trace events for fs/ocfs2/quota_local.c. */
197262306a36Sopenharmony_ci
197362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_recover_local_quota_file);
197462306a36Sopenharmony_ci
197562306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_finish_quota_recovery);
197662306a36Sopenharmony_ci
197762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(olq_set_dquot);
197862306a36Sopenharmony_ci
197962306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/quota_local.c. */
198062306a36Sopenharmony_ci
198162306a36Sopenharmony_ci/* Trace events for fs/ocfs2/quota_global.c. */
198262306a36Sopenharmony_ci
198362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_quota_block);
198462306a36Sopenharmony_ci
198562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_sync_dquot,
198662306a36Sopenharmony_ci	TP_PROTO(unsigned int dq_id, long long dqb_curspace,
198762306a36Sopenharmony_ci		 long long spacechange, long long curinodes,
198862306a36Sopenharmony_ci		 long long inodechange),
198962306a36Sopenharmony_ci	TP_ARGS(dq_id, dqb_curspace, spacechange, curinodes, inodechange),
199062306a36Sopenharmony_ci	TP_STRUCT__entry(
199162306a36Sopenharmony_ci		__field(unsigned int, dq_id)
199262306a36Sopenharmony_ci		__field(long long, dqb_curspace)
199362306a36Sopenharmony_ci		__field(long long, spacechange)
199462306a36Sopenharmony_ci		__field(long long, curinodes)
199562306a36Sopenharmony_ci		__field(long long, inodechange)
199662306a36Sopenharmony_ci	),
199762306a36Sopenharmony_ci	TP_fast_assign(
199862306a36Sopenharmony_ci		__entry->dq_id = dq_id;
199962306a36Sopenharmony_ci		__entry->dqb_curspace = dqb_curspace;
200062306a36Sopenharmony_ci		__entry->spacechange = spacechange;
200162306a36Sopenharmony_ci		__entry->curinodes = curinodes;
200262306a36Sopenharmony_ci		__entry->inodechange = inodechange;
200362306a36Sopenharmony_ci	),
200462306a36Sopenharmony_ci	TP_printk("%u %lld %lld %lld %lld", __entry->dq_id,
200562306a36Sopenharmony_ci		  __entry->dqb_curspace, __entry->spacechange,
200662306a36Sopenharmony_ci		  __entry->curinodes, __entry->inodechange)
200762306a36Sopenharmony_ci);
200862306a36Sopenharmony_ci
200962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_sync_dquot_helper,
201062306a36Sopenharmony_ci	TP_PROTO(unsigned int dq_id, unsigned int dq_type, unsigned long type,
201162306a36Sopenharmony_ci		 const char *s_id),
201262306a36Sopenharmony_ci	TP_ARGS(dq_id, dq_type, type, s_id),
201362306a36Sopenharmony_ci
201462306a36Sopenharmony_ci	TP_STRUCT__entry(
201562306a36Sopenharmony_ci		__field(unsigned int, dq_id)
201662306a36Sopenharmony_ci		__field(unsigned int, dq_type)
201762306a36Sopenharmony_ci		__field(unsigned long, type)
201862306a36Sopenharmony_ci		__string(s_id, s_id)
201962306a36Sopenharmony_ci	),
202062306a36Sopenharmony_ci	TP_fast_assign(
202162306a36Sopenharmony_ci		__entry->dq_id = dq_id;
202262306a36Sopenharmony_ci		__entry->dq_type = dq_type;
202362306a36Sopenharmony_ci		__entry->type = type;
202462306a36Sopenharmony_ci		__assign_str(s_id, s_id);
202562306a36Sopenharmony_ci	),
202662306a36Sopenharmony_ci	TP_printk("%u %u %lu %s", __entry->dq_id, __entry->dq_type,
202762306a36Sopenharmony_ci		  __entry->type, __get_str(s_id))
202862306a36Sopenharmony_ci);
202962306a36Sopenharmony_ci
203062306a36Sopenharmony_ciDEFINE_OCFS2_UINT_INT_EVENT(ocfs2_write_dquot);
203162306a36Sopenharmony_ci
203262306a36Sopenharmony_ciDEFINE_OCFS2_UINT_INT_EVENT(ocfs2_release_dquot);
203362306a36Sopenharmony_ci
203462306a36Sopenharmony_ciDEFINE_OCFS2_UINT_INT_EVENT(ocfs2_acquire_dquot);
203562306a36Sopenharmony_ci
203662306a36Sopenharmony_ciDEFINE_OCFS2_UINT_INT_EVENT(ocfs2_get_next_id);
203762306a36Sopenharmony_ci
203862306a36Sopenharmony_ciDEFINE_OCFS2_UINT_INT_EVENT(ocfs2_mark_dquot_dirty);
203962306a36Sopenharmony_ci
204062306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/quota_global.c. */
204162306a36Sopenharmony_ci
204262306a36Sopenharmony_ci/* Trace events for fs/ocfs2/dir.c. */
204362306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_search_dirblock);
204462306a36Sopenharmony_ci
204562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_validate_dir_block);
204662306a36Sopenharmony_ci
204762306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_find_entry_el);
204862306a36Sopenharmony_ci
204962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dx_dir_search,
205062306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, int namelen, const char *name,
205162306a36Sopenharmony_ci		 unsigned int major_hash, unsigned int minor_hash,
205262306a36Sopenharmony_ci		 unsigned long long blkno),
205362306a36Sopenharmony_ci	TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno),
205462306a36Sopenharmony_ci	TP_STRUCT__entry(
205562306a36Sopenharmony_ci		__field(unsigned long long, ino)
205662306a36Sopenharmony_ci		__field(int, namelen)
205762306a36Sopenharmony_ci		__string(name, name)
205862306a36Sopenharmony_ci		__field(unsigned int, major_hash)
205962306a36Sopenharmony_ci		__field(unsigned int,minor_hash)
206062306a36Sopenharmony_ci		__field(unsigned long long, blkno)
206162306a36Sopenharmony_ci	),
206262306a36Sopenharmony_ci	TP_fast_assign(
206362306a36Sopenharmony_ci		__entry->ino = ino;
206462306a36Sopenharmony_ci		__entry->namelen = namelen;
206562306a36Sopenharmony_ci		__assign_str(name, name);
206662306a36Sopenharmony_ci		__entry->major_hash = major_hash;
206762306a36Sopenharmony_ci		__entry->minor_hash = minor_hash;
206862306a36Sopenharmony_ci		__entry->blkno = blkno;
206962306a36Sopenharmony_ci	),
207062306a36Sopenharmony_ci	TP_printk("%llu %.*s %u %u %llu", __entry->ino,
207162306a36Sopenharmony_ci		   __entry->namelen, __get_str(name),
207262306a36Sopenharmony_ci		  __entry->major_hash, __entry->minor_hash, __entry->blkno)
207362306a36Sopenharmony_ci);
207462306a36Sopenharmony_ci
207562306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_dx_dir_search_leaf_info);
207662306a36Sopenharmony_ci
207762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_delete_entry_dx);
207862306a36Sopenharmony_ci
207962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_readdir);
208062306a36Sopenharmony_ci
208162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_find_files_on_disk,
208262306a36Sopenharmony_ci	TP_PROTO(int namelen, const char *name, void *blkno,
208362306a36Sopenharmony_ci		 unsigned long long dir),
208462306a36Sopenharmony_ci	TP_ARGS(namelen, name, blkno, dir),
208562306a36Sopenharmony_ci	TP_STRUCT__entry(
208662306a36Sopenharmony_ci		__field(int, namelen)
208762306a36Sopenharmony_ci		__string(name, name)
208862306a36Sopenharmony_ci		__field(void *, blkno)
208962306a36Sopenharmony_ci		__field(unsigned long long, dir)
209062306a36Sopenharmony_ci	),
209162306a36Sopenharmony_ci	TP_fast_assign(
209262306a36Sopenharmony_ci		__entry->namelen = namelen;
209362306a36Sopenharmony_ci		__assign_str(name, name);
209462306a36Sopenharmony_ci		__entry->blkno = blkno;
209562306a36Sopenharmony_ci		__entry->dir = dir;
209662306a36Sopenharmony_ci	),
209762306a36Sopenharmony_ci	TP_printk("%.*s %p %llu", __entry->namelen, __get_str(name),
209862306a36Sopenharmony_ci		  __entry->blkno, __entry->dir)
209962306a36Sopenharmony_ci);
210062306a36Sopenharmony_ci
210162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_check_dir_for_entry,
210262306a36Sopenharmony_ci	TP_PROTO(unsigned long long dir, int namelen, const char *name),
210362306a36Sopenharmony_ci	TP_ARGS(dir, namelen, name),
210462306a36Sopenharmony_ci	TP_STRUCT__entry(
210562306a36Sopenharmony_ci		__field(unsigned long long, dir)
210662306a36Sopenharmony_ci		__field(int, namelen)
210762306a36Sopenharmony_ci		__string(name, name)
210862306a36Sopenharmony_ci	),
210962306a36Sopenharmony_ci	TP_fast_assign(
211062306a36Sopenharmony_ci		__entry->dir = dir;
211162306a36Sopenharmony_ci		__entry->namelen = namelen;
211262306a36Sopenharmony_ci		__assign_str(name, name);
211362306a36Sopenharmony_ci	),
211462306a36Sopenharmony_ci	TP_printk("%llu %.*s", __entry->dir,
211562306a36Sopenharmony_ci		  __entry->namelen, __get_str(name))
211662306a36Sopenharmony_ci);
211762306a36Sopenharmony_ci
211862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_dx_dir_attach_index);
211962306a36Sopenharmony_ci
212062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_dx_dir_format_cluster);
212162306a36Sopenharmony_ci
212262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dx_dir_index_root_block,
212362306a36Sopenharmony_ci	TP_PROTO(unsigned long long dir,
212462306a36Sopenharmony_ci		 unsigned int major_hash, unsigned int minor_hash,
212562306a36Sopenharmony_ci		 int namelen, const char *name, unsigned int num_used),
212662306a36Sopenharmony_ci	TP_ARGS(dir, major_hash, minor_hash, namelen, name, num_used),
212762306a36Sopenharmony_ci	TP_STRUCT__entry(
212862306a36Sopenharmony_ci		__field(unsigned long long, dir)
212962306a36Sopenharmony_ci		__field(unsigned int, major_hash)
213062306a36Sopenharmony_ci		__field(unsigned int, minor_hash)
213162306a36Sopenharmony_ci		__field(int, namelen)
213262306a36Sopenharmony_ci		__string(name, name)
213362306a36Sopenharmony_ci		__field(unsigned int, num_used)
213462306a36Sopenharmony_ci	),
213562306a36Sopenharmony_ci	TP_fast_assign(
213662306a36Sopenharmony_ci		__entry->dir = dir;
213762306a36Sopenharmony_ci		__entry->major_hash = major_hash;
213862306a36Sopenharmony_ci		__entry->minor_hash = minor_hash;
213962306a36Sopenharmony_ci		__entry->namelen = namelen;
214062306a36Sopenharmony_ci		__assign_str(name, name);
214162306a36Sopenharmony_ci		__entry->num_used = num_used;
214262306a36Sopenharmony_ci	),
214362306a36Sopenharmony_ci	TP_printk("%llu %x %x %.*s %u", __entry->dir,
214462306a36Sopenharmony_ci		  __entry->major_hash, __entry->minor_hash,
214562306a36Sopenharmony_ci		   __entry->namelen, __get_str(name), __entry->num_used)
214662306a36Sopenharmony_ci);
214762306a36Sopenharmony_ci
214862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_extend_dir);
214962306a36Sopenharmony_ci
215062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_dx_dir_rebalance);
215162306a36Sopenharmony_ci
215262306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_dx_dir_rebalance_split);
215362306a36Sopenharmony_ci
215462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_prepare_dir_for_insert);
215562306a36Sopenharmony_ci
215662306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/dir.c. */
215762306a36Sopenharmony_ci
215862306a36Sopenharmony_ci/* Trace events for fs/ocfs2/namei.c. */
215962306a36Sopenharmony_ci
216062306a36Sopenharmony_ciDECLARE_EVENT_CLASS(ocfs2__dentry_ops,
216162306a36Sopenharmony_ci	TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
216262306a36Sopenharmony_ci		 unsigned long long dir_blkno, unsigned long long extra),
216362306a36Sopenharmony_ci	TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra),
216462306a36Sopenharmony_ci	TP_STRUCT__entry(
216562306a36Sopenharmony_ci		__field(void *, dir)
216662306a36Sopenharmony_ci		__field(void *, dentry)
216762306a36Sopenharmony_ci		__field(int, name_len)
216862306a36Sopenharmony_ci		__string(name, name)
216962306a36Sopenharmony_ci		__field(unsigned long long, dir_blkno)
217062306a36Sopenharmony_ci		__field(unsigned long long, extra)
217162306a36Sopenharmony_ci	),
217262306a36Sopenharmony_ci	TP_fast_assign(
217362306a36Sopenharmony_ci		__entry->dir = dir;
217462306a36Sopenharmony_ci		__entry->dentry = dentry;
217562306a36Sopenharmony_ci		__entry->name_len = name_len;
217662306a36Sopenharmony_ci		__assign_str(name, name);
217762306a36Sopenharmony_ci		__entry->dir_blkno = dir_blkno;
217862306a36Sopenharmony_ci		__entry->extra = extra;
217962306a36Sopenharmony_ci	),
218062306a36Sopenharmony_ci	TP_printk("%p %p %.*s %llu %llu", __entry->dir, __entry->dentry,
218162306a36Sopenharmony_ci		  __entry->name_len, __get_str(name),
218262306a36Sopenharmony_ci		  __entry->dir_blkno, __entry->extra)
218362306a36Sopenharmony_ci);
218462306a36Sopenharmony_ci
218562306a36Sopenharmony_ci#define DEFINE_OCFS2_DENTRY_OPS(name)					\
218662306a36Sopenharmony_ciDEFINE_EVENT(ocfs2__dentry_ops, name,					\
218762306a36Sopenharmony_ciTP_PROTO(void *dir, void *dentry, int name_len, const char *name,	\
218862306a36Sopenharmony_ci	 unsigned long long dir_blkno, unsigned long long extra),	\
218962306a36Sopenharmony_ci	TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra))
219062306a36Sopenharmony_ci
219162306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_lookup);
219262306a36Sopenharmony_ci
219362306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_mkdir);
219462306a36Sopenharmony_ci
219562306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_create);
219662306a36Sopenharmony_ci
219762306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_unlink);
219862306a36Sopenharmony_ci
219962306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_symlink_create);
220062306a36Sopenharmony_ci
220162306a36Sopenharmony_ciDEFINE_OCFS2_DENTRY_OPS(ocfs2_mv_orphaned_inode_to_new);
220262306a36Sopenharmony_ci
220362306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_lookup_ret);
220462306a36Sopenharmony_ci
220562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_mknod,
220662306a36Sopenharmony_ci	TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
220762306a36Sopenharmony_ci		 unsigned long long dir_blkno, unsigned long dev, int mode),
220862306a36Sopenharmony_ci	TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode),
220962306a36Sopenharmony_ci	TP_STRUCT__entry(
221062306a36Sopenharmony_ci		__field(void *, dir)
221162306a36Sopenharmony_ci		__field(void *, dentry)
221262306a36Sopenharmony_ci		__field(int, name_len)
221362306a36Sopenharmony_ci		__string(name, name)
221462306a36Sopenharmony_ci		__field(unsigned long long, dir_blkno)
221562306a36Sopenharmony_ci		__field(unsigned long, dev)
221662306a36Sopenharmony_ci		__field(int, mode)
221762306a36Sopenharmony_ci	),
221862306a36Sopenharmony_ci	TP_fast_assign(
221962306a36Sopenharmony_ci		__entry->dir = dir;
222062306a36Sopenharmony_ci		__entry->dentry = dentry;
222162306a36Sopenharmony_ci		__entry->name_len = name_len;
222262306a36Sopenharmony_ci		__assign_str(name, name);
222362306a36Sopenharmony_ci		__entry->dir_blkno = dir_blkno;
222462306a36Sopenharmony_ci		__entry->dev = dev;
222562306a36Sopenharmony_ci		__entry->mode = mode;
222662306a36Sopenharmony_ci	),
222762306a36Sopenharmony_ci	TP_printk("%p %p %.*s %llu %lu %d", __entry->dir, __entry->dentry,
222862306a36Sopenharmony_ci		  __entry->name_len, __get_str(name),
222962306a36Sopenharmony_ci		  __entry->dir_blkno, __entry->dev, __entry->mode)
223062306a36Sopenharmony_ci);
223162306a36Sopenharmony_ci
223262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_link,
223362306a36Sopenharmony_ci	TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
223462306a36Sopenharmony_ci		 int name_len, const char *name),
223562306a36Sopenharmony_ci	TP_ARGS(ino, old_len, old_name, name_len, name),
223662306a36Sopenharmony_ci	TP_STRUCT__entry(
223762306a36Sopenharmony_ci		__field(unsigned long long, ino)
223862306a36Sopenharmony_ci		__field(int, old_len)
223962306a36Sopenharmony_ci		__string(old_name, old_name)
224062306a36Sopenharmony_ci		__field(int, name_len)
224162306a36Sopenharmony_ci		__string(name, name)
224262306a36Sopenharmony_ci	),
224362306a36Sopenharmony_ci	TP_fast_assign(
224462306a36Sopenharmony_ci		__entry->ino = ino;
224562306a36Sopenharmony_ci		__entry->old_len = old_len;
224662306a36Sopenharmony_ci		__assign_str(old_name, old_name);
224762306a36Sopenharmony_ci		__entry->name_len = name_len;
224862306a36Sopenharmony_ci		__assign_str(name, name);
224962306a36Sopenharmony_ci	),
225062306a36Sopenharmony_ci	TP_printk("%llu %.*s %.*s", __entry->ino,
225162306a36Sopenharmony_ci		  __entry->old_len, __get_str(old_name),
225262306a36Sopenharmony_ci		  __entry->name_len, __get_str(name))
225362306a36Sopenharmony_ci);
225462306a36Sopenharmony_ci
225562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_unlink_noent);
225662306a36Sopenharmony_ci
225762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_double_lock);
225862306a36Sopenharmony_ci
225962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_double_lock_end);
226062306a36Sopenharmony_ci
226162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_rename,
226262306a36Sopenharmony_ci	TP_PROTO(void *old_dir, void *old_dentry,
226362306a36Sopenharmony_ci		 void *new_dir, void *new_dentry,
226462306a36Sopenharmony_ci		 int old_len, const char *old_name,
226562306a36Sopenharmony_ci		 int new_len, const char *new_name),
226662306a36Sopenharmony_ci	TP_ARGS(old_dir, old_dentry, new_dir, new_dentry,
226762306a36Sopenharmony_ci		old_len, old_name, new_len, new_name),
226862306a36Sopenharmony_ci	TP_STRUCT__entry(
226962306a36Sopenharmony_ci		__field(void *, old_dir)
227062306a36Sopenharmony_ci		__field(void *, old_dentry)
227162306a36Sopenharmony_ci		__field(void *, new_dir)
227262306a36Sopenharmony_ci		__field(void *, new_dentry)
227362306a36Sopenharmony_ci		__field(int, old_len)
227462306a36Sopenharmony_ci		__string(old_name, old_name)
227562306a36Sopenharmony_ci		__field(int, new_len)
227662306a36Sopenharmony_ci		__string(new_name, new_name)
227762306a36Sopenharmony_ci	),
227862306a36Sopenharmony_ci	TP_fast_assign(
227962306a36Sopenharmony_ci		__entry->old_dir = old_dir;
228062306a36Sopenharmony_ci		__entry->old_dentry = old_dentry;
228162306a36Sopenharmony_ci		__entry->new_dir = new_dir;
228262306a36Sopenharmony_ci		__entry->new_dentry = new_dentry;
228362306a36Sopenharmony_ci		__entry->old_len = old_len;
228462306a36Sopenharmony_ci		__assign_str(old_name, old_name);
228562306a36Sopenharmony_ci		__entry->new_len = new_len;
228662306a36Sopenharmony_ci		__assign_str(new_name, new_name);
228762306a36Sopenharmony_ci	),
228862306a36Sopenharmony_ci	TP_printk("%p %p %p %p %.*s %.*s",
228962306a36Sopenharmony_ci		  __entry->old_dir, __entry->old_dentry,
229062306a36Sopenharmony_ci		  __entry->new_dir, __entry->new_dentry,
229162306a36Sopenharmony_ci		  __entry->old_len, __get_str(old_name),
229262306a36Sopenharmony_ci		  __entry->new_len, __get_str(new_name))
229362306a36Sopenharmony_ci);
229462306a36Sopenharmony_ci
229562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_rename_not_permitted);
229662306a36Sopenharmony_ci
229762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_rename_target_exists,
229862306a36Sopenharmony_ci	TP_PROTO(int new_len, const char *new_name),
229962306a36Sopenharmony_ci	TP_ARGS(new_len, new_name),
230062306a36Sopenharmony_ci	TP_STRUCT__entry(
230162306a36Sopenharmony_ci		__field(int, new_len)
230262306a36Sopenharmony_ci		__string(new_name, new_name)
230362306a36Sopenharmony_ci	),
230462306a36Sopenharmony_ci	TP_fast_assign(
230562306a36Sopenharmony_ci		__entry->new_len = new_len;
230662306a36Sopenharmony_ci		__assign_str(new_name, new_name);
230762306a36Sopenharmony_ci	),
230862306a36Sopenharmony_ci	TP_printk("%.*s", __entry->new_len, __get_str(new_name))
230962306a36Sopenharmony_ci);
231062306a36Sopenharmony_ci
231162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_rename_disagree);
231262306a36Sopenharmony_ci
231362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_rename_over_existing,
231462306a36Sopenharmony_ci	TP_PROTO(unsigned long long new_blkno, void *new_bh,
231562306a36Sopenharmony_ci		 unsigned long long newdi_blkno),
231662306a36Sopenharmony_ci	TP_ARGS(new_blkno, new_bh, newdi_blkno),
231762306a36Sopenharmony_ci	TP_STRUCT__entry(
231862306a36Sopenharmony_ci		__field(unsigned long long, new_blkno)
231962306a36Sopenharmony_ci		__field(void *, new_bh)
232062306a36Sopenharmony_ci		__field(unsigned long long, newdi_blkno)
232162306a36Sopenharmony_ci	),
232262306a36Sopenharmony_ci	TP_fast_assign(
232362306a36Sopenharmony_ci		__entry->new_blkno = new_blkno;
232462306a36Sopenharmony_ci		__entry->new_bh = new_bh;
232562306a36Sopenharmony_ci		__entry->newdi_blkno = newdi_blkno;
232662306a36Sopenharmony_ci	),
232762306a36Sopenharmony_ci	TP_printk("%llu %p %llu", __entry->new_blkno, __entry->new_bh,
232862306a36Sopenharmony_ci		  __entry->newdi_blkno)
232962306a36Sopenharmony_ci);
233062306a36Sopenharmony_ci
233162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_create_symlink_data);
233262306a36Sopenharmony_ci
233362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_symlink_begin,
233462306a36Sopenharmony_ci	TP_PROTO(void *dir, void *dentry, const char *symname,
233562306a36Sopenharmony_ci		 int len, const char *name),
233662306a36Sopenharmony_ci	TP_ARGS(dir, dentry, symname, len, name),
233762306a36Sopenharmony_ci	TP_STRUCT__entry(
233862306a36Sopenharmony_ci		__field(void *, dir)
233962306a36Sopenharmony_ci		__field(void *, dentry)
234062306a36Sopenharmony_ci		__field(const char *, symname)
234162306a36Sopenharmony_ci		__field(int, len)
234262306a36Sopenharmony_ci		__string(name, name)
234362306a36Sopenharmony_ci	),
234462306a36Sopenharmony_ci	TP_fast_assign(
234562306a36Sopenharmony_ci		__entry->dir = dir;
234662306a36Sopenharmony_ci		__entry->dentry = dentry;
234762306a36Sopenharmony_ci		__entry->symname = symname;
234862306a36Sopenharmony_ci		__entry->len = len;
234962306a36Sopenharmony_ci		__assign_str(name, name);
235062306a36Sopenharmony_ci	),
235162306a36Sopenharmony_ci	TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry,
235262306a36Sopenharmony_ci		  __entry->symname, __entry->len, __get_str(name))
235362306a36Sopenharmony_ci);
235462306a36Sopenharmony_ci
235562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_blkno_stringify,
235662306a36Sopenharmony_ci	TP_PROTO(unsigned long long blkno, const char *name, int namelen),
235762306a36Sopenharmony_ci	TP_ARGS(blkno, name, namelen),
235862306a36Sopenharmony_ci	TP_STRUCT__entry(
235962306a36Sopenharmony_ci		__field(unsigned long long, blkno)
236062306a36Sopenharmony_ci		__string(name, name)
236162306a36Sopenharmony_ci		__field(int, namelen)
236262306a36Sopenharmony_ci	),
236362306a36Sopenharmony_ci	TP_fast_assign(
236462306a36Sopenharmony_ci		__entry->blkno = blkno;
236562306a36Sopenharmony_ci		__assign_str(name, name);
236662306a36Sopenharmony_ci		__entry->namelen = namelen;
236762306a36Sopenharmony_ci	),
236862306a36Sopenharmony_ci	TP_printk("%llu %s %d", __entry->blkno, __get_str(name),
236962306a36Sopenharmony_ci		  __entry->namelen)
237062306a36Sopenharmony_ci);
237162306a36Sopenharmony_ci
237262306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_orphan_add_begin);
237362306a36Sopenharmony_ci
237462306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_orphan_add_end);
237562306a36Sopenharmony_ci
237662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_orphan_del,
237762306a36Sopenharmony_ci	TP_PROTO(unsigned long long dir, const char *name, int namelen),
237862306a36Sopenharmony_ci	TP_ARGS(dir, name, namelen),
237962306a36Sopenharmony_ci	TP_STRUCT__entry(
238062306a36Sopenharmony_ci		__field(unsigned long long, dir)
238162306a36Sopenharmony_ci		__string(name, name)
238262306a36Sopenharmony_ci		__field(int, namelen)
238362306a36Sopenharmony_ci	),
238462306a36Sopenharmony_ci	TP_fast_assign(
238562306a36Sopenharmony_ci		__entry->dir = dir;
238662306a36Sopenharmony_ci		__assign_str(name, name);
238762306a36Sopenharmony_ci		__entry->namelen = namelen;
238862306a36Sopenharmony_ci	),
238962306a36Sopenharmony_ci	TP_printk("%llu %s %d", __entry->dir, __get_str(name),
239062306a36Sopenharmony_ci		  __entry->namelen)
239162306a36Sopenharmony_ci);
239262306a36Sopenharmony_ci
239362306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/namei.c. */
239462306a36Sopenharmony_ci
239562306a36Sopenharmony_ci/* Trace events for fs/ocfs2/dcache.c. */
239662306a36Sopenharmony_ci
239762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dentry_revalidate,
239862306a36Sopenharmony_ci	TP_PROTO(void *dentry, int len, const char *name),
239962306a36Sopenharmony_ci	TP_ARGS(dentry, len, name),
240062306a36Sopenharmony_ci	TP_STRUCT__entry(
240162306a36Sopenharmony_ci		__field(void *, dentry)
240262306a36Sopenharmony_ci		__field(int, len)
240362306a36Sopenharmony_ci		__string(name, name)
240462306a36Sopenharmony_ci	),
240562306a36Sopenharmony_ci	TP_fast_assign(
240662306a36Sopenharmony_ci		__entry->dentry = dentry;
240762306a36Sopenharmony_ci		__entry->len = len;
240862306a36Sopenharmony_ci		__assign_str(name, name);
240962306a36Sopenharmony_ci	),
241062306a36Sopenharmony_ci	TP_printk("%p %.*s", __entry->dentry, __entry->len, __get_str(name))
241162306a36Sopenharmony_ci);
241262306a36Sopenharmony_ci
241362306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dentry_revalidate_negative,
241462306a36Sopenharmony_ci	TP_PROTO(int len, const char *name, unsigned long pgen,
241562306a36Sopenharmony_ci		 unsigned long gen),
241662306a36Sopenharmony_ci	TP_ARGS(len, name, pgen, gen),
241762306a36Sopenharmony_ci	TP_STRUCT__entry(
241862306a36Sopenharmony_ci		__field(int, len)
241962306a36Sopenharmony_ci		__string(name, name)
242062306a36Sopenharmony_ci		__field(unsigned long, pgen)
242162306a36Sopenharmony_ci		__field(unsigned long, gen)
242262306a36Sopenharmony_ci	),
242362306a36Sopenharmony_ci	TP_fast_assign(
242462306a36Sopenharmony_ci		__entry->len = len;
242562306a36Sopenharmony_ci		__assign_str(name, name);
242662306a36Sopenharmony_ci		__entry->pgen = pgen;
242762306a36Sopenharmony_ci		__entry->gen = gen;
242862306a36Sopenharmony_ci	),
242962306a36Sopenharmony_ci	TP_printk("%.*s %lu %lu", __entry->len, __get_str(name),
243062306a36Sopenharmony_ci		  __entry->pgen, __entry->gen)
243162306a36Sopenharmony_ci);
243262306a36Sopenharmony_ci
243362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_dentry_revalidate_delete);
243462306a36Sopenharmony_ci
243562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_EVENT(ocfs2_dentry_revalidate_orphaned);
243662306a36Sopenharmony_ci
243762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_dentry_revalidate_nofsdata);
243862306a36Sopenharmony_ci
243962306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_dentry_revalidate_ret);
244062306a36Sopenharmony_ci
244162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_find_local_alias,
244262306a36Sopenharmony_ci	TP_PROTO(int len, const char *name),
244362306a36Sopenharmony_ci	TP_ARGS(len, name),
244462306a36Sopenharmony_ci	TP_STRUCT__entry(
244562306a36Sopenharmony_ci		__field(int, len)
244662306a36Sopenharmony_ci		__string(name, name)
244762306a36Sopenharmony_ci	),
244862306a36Sopenharmony_ci	TP_fast_assign(
244962306a36Sopenharmony_ci		__entry->len = len;
245062306a36Sopenharmony_ci		__assign_str(name, name);
245162306a36Sopenharmony_ci	),
245262306a36Sopenharmony_ci	TP_printk("%.*s", __entry->len, __get_str(name))
245362306a36Sopenharmony_ci);
245462306a36Sopenharmony_ci
245562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dentry_attach_lock,
245662306a36Sopenharmony_ci	TP_PROTO(int len, const char *name,
245762306a36Sopenharmony_ci		 unsigned long long parent, void *fsdata),
245862306a36Sopenharmony_ci	TP_ARGS(len, name, parent, fsdata),
245962306a36Sopenharmony_ci	TP_STRUCT__entry(
246062306a36Sopenharmony_ci		__field(int, len)
246162306a36Sopenharmony_ci		__string(name, name)
246262306a36Sopenharmony_ci		__field(unsigned long long, parent)
246362306a36Sopenharmony_ci		__field(void *, fsdata)
246462306a36Sopenharmony_ci	),
246562306a36Sopenharmony_ci	TP_fast_assign(
246662306a36Sopenharmony_ci		__entry->len = len;
246762306a36Sopenharmony_ci		__assign_str(name, name);
246862306a36Sopenharmony_ci		__entry->parent = parent;
246962306a36Sopenharmony_ci		__entry->fsdata = fsdata;
247062306a36Sopenharmony_ci	),
247162306a36Sopenharmony_ci	TP_printk("%.*s %llu %p", __entry->len, __get_str(name),
247262306a36Sopenharmony_ci		  __entry->parent, __entry->fsdata)
247362306a36Sopenharmony_ci);
247462306a36Sopenharmony_ci
247562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_dentry_attach_lock_found,
247662306a36Sopenharmony_ci	TP_PROTO(const char *name, unsigned long long parent,
247762306a36Sopenharmony_ci		 unsigned long long ino),
247862306a36Sopenharmony_ci	TP_ARGS(name, parent, ino),
247962306a36Sopenharmony_ci	TP_STRUCT__entry(
248062306a36Sopenharmony_ci		__string(name, name)
248162306a36Sopenharmony_ci		__field(unsigned long long, parent)
248262306a36Sopenharmony_ci		__field(unsigned long long, ino)
248362306a36Sopenharmony_ci	),
248462306a36Sopenharmony_ci	TP_fast_assign(
248562306a36Sopenharmony_ci		__assign_str(name, name);
248662306a36Sopenharmony_ci		__entry->parent = parent;
248762306a36Sopenharmony_ci		__entry->ino = ino;
248862306a36Sopenharmony_ci	),
248962306a36Sopenharmony_ci	TP_printk("%s %llu %llu", __get_str(name), __entry->parent, __entry->ino)
249062306a36Sopenharmony_ci);
249162306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/dcache.c. */
249262306a36Sopenharmony_ci
249362306a36Sopenharmony_ci/* Trace events for fs/ocfs2/export.c. */
249462306a36Sopenharmony_ci
249562306a36Sopenharmony_ciTRACE_EVENT(ocfs2_get_dentry_begin,
249662306a36Sopenharmony_ci	TP_PROTO(void *sb, void *handle, unsigned long long blkno),
249762306a36Sopenharmony_ci	TP_ARGS(sb, handle, blkno),
249862306a36Sopenharmony_ci	TP_STRUCT__entry(
249962306a36Sopenharmony_ci		__field(void *, sb)
250062306a36Sopenharmony_ci		__field(void *, handle)
250162306a36Sopenharmony_ci		__field(unsigned long long, blkno)
250262306a36Sopenharmony_ci	),
250362306a36Sopenharmony_ci	TP_fast_assign(
250462306a36Sopenharmony_ci		__entry->sb = sb;
250562306a36Sopenharmony_ci		__entry->handle = handle;
250662306a36Sopenharmony_ci		__entry->blkno = blkno;
250762306a36Sopenharmony_ci	),
250862306a36Sopenharmony_ci	TP_printk("%p %p %llu", __entry->sb, __entry->handle, __entry->blkno)
250962306a36Sopenharmony_ci);
251062306a36Sopenharmony_ci
251162306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_get_dentry_test_bit);
251262306a36Sopenharmony_ci
251362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_get_dentry_stale);
251462306a36Sopenharmony_ci
251562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_get_dentry_generation);
251662306a36Sopenharmony_ci
251762306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_get_dentry_end);
251862306a36Sopenharmony_ci
251962306a36Sopenharmony_ciTRACE_EVENT(ocfs2_get_parent,
252062306a36Sopenharmony_ci	TP_PROTO(void *child, int len, const char *name,
252162306a36Sopenharmony_ci		 unsigned long long ino),
252262306a36Sopenharmony_ci	TP_ARGS(child, len, name, ino),
252362306a36Sopenharmony_ci	TP_STRUCT__entry(
252462306a36Sopenharmony_ci		__field(void *,	child)
252562306a36Sopenharmony_ci		__field(int, len)
252662306a36Sopenharmony_ci		__string(name, name)
252762306a36Sopenharmony_ci		__field(unsigned long long, ino)
252862306a36Sopenharmony_ci	),
252962306a36Sopenharmony_ci	TP_fast_assign(
253062306a36Sopenharmony_ci		__entry->child = child;
253162306a36Sopenharmony_ci		__entry->len = len;
253262306a36Sopenharmony_ci		__assign_str(name, name);
253362306a36Sopenharmony_ci		__entry->ino = ino;
253462306a36Sopenharmony_ci	),
253562306a36Sopenharmony_ci	TP_printk("%p %.*s %llu", __entry->child, __entry->len,
253662306a36Sopenharmony_ci		  __get_str(name), __entry->ino)
253762306a36Sopenharmony_ci);
253862306a36Sopenharmony_ci
253962306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_get_parent_end);
254062306a36Sopenharmony_ci
254162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_encode_fh_begin,
254262306a36Sopenharmony_ci	TP_PROTO(void *dentry, int name_len, const char *name,
254362306a36Sopenharmony_ci		 void *fh, int len, int connectable),
254462306a36Sopenharmony_ci	TP_ARGS(dentry, name_len, name, fh, len, connectable),
254562306a36Sopenharmony_ci	TP_STRUCT__entry(
254662306a36Sopenharmony_ci		__field(void *, dentry)
254762306a36Sopenharmony_ci		__field(int, name_len)
254862306a36Sopenharmony_ci		__string(name, name)
254962306a36Sopenharmony_ci		__field(void *, fh)
255062306a36Sopenharmony_ci		__field(int, len)
255162306a36Sopenharmony_ci		__field(int, connectable)
255262306a36Sopenharmony_ci	),
255362306a36Sopenharmony_ci	TP_fast_assign(
255462306a36Sopenharmony_ci		__entry->dentry = dentry;
255562306a36Sopenharmony_ci		__entry->name_len = name_len;
255662306a36Sopenharmony_ci		__assign_str(name, name);
255762306a36Sopenharmony_ci		__entry->fh = fh;
255862306a36Sopenharmony_ci		__entry->len = len;
255962306a36Sopenharmony_ci		__entry->connectable = connectable;
256062306a36Sopenharmony_ci	),
256162306a36Sopenharmony_ci	TP_printk("%p %.*s %p %d %d", __entry->dentry, __entry->name_len,
256262306a36Sopenharmony_ci		  __get_str(name), __entry->fh, __entry->len,
256362306a36Sopenharmony_ci		  __entry->connectable)
256462306a36Sopenharmony_ci);
256562306a36Sopenharmony_ci
256662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_encode_fh_self);
256762306a36Sopenharmony_ci
256862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_encode_fh_parent);
256962306a36Sopenharmony_ci
257062306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_encode_fh_type);
257162306a36Sopenharmony_ci
257262306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/export.c. */
257362306a36Sopenharmony_ci
257462306a36Sopenharmony_ci/* Trace events for fs/ocfs2/journal.c. */
257562306a36Sopenharmony_ci
257662306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_commit_cache_begin);
257762306a36Sopenharmony_ci
257862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_commit_cache_end);
257962306a36Sopenharmony_ci
258062306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_extend_trans);
258162306a36Sopenharmony_ci
258262306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_extend_trans_restart);
258362306a36Sopenharmony_ci
258462306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_allocate_extend_trans);
258562306a36Sopenharmony_ci
258662306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_journal_access);
258762306a36Sopenharmony_ci
258862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_journal_dirty);
258962306a36Sopenharmony_ci
259062306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_journal_init);
259162306a36Sopenharmony_ci
259262306a36Sopenharmony_ciDEFINE_OCFS2_UINT_EVENT(ocfs2_journal_init_maxlen);
259362306a36Sopenharmony_ci
259462306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_journal_shutdown);
259562306a36Sopenharmony_ci
259662306a36Sopenharmony_ciDEFINE_OCFS2_POINTER_EVENT(ocfs2_journal_shutdown_wait);
259762306a36Sopenharmony_ci
259862306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_complete_recovery);
259962306a36Sopenharmony_ci
260062306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_complete_recovery_end);
260162306a36Sopenharmony_ci
260262306a36Sopenharmony_ciTRACE_EVENT(ocfs2_complete_recovery_slot,
260362306a36Sopenharmony_ci	TP_PROTO(int slot, unsigned long long la_ino,
260462306a36Sopenharmony_ci		 unsigned long long tl_ino, void *qrec),
260562306a36Sopenharmony_ci	TP_ARGS(slot, la_ino, tl_ino, qrec),
260662306a36Sopenharmony_ci	TP_STRUCT__entry(
260762306a36Sopenharmony_ci		__field(int, slot)
260862306a36Sopenharmony_ci		__field(unsigned long long, la_ino)
260962306a36Sopenharmony_ci		__field(unsigned long long, tl_ino)
261062306a36Sopenharmony_ci		__field(void *, qrec)
261162306a36Sopenharmony_ci	),
261262306a36Sopenharmony_ci	TP_fast_assign(
261362306a36Sopenharmony_ci		__entry->slot = slot;
261462306a36Sopenharmony_ci		__entry->la_ino = la_ino;
261562306a36Sopenharmony_ci		__entry->tl_ino = tl_ino;
261662306a36Sopenharmony_ci		__entry->qrec = qrec;
261762306a36Sopenharmony_ci	),
261862306a36Sopenharmony_ci	TP_printk("%d %llu %llu %p", __entry->slot, __entry->la_ino,
261962306a36Sopenharmony_ci		  __entry->tl_ino, __entry->qrec)
262062306a36Sopenharmony_ci);
262162306a36Sopenharmony_ci
262262306a36Sopenharmony_ciDEFINE_OCFS2_INT_INT_EVENT(ocfs2_recovery_thread_node);
262362306a36Sopenharmony_ci
262462306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_recovery_thread_end);
262562306a36Sopenharmony_ci
262662306a36Sopenharmony_ciTRACE_EVENT(ocfs2_recovery_thread,
262762306a36Sopenharmony_ci	TP_PROTO(int node_num, int osb_node_num, int disable,
262862306a36Sopenharmony_ci		 void *recovery_thread, int map_set),
262962306a36Sopenharmony_ci	TP_ARGS(node_num, osb_node_num, disable, recovery_thread, map_set),
263062306a36Sopenharmony_ci	TP_STRUCT__entry(
263162306a36Sopenharmony_ci		__field(int, node_num)
263262306a36Sopenharmony_ci		__field(int, osb_node_num)
263362306a36Sopenharmony_ci		__field(int,disable)
263462306a36Sopenharmony_ci		__field(void *, recovery_thread)
263562306a36Sopenharmony_ci		__field(int,map_set)
263662306a36Sopenharmony_ci	),
263762306a36Sopenharmony_ci	TP_fast_assign(
263862306a36Sopenharmony_ci		__entry->node_num = node_num;
263962306a36Sopenharmony_ci		__entry->osb_node_num = osb_node_num;
264062306a36Sopenharmony_ci		__entry->disable = disable;
264162306a36Sopenharmony_ci		__entry->recovery_thread = recovery_thread;
264262306a36Sopenharmony_ci		__entry->map_set = map_set;
264362306a36Sopenharmony_ci	),
264462306a36Sopenharmony_ci	TP_printk("%d %d %d %p %d", __entry->node_num,
264562306a36Sopenharmony_ci		   __entry->osb_node_num, __entry->disable,
264662306a36Sopenharmony_ci		   __entry->recovery_thread, __entry->map_set)
264762306a36Sopenharmony_ci);
264862306a36Sopenharmony_ci
264962306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_replay_journal_recovered);
265062306a36Sopenharmony_ci
265162306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_replay_journal_lock_err);
265262306a36Sopenharmony_ci
265362306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_replay_journal_skip);
265462306a36Sopenharmony_ci
265562306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_recover_node);
265662306a36Sopenharmony_ci
265762306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_recover_node_skip);
265862306a36Sopenharmony_ci
265962306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_mark_dead_nodes);
266062306a36Sopenharmony_ci
266162306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_queue_orphan_scan_begin);
266262306a36Sopenharmony_ci
266362306a36Sopenharmony_ciDEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_queue_orphan_scan_end);
266462306a36Sopenharmony_ci
266562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_orphan_filldir);
266662306a36Sopenharmony_ci
266762306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_recover_orphans);
266862306a36Sopenharmony_ci
266962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_recover_orphans_iput);
267062306a36Sopenharmony_ci
267162306a36Sopenharmony_ciDEFINE_OCFS2_INT_EVENT(ocfs2_wait_on_mount);
267262306a36Sopenharmony_ci
267362306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/journal.c. */
267462306a36Sopenharmony_ci
267562306a36Sopenharmony_ci/* Trace events for fs/ocfs2/buffer_head_io.c. */
267662306a36Sopenharmony_ci
267762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_read_blocks_sync);
267862306a36Sopenharmony_ci
267962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_read_blocks_sync_jbd);
268062306a36Sopenharmony_ci
268162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_read_blocks_from_disk);
268262306a36Sopenharmony_ci
268362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_read_blocks_bh);
268462306a36Sopenharmony_ci
268562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_read_blocks_end);
268662306a36Sopenharmony_ci
268762306a36Sopenharmony_ciTRACE_EVENT(ocfs2_write_block,
268862306a36Sopenharmony_ci	TP_PROTO(unsigned long long block, void *ci),
268962306a36Sopenharmony_ci	TP_ARGS(block, ci),
269062306a36Sopenharmony_ci	TP_STRUCT__entry(
269162306a36Sopenharmony_ci		__field(unsigned long long, block)
269262306a36Sopenharmony_ci		__field(void *, ci)
269362306a36Sopenharmony_ci	),
269462306a36Sopenharmony_ci	TP_fast_assign(
269562306a36Sopenharmony_ci		__entry->block = block;
269662306a36Sopenharmony_ci		__entry->ci = ci;
269762306a36Sopenharmony_ci	),
269862306a36Sopenharmony_ci	TP_printk("%llu %p", __entry->block, __entry->ci)
269962306a36Sopenharmony_ci);
270062306a36Sopenharmony_ci
270162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_read_blocks_begin,
270262306a36Sopenharmony_ci	TP_PROTO(void *ci, unsigned long long block,
270362306a36Sopenharmony_ci		 unsigned int nr, int flags),
270462306a36Sopenharmony_ci	TP_ARGS(ci, block, nr, flags),
270562306a36Sopenharmony_ci	TP_STRUCT__entry(
270662306a36Sopenharmony_ci		__field(void *, ci)
270762306a36Sopenharmony_ci		__field(unsigned long long, block)
270862306a36Sopenharmony_ci		__field(unsigned int, nr)
270962306a36Sopenharmony_ci		__field(int, flags)
271062306a36Sopenharmony_ci	),
271162306a36Sopenharmony_ci	TP_fast_assign(
271262306a36Sopenharmony_ci		__entry->ci = ci;
271362306a36Sopenharmony_ci		__entry->block = block;
271462306a36Sopenharmony_ci		__entry->nr = nr;
271562306a36Sopenharmony_ci		__entry->flags = flags;
271662306a36Sopenharmony_ci	),
271762306a36Sopenharmony_ci	TP_printk("%p %llu %u %d", __entry->ci, __entry->block,
271862306a36Sopenharmony_ci		  __entry->nr, __entry->flags)
271962306a36Sopenharmony_ci);
272062306a36Sopenharmony_ci
272162306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/buffer_head_io.c. */
272262306a36Sopenharmony_ci
272362306a36Sopenharmony_ci/* Trace events for fs/ocfs2/uptodate.c. */
272462306a36Sopenharmony_ci
272562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_EVENT(ocfs2_purge_copied_metadata_tree);
272662306a36Sopenharmony_ci
272762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_metadata_cache_purge);
272862306a36Sopenharmony_ci
272962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_buffer_cached_begin);
273062306a36Sopenharmony_ci
273162306a36Sopenharmony_ciTRACE_EVENT(ocfs2_buffer_cached_end,
273262306a36Sopenharmony_ci	TP_PROTO(int index, void *item),
273362306a36Sopenharmony_ci	TP_ARGS(index, item),
273462306a36Sopenharmony_ci	TP_STRUCT__entry(
273562306a36Sopenharmony_ci		__field(int, index)
273662306a36Sopenharmony_ci		__field(void *, item)
273762306a36Sopenharmony_ci	),
273862306a36Sopenharmony_ci	TP_fast_assign(
273962306a36Sopenharmony_ci		__entry->index = index;
274062306a36Sopenharmony_ci		__entry->item = item;
274162306a36Sopenharmony_ci	),
274262306a36Sopenharmony_ci	TP_printk("%d %p", __entry->index, __entry->item)
274362306a36Sopenharmony_ci);
274462306a36Sopenharmony_ci
274562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_append_cache_array);
274662306a36Sopenharmony_ci
274762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_insert_cache_tree);
274862306a36Sopenharmony_ci
274962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_expand_cache);
275062306a36Sopenharmony_ci
275162306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_set_buffer_uptodate);
275262306a36Sopenharmony_ci
275362306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_set_buffer_uptodate_begin);
275462306a36Sopenharmony_ci
275562306a36Sopenharmony_ciDEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_remove_metadata_array);
275662306a36Sopenharmony_ci
275762306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_remove_metadata_tree);
275862306a36Sopenharmony_ci
275962306a36Sopenharmony_ciDEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_remove_block_from_cache);
276062306a36Sopenharmony_ci
276162306a36Sopenharmony_ci/* End of trace events for fs/ocfs2/uptodate.c. */
276262306a36Sopenharmony_ci#endif /* _TRACE_OCFS2_H */
276362306a36Sopenharmony_ci
276462306a36Sopenharmony_ci/* This part must be outside protection */
276562306a36Sopenharmony_ci#undef TRACE_INCLUDE_PATH
276662306a36Sopenharmony_ci#define TRACE_INCLUDE_PATH .
276762306a36Sopenharmony_ci#define TRACE_INCLUDE_FILE ocfs2_trace
276862306a36Sopenharmony_ci#include <trace/define_trace.h>
2769