Skip to content
  • Ross Zwisler's avatar
    tracing: add __print_flags_u64() · d3213e8f
    Ross Zwisler authored
    Patch series "DAX tracepoints, mm argument simplification", v4.
    
    This contains both my DAX tracepoint code and Dave Jiang's MM argument
    simplifications.  Dave's code was written with my tracepoint code as a
    baseline, so it seemed simplest to keep them together in a single series.
    
    This patch (of 7):
    
    Add __print_flags_u64() and the helper trace_print_flags_seq_u64() in the
    same spirit as __print_symbolic_u64() and trace_print_symbols_seq_u64().
    These functions allow us to print symbols associated with flags that are
    64 bits wide even on 32 bit machines.
    
    These will be used by the DAX code so that we can print the flags set in a
    pfn_t such as PFN_SG_CHAIN, PFN_SG_LAST, PFN_DEV and PFN_MAP.
    
    Without this new function I was getting errors like the following when
    compiling for i386:
    
      include/linux/pfn_t.h:13:22: warning: large integer implicitly truncated to unsigned type [-Woverflow]
       #define PFN_SG_CHAIN (1ULL << (BITS_PER_LONG_LONG - 1))
        ^
    
    Link: http://lkml.kernel.org/r/1484085142-2297-2-git-send-email-ross.zwisler@linux.intel.com
    
    
    Signed-off-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
    Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Cc: Dave Chinner <david@fromorbit.com>
    Cc: Dave Jiang <dave.jiang@intel.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Matthew Wilcox <mawilcox@microsoft.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d3213e8f