tracing/uprobes: Add @+file_offset fetch method
[linux-2.6-block.git] / kernel / trace / trace_probe.h
index 8be84550ceb3c9195be389b72b4448b7032297c8..e29d743fef5de44039440d397f236c5cbcfd26bb 100644 (file)
@@ -106,6 +106,7 @@ enum {
        FETCH_MTD_symbol,
        FETCH_MTD_deref,
        FETCH_MTD_bitfield,
+       FETCH_MTD_file_offset,
        FETCH_MTD_END,
 };
 
@@ -171,10 +172,6 @@ DECLARE_BASIC_FETCH_FUNCS(retval);
 #define fetch_retval_string                    NULL
 #define fetch_retval_string_size               NULL
 
-DECLARE_BASIC_FETCH_FUNCS(memory);
-DECLARE_FETCH_FUNC(memory, string);
-DECLARE_FETCH_FUNC(memory, string_size);
-
 DECLARE_BASIC_FETCH_FUNCS(symbol);
 DECLARE_FETCH_FUNC(symbol, string);
 DECLARE_FETCH_FUNC(symbol, string_size);
@@ -221,6 +218,7 @@ ASSIGN_FETCH_FUNC(memory, ftype),                   \
 ASSIGN_FETCH_FUNC(symbol, ftype),                      \
 ASSIGN_FETCH_FUNC(deref, ftype),                       \
 ASSIGN_FETCH_FUNC(bitfield, ftype),                    \
+ASSIGN_FETCH_FUNC(file_offset, ftype),                 \
          }                                             \
        }