~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/trace/events/f2fs.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                { CURSEG_COLD_NODE,     "Cold NODE" },                  \
37
37
                { NO_CHECK_TYPE,        "No TYPE" })
38
38
 
 
39
#define show_file_type(type)                                            \
 
40
        __print_symbolic(type,                                          \
 
41
                { 0,            "FILE" },                               \
 
42
                { 1,            "DIR" })
 
43
 
39
44
#define show_gc_type(type)                                              \
40
45
        __print_symbolic(type,                                          \
41
46
                { FG_GC,        "Foreground GC" },                      \
623
628
                __entry->size)
624
629
);
625
630
 
 
631
DECLARE_EVENT_CLASS(f2fs__page,
 
632
 
 
633
        TP_PROTO(struct page *page, int type),
 
634
 
 
635
        TP_ARGS(page, type),
 
636
 
 
637
        TP_STRUCT__entry(
 
638
                __field(dev_t,  dev)
 
639
                __field(ino_t,  ino)
 
640
                __field(int, type)
 
641
                __field(int, dir)
 
642
                __field(pgoff_t, index)
 
643
                __field(int, dirty)
 
644
        ),
 
645
 
 
646
        TP_fast_assign(
 
647
                __entry->dev    = page->mapping->host->i_sb->s_dev;
 
648
                __entry->ino    = page->mapping->host->i_ino;
 
649
                __entry->type   = type;
 
650
                __entry->dir    = S_ISDIR(page->mapping->host->i_mode);
 
651
                __entry->index  = page->index;
 
652
                __entry->dirty  = PageDirty(page);
 
653
        ),
 
654
 
 
655
        TP_printk("dev = (%d,%d), ino = %lu, %s, %s, index = %lu, dirty = %d",
 
656
                show_dev_ino(__entry),
 
657
                show_block_type(__entry->type),
 
658
                show_file_type(__entry->dir),
 
659
                (unsigned long)__entry->index,
 
660
                __entry->dirty)
 
661
);
 
662
 
 
663
DEFINE_EVENT(f2fs__page, f2fs_set_page_dirty,
 
664
 
 
665
        TP_PROTO(struct page *page, int type),
 
666
 
 
667
        TP_ARGS(page, type)
 
668
);
 
669
 
 
670
DEFINE_EVENT(f2fs__page, f2fs_vm_page_mkwrite,
 
671
 
 
672
        TP_PROTO(struct page *page, int type),
 
673
 
 
674
        TP_ARGS(page, type)
 
675
);
 
676
 
626
677
TRACE_EVENT(f2fs_submit_write_page,
627
678
 
628
679
        TP_PROTO(struct page *page, block_t blk_addr, int type),