diff options
author | Ian Munsie <imunsie@au1.ibm.com> | 2015-01-09 10:34:36 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-01-22 07:31:51 +0100 |
commit | 9bcf28cdb28e6a793c4e59f0a42c66fe241993a8 (patch) | |
tree | a9a9f854584e3f03b58ea714e73d2b71089b4008 /drivers/misc/cxl/file.c | |
parent | cxl: remove redundant increment of hwirq (diff) | |
download | linux-9bcf28cdb28e6a793c4e59f0a42c66fe241993a8.tar.xz linux-9bcf28cdb28e6a793c4e59f0a42c66fe241993a8.zip |
cxl: Add tracepoints
This patch adds tracepoints throughout the cxl driver, which can provide
insight into:
- Context lifetimes
- Commands sent to the PSL and AFU and their completion status
- Segment and page table misses and their resolution
- PSL and AFU interrupts
- slbia calls from the powerpc copro_fault code
These tracepoints are mostly intended to aid in debugging (particularly
for new AFU designs), and may be useful standalone or in conjunction
with hardware traces collected by the PSL (read out via the trace
interface in debugfs) and AFUs.
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/file.c')
-rw-r--r-- | drivers/misc/cxl/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cxl/file.c index b09be4462294..8953de6fde2d 100644 --- a/drivers/misc/cxl/file.c +++ b/drivers/misc/cxl/file.c @@ -23,6 +23,7 @@ #include <asm/copro.h> #include "cxl.h" +#include "trace.h" #define CXL_NUM_MINORS 256 /* Total to reserve */ #define CXL_DEV_MINORS 13 /* 1 control + 4 AFUs * 3 (dedicated/master/shared) */ @@ -184,6 +185,8 @@ static long afu_ioctl_start_work(struct cxl_context *ctx, */ ctx->pid = get_pid(get_task_pid(current, PIDTYPE_PID)); + trace_cxl_attach(ctx, work.work_element_descriptor, work.num_interrupts, amr); + if ((rc = cxl_attach_process(ctx, false, work.work_element_descriptor, amr))) { afu_release_irqs(ctx); |