On Wed, 16 Oct 2019 03:58:19 +0200 Eric Farman <farman@xxxxxxxxxxxxx> wrote: > Commit 3cd90214b70f ("vfio: ccw: add tracepoints for interesting error > paths") added a quick trace point to determine where a channel program > failed while being processed. It's a great addition, but adding more > traces to vfio-ccw is more cumbersome than it needs to be. > > Let's refactor how this is done, so that additional traces are easier > to add and can exist outside of the FSM if we ever desire. > > Signed-off-by: Eric Farman <farman@xxxxxxxxxxxxx> > --- > drivers/s390/cio/Makefile | 4 ++-- > drivers/s390/cio/vfio_ccw_cp.h | 1 + > drivers/s390/cio/vfio_ccw_fsm.c | 3 --- > drivers/s390/cio/vfio_ccw_trace.c | 12 ++++++++++++ > drivers/s390/cio/vfio_ccw_trace.h | 2 ++ > 5 files changed, 17 insertions(+), 5 deletions(-) > create mode 100644 drivers/s390/cio/vfio_ccw_trace.c Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>