struct vm_area_struct;
TRACE_EVENT(__vma_mt_erase,
+
TP_PROTO(struct mm_struct *mm, struct vm_area_struct *vma),
TP_ARGS(mm, vma),
- TP_STRUCT__entry(
- __field( struct mm_struct, mm)
- __field( struct vma_area_struct vma)
+ TP_STRUCT__entry (
+ __field( struct mm_struct *, mm)
+ __field( struct vm_area_struct *, vma)
+ __field( unsigned long, vm_start)
+ __field( unsigned long, vm_end)
),
TP_fast_assign(
__entry->mm = mm;
__entry->vma = vma;
__entry->vm_start = vma->vm_start;
- __entry->vm_end = vma->vm_end;
+ __entry->vm_end = vma->vm_end - 1;
),
TP_printk("mt_mod %p, (%p), ERASE, %lu, %lu\n",
__entry->mm, __entry->vma,
(unsigned long) __entry->vm_start,
- (unsigned long) __entry->vm_end - 1
+ (unsigned long) __entry->vm_end
)
);
TP_ARGS(mm, vma),
TP_STRUCT__entry(
- __field( struct mm_struct, mm)
- __field( struct vma_area_struct vma)
+ __field( struct mm_struct*, mm)
+ __field( struct vm_area_struct*, vma)
+ __field( unsigned long, vm_start)
+ __field( unsigned long, vm_end)
),
TP_fast_assign(
__entry->mm = mm;
__entry->vma = vma;
__entry->vm_start = vma->vm_start;
- __entry->vm_end = vma->vm_end;
+ __entry->vm_end = vma->vm_end - 1;
),
TP_printk("mt_mod %p, (%p), SNULL, %lu, %lu\n",
TP_ARGS(mm, vma),
TP_STRUCT__entry(
- __field( struct mm_struct, mm)
- __field( struct vma_area_struct vma)
+ __field( struct mm_struct*, mm)
+ __field( struct vm_area_struct*, vma)
+ __field( unsigned long, vm_start)
+ __field( unsigned long, vm_end)
),
TP_fast_assign(
__entry->mm = mm;
__entry->vma = vma;
__entry->vm_start = vma->vm_start;
- __entry->vm_end = vma->vm_end;
+ __entry->vm_end = vma->vm_end - 1;
),
TP_printk("mt_mod %p, (%p), STORE, %lu, %lu\n",
TP_ARGS(mm),
TP_STRUCT__entry(
- __field( struct mm_struct, mm)
+ __field( struct mm_struct*, mm)
),
TP_fast_assign(