linux_dsm_epyc7002/include/trace/events
Ross Zwisler a9c42b33ed dax: add tracepoints to dax_iomap_pte_fault()
Patch series "second round of tracepoints for DAX".

This second round of DAX tracepoint patches adds tracing to the PTE
fault path (dax_iomap_pte_fault(), dax_pfn_mkwrite(), dax_load_hole(),
dax_insert_mapping()) and to the writeback path
(dax_writeback_mapping_range(), dax_writeback_one()).

The purpose of this tracing is to give us a high level view of what DAX
is doing, whether faults are being serviced by PMDs or PTEs, and by real
storage or by zero pages covering holes.

I do have some patches nearly ready which also add tracing to
grab_mapping_entry() and dax_insert_mapping_entry().  These are more
targeted at logging how we are interacting with the radix tree, how we
use empty entries for locking, whether we "downgrade" huge zero pages to
4k PTE sized allocations, etc.  In the end it seemed to me that this
might be too detailed to have as constantly present tracepoints, but if
anyone sees value in having tracepoints like this in the DAX code
permanently (Jan?), please let me know and I'll add those last two
patches.

All these tracepoints were done to be consistent with the style of the
XFS tracepoints and with the existing DAX PMD tracepoints.

This patch (of 6):

Add tracepoints to dax_iomap_pte_fault(), following the same logging
conventions as the rest of DAX.

Here is an example fault that initially tries to be serviced by the PMD
fault handler but which falls back to PTEs because the VMA isn't large
enough to hold a PMD:

  small-1086  [005] ....
   71.140014: xfs_filemap_huge_fault: dev 259:0 ino 0x1003

  small-1086  [005] ....
    71.140027: dax_pmd_fault: dev 259:0 ino 0x1003 shared WRITE|ALLOW_RETRY|KILLABLE|USER address 0x10420000 vm_start 0x10200000 vm_end 0x10500000 pgoff 0x220 max_pgoff 0x1400

  small-1086  [005] ....
    71.140028: dax_pmd_fault_done: dev 259:0 ino 0x1003 shared WRITE|ALLOW_RETRY|KILLABLE|USER address 0x10420000 vm_start 0x10200000 vm_end 0x10500000 pgoff 0x220 max_pgoff 0x1400 FALLBACK

  small-1086  [005] ....
    71.140035: dax_pte_fault: dev 259:0 ino 0x1003 shared WRITE|ALLOW_RETRY|KILLABLE|USER address 0x10420000 pgoff 0x220

  small-1086  [005] ....
    71.140396: dax_pte_fault_done: dev 259:0 ino 0x1003 shared WRITE|ALLOW_RETRY|KILLABLE|USER address 0x10420000 pgoff 0x220 MAJOR|NOPAGE

Link: http://lkml.kernel.org/r/20170221195116.13278-2-ross.zwisler@linux.intel.com
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-05-08 17:15:15 -07:00
..
9p.h
afs.h afs: Refcount the afs_call struct 2017-01-09 11:10:02 +00:00
alarmtimer.h ktime: Get rid of the union 2016-12-25 17:21:22 +01:00
asoc.h
bcache.h
block.h block: remove the errors field from struct request 2017-04-20 12:16:10 -06:00
bpf.h bpf: map_get_next_key to return first key on NULL 2017-04-25 11:57:45 -04:00
btrfs.h btrfs: Make btrfs_ino take a struct btrfs_inode 2017-02-14 15:50:51 +01:00
cgroup.h kernfs: handle null pointers while printing node name and path 2017-02-10 16:02:26 +01:00
clk.h
cma.h
compaction.h mm, trace: extract COMPACTION_STATUS and ZONE_TYPE to a common header 2017-02-22 16:41:27 -08:00
context_tracking.h
cpuhp.h
devlink.h
dma_fence.h
ext4.h
f2fs.h f2fs: add f2fs_drop_inode tracepoint 2017-02-27 10:51:20 -08:00
fib6.h
fib.h
filelock.h
filemap.h
fs_dax.h dax: add tracepoints to dax_iomap_pte_fault() 2017-05-08 17:15:15 -07:00
gpio.h
host1x.h
hswadsp.h
huge_memory.h
i2c.h
intel_ish.h
intel-sst.h
iommu.h
ipi.h
irq.h
jbd2.h
kmem.h
kvm.h
libata.h
lock.h
mce.h
mdio.h
migrate.h
mmc.h
mmflags.h mm, vmscan: show LRU name in mm_vmscan_lru_isolate tracepoint 2017-02-22 16:41:29 -08:00
module.h
napi.h
net.h
nilfs2.h
nmi.h
oom.h oom, trace: add compaction retry tracepoint 2017-02-22 16:41:27 -08:00
page_isolation.h
page_ref.h
pagemap.h
power_cpu_migrate.h
power.h
printk.h
random.h
rcu.h rcu: Check cond_resched_rcu_qs() state less often to reduce GP overhead 2017-01-23 11:44:18 -08:00
regulator.h
rpm.h
rxrpc.h rxrpc: Trace client call connection 2017-04-06 11:10:41 +01:00
sched.h sched,tracing: Update trace_sched_pi_setprio() 2017-04-04 11:44:06 +02:00
scsi.h
signal.h
skb.h
sock.h
spi.h
spmi.h
sunrpc.h
sunvnet.h
swiotlb.h swiotlb: Add swiotlb=noforce debug option 2016-12-19 09:05:20 -05:00
syscalls.h tracing: Add #undef to fix compile error 2017-03-03 09:45:01 -05:00
target.h
task.h
thermal_power_allocator.h
thermal.h
thp.h
timer.h This release has no new tracing features, just clean ups, minor fixes 2017-02-27 13:26:17 -08:00
tlb.h
udp.h
ufs.h scsi: ufs: add trace event for ufs commands 2017-01-05 18:10:04 -05:00
v4l2.h [media] v4l: Add metadata buffer type and format 2017-04-14 22:37:02 -03:00
vb2.h
vmscan.h mm, vmscan: add mm_vmscan_inactive_list_is_low tracepoint 2017-02-22 16:41:29 -08:00
vsock_virtio_transport_common.h
wbt.h
workqueue.h
writeback.h mm: vmscan: kick flushers when we encounter dirty pages on the LRU 2017-02-24 17:46:54 -08:00
xdp.h bpf: add initial bpf tracepoints 2017-01-25 13:17:47 -05:00
xen.h x86: Convert the rest of the code to support p4d_t 2017-03-27 08:56:58 +02:00