@@ -638,99 +638,14 @@ DEFINE_EVENT(bch_fs, gc_gens_end,
638
638
639
639
/* Allocator */
640
640
641
- DECLARE_EVENT_CLASS (bucket_alloc ,
642
- TP_PROTO (struct bch_dev * ca , const char * alloc_reserve ,
643
- u64 bucket ,
644
- u64 free ,
645
- u64 avail ,
646
- u64 copygc_wait_amount ,
647
- s64 copygc_waiting_for ,
648
- struct bucket_alloc_state * s ,
649
- bool nonblocking ,
650
- const char * err ),
651
- TP_ARGS (ca , alloc_reserve , bucket , free , avail ,
652
- copygc_wait_amount , copygc_waiting_for ,
653
- s , nonblocking , err ),
654
-
655
- TP_STRUCT__entry (
656
- __field (u8 , dev )
657
- __array (char , reserve , 16 )
658
- __field (u64 , bucket )
659
- __field (u64 , free )
660
- __field (u64 , avail )
661
- __field (u64 , copygc_wait_amount )
662
- __field (s64 , copygc_waiting_for )
663
- __field (u64 , seen )
664
- __field (u64 , open )
665
- __field (u64 , need_journal_commit )
666
- __field (u64 , nouse )
667
- __field (bool , nonblocking )
668
- __field (u64 , nocow )
669
- __array (char , err , 32 )
670
- ),
671
-
672
- TP_fast_assign (
673
- __entry -> dev = ca -> dev_idx ;
674
- strscpy (__entry -> reserve , alloc_reserve , sizeof (__entry -> reserve ));
675
- __entry -> bucket = bucket ;
676
- __entry -> free = free ;
677
- __entry -> avail = avail ;
678
- __entry -> copygc_wait_amount = copygc_wait_amount ;
679
- __entry -> copygc_waiting_for = copygc_waiting_for ;
680
- __entry -> seen = s -> buckets_seen ;
681
- __entry -> open = s -> skipped_open ;
682
- __entry -> need_journal_commit = s -> skipped_need_journal_commit ;
683
- __entry -> nouse = s -> skipped_nouse ;
684
- __entry -> nonblocking = nonblocking ;
685
- __entry -> nocow = s -> skipped_nocow ;
686
- strscpy (__entry -> err , err , sizeof (__entry -> err ));
687
- ),
688
-
689
- TP_printk ("reserve %s bucket %u:%llu free %llu avail %llu copygc_wait %llu/%lli seen %llu open %llu need_journal_commit %llu nouse %llu nocow %llu nonblocking %u err %s" ,
690
- __entry -> reserve ,
691
- __entry -> dev ,
692
- __entry -> bucket ,
693
- __entry -> free ,
694
- __entry -> avail ,
695
- __entry -> copygc_wait_amount ,
696
- __entry -> copygc_waiting_for ,
697
- __entry -> seen ,
698
- __entry -> open ,
699
- __entry -> need_journal_commit ,
700
- __entry -> nouse ,
701
- __entry -> nocow ,
702
- __entry -> nonblocking ,
703
- __entry -> err )
641
+ DEFINE_EVENT (fs_str , bucket_alloc ,
642
+ TP_PROTO (struct bch_fs * c , const char * str ),
643
+ TP_ARGS (c , str )
704
644
);
705
645
706
- DEFINE_EVENT (bucket_alloc , bucket_alloc ,
707
- TP_PROTO (struct bch_dev * ca , const char * alloc_reserve ,
708
- u64 bucket ,
709
- u64 free ,
710
- u64 avail ,
711
- u64 copygc_wait_amount ,
712
- s64 copygc_waiting_for ,
713
- struct bucket_alloc_state * s ,
714
- bool nonblocking ,
715
- const char * err ),
716
- TP_ARGS (ca , alloc_reserve , bucket , free , avail ,
717
- copygc_wait_amount , copygc_waiting_for ,
718
- s , nonblocking , err )
719
- );
720
-
721
- DEFINE_EVENT (bucket_alloc , bucket_alloc_fail ,
722
- TP_PROTO (struct bch_dev * ca , const char * alloc_reserve ,
723
- u64 bucket ,
724
- u64 free ,
725
- u64 avail ,
726
- u64 copygc_wait_amount ,
727
- s64 copygc_waiting_for ,
728
- struct bucket_alloc_state * s ,
729
- bool nonblocking ,
730
- const char * err ),
731
- TP_ARGS (ca , alloc_reserve , bucket , free , avail ,
732
- copygc_wait_amount , copygc_waiting_for ,
733
- s , nonblocking , err )
646
+ DEFINE_EVENT (fs_str , bucket_alloc_fail ,
647
+ TP_PROTO (struct bch_fs * c , const char * str ),
648
+ TP_ARGS (c , str )
734
649
);
735
650
736
651
TRACE_EVENT (discard_buckets ,
0 commit comments