diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-10-23 13:32:04 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-10-24 16:37:06 +0200 |
commit | ce5be5a16359962f78f0203f0ed7ad6d489492ab (patch) | |
tree | a8aa1e7586e50e9901b6ddfc628b4dc962ae0101 /lib | |
parent | tracing/events: Add bounce tracing to swiotbl (diff) | |
download | linux-ce5be5a16359962f78f0203f0ed7ad6d489492ab.tar.xz linux-ce5be5a16359962f78f0203f0ed7ad6d489492ab.zip |
tracing/events: Fix swiotlb tracepoint creation
Tracepoints are only created when Xen support is enabled, but they are
also referenced within lib/swiotlb.c. So unless Xen support is enabled
the tracepoints will be missing, therefore causing builds to fail. Fix
this by moving the tracepoint creation to lib/swiotlb.c, which works
nicely because the Xen swiotlb support selects the generic swiotlb
support.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/swiotlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index f0d841907da6..55587060e893 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -38,6 +38,7 @@ #include <linux/bootmem.h> #include <linux/iommu-helper.h> +#define CREATE_TRACE_POINTS #include <trace/events/swiotlb.h> #define OFFSET(val,align) ((unsigned long) \ |