trace.h (2e21dee6a46a66e4c2ced778485e1044101edee4) trace.h (eb386617be4bdfe02eb0972874f726e2bfc7a6e7)
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM bcachefs
4
5#if !defined(_TRACE_BCACHEFS_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_BCACHEFS_H
7
8#include <linux/tracepoint.h>

--- 1417 unchanged lines hidden (view full) ---

1426 TP_ARGS(c, str)
1427);
1428
1429DEFINE_EVENT(fs_str, data_update,
1430 TP_PROTO(struct bch_fs *c, const char *str),
1431 TP_ARGS(c, str)
1432);
1433
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM bcachefs
4
5#if !defined(_TRACE_BCACHEFS_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_BCACHEFS_H
7
8#include <linux/tracepoint.h>

--- 1417 unchanged lines hidden (view full) ---

1426 TP_ARGS(c, str)
1427);
1428
1429DEFINE_EVENT(fs_str, data_update,
1430 TP_PROTO(struct bch_fs *c, const char *str),
1431 TP_ARGS(c, str)
1432);
1433
1434TRACE_EVENT(error_downcast,
1435 TP_PROTO(int bch_err, int std_err, unsigned long ip),
1436 TP_ARGS(bch_err, std_err, ip),
1437
1438 TP_STRUCT__entry(
1439 __array(char, bch_err, 32 )
1440 __array(char, std_err, 32 )
1441 __array(char, ip, 32 )
1442 ),
1443
1444 TP_fast_assign(
1445 strscpy(__entry->bch_err, bch2_err_str(bch_err), sizeof(__entry->bch_err));
1446 strscpy(__entry->std_err, bch2_err_str(std_err), sizeof(__entry->std_err));
1447 snprintf(__entry->ip, sizeof(__entry->ip), "%ps", (void *) ip);
1448 ),
1449
1450 TP_printk("%s -> %s %s", __entry->bch_err, __entry->std_err, __entry->ip)
1451);
1452
1434#endif /* _TRACE_BCACHEFS_H */
1435
1436/* This part must be outside protection */
1437#undef TRACE_INCLUDE_PATH
1438#define TRACE_INCLUDE_PATH ../../fs/bcachefs
1439
1440#undef TRACE_INCLUDE_FILE
1441#define TRACE_INCLUDE_FILE trace
1442
1443#include <trace/define_trace.h>
1453#endif /* _TRACE_BCACHEFS_H */
1454
1455/* This part must be outside protection */
1456#undef TRACE_INCLUDE_PATH
1457#define TRACE_INCLUDE_PATH ../../fs/bcachefs
1458
1459#undef TRACE_INCLUDE_FILE
1460#define TRACE_INCLUDE_FILE trace
1461
1462#include <trace/define_trace.h>