coresight: Add helper for inserting synchronization packets
Right now we open code filling the trace buffer with synchronization packets when the circular buffer wraps around in different drivers. Move this to a common place. While at it, clean up the barrier_pkt array to strip off the trailing '\0'. Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Signed-off-by:Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/hwtracing/coresight/coresight-etb10.c 4 additions, 8 deletionsdrivers/hwtracing/coresight/coresight-etb10.c
- drivers/hwtracing/coresight/coresight-priv.h 9 additions, 1 deletiondrivers/hwtracing/coresight/coresight-priv.h
- drivers/hwtracing/coresight/coresight-tmc-etf.c 8 additions, 19 deletionsdrivers/hwtracing/coresight/coresight-tmc-etf.c
- drivers/hwtracing/coresight/coresight-tmc-etr.c 1 addition, 12 deletionsdrivers/hwtracing/coresight/coresight-tmc-etr.c
- drivers/hwtracing/coresight/coresight.c 1 addition, 2 deletionsdrivers/hwtracing/coresight/coresight.c
Loading
Please register or sign in to comment