X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=lib%2Fswiotlb.c;h=55587060e893a8cc4050da40e95a3d036f17b812;hb=2843be343a987e264c40c67729c8acf46f19b098;hp=4e8686c7e5a4085753121337755bf522ccfe6300;hpb=24e31f0bef40f6ed08073734d9250576a44a2db1;p=karo-tx-linux.git diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 4e8686c7e5a4..55587060e893 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -38,6 +38,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + #define OFFSET(val,align) ((unsigned long) \ ( (val) & ( (align) - 1))) @@ -726,6 +729,8 @@ dma_addr_t swiotlb_map_page(struct device *dev, struct page *page, if (dma_capable(dev, dev_addr, size) && !swiotlb_force) return dev_addr; + trace_swiotlb_bounced(dev, dev_addr, size, swiotlb_force); + /* Oh well, have to allocate and map a bounce buffer. */ map = map_single(dev, phys, size, dir); if (map == SWIOTLB_MAP_ERROR) {