mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
Merge "staging: android: ion: Do not assign heap IDs as heaps register"
This commit is contained in:
commit
eba5c99bf6
30 changed files with 3991 additions and 205 deletions
170
include/trace/events/ion.h
Normal file
170
include/trace/events/ion.h
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM ion
|
||||
|
||||
#if !defined(_TRACE_ION_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_ION_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
#define DEV_NAME_NONE "None"
|
||||
|
||||
DECLARE_EVENT_CLASS(ion_dma_map_cmo_class,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible, unsigned long map_attrs,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, map_attrs, dir),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__string(dev_name, dev ? dev_name(dev) : DEV_NAME_NONE)
|
||||
__field(unsigned long, ino)
|
||||
__field(bool, cached)
|
||||
__field(bool, hlos_accessible)
|
||||
__field(unsigned long, map_attrs)
|
||||
__field(enum dma_data_direction, dir)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__assign_str(dev_name, dev ? dev_name(dev) : DEV_NAME_NONE);
|
||||
__entry->ino = ino;
|
||||
__entry->cached = cached;
|
||||
__entry->hlos_accessible = hlos_accessible;
|
||||
__entry->map_attrs = map_attrs;
|
||||
__entry->dir = dir;
|
||||
),
|
||||
|
||||
TP_printk("dev=%s ino=%lu cached=%d access=%d map_attrs=0x%lx dir=%d",
|
||||
__get_str(dev_name),
|
||||
__entry->ino,
|
||||
__entry->cached,
|
||||
__entry->hlos_accessible,
|
||||
__entry->map_attrs,
|
||||
__entry->dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_dma_map_cmo_class, ion_dma_map_cmo_apply,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible, unsigned long map_attrs,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, map_attrs, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_dma_map_cmo_class, ion_dma_map_cmo_skip,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible, unsigned long map_attrs,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, map_attrs, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_dma_map_cmo_class, ion_dma_unmap_cmo_apply,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible, unsigned long map_attrs,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, map_attrs, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_dma_map_cmo_class, ion_dma_unmap_cmo_skip,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible, unsigned long map_attrs,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, map_attrs, dir)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(ion_access_cmo_class,
|
||||
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__string(dev_name, dev ? dev_name(dev) : DEV_NAME_NONE)
|
||||
__field(unsigned long, ino)
|
||||
__field(bool, cached)
|
||||
__field(bool, hlos_accessible)
|
||||
__field(enum dma_data_direction, dir)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__assign_str(dev_name, dev ? dev_name(dev) : DEV_NAME_NONE);
|
||||
__entry->ino = ino;
|
||||
__entry->cached = cached;
|
||||
__entry->hlos_accessible = hlos_accessible;
|
||||
__entry->dir = dir;
|
||||
),
|
||||
|
||||
TP_printk("dev=%s ino=%ld cached=%d access=%d dir=%d",
|
||||
__get_str(dev_name),
|
||||
__entry->ino,
|
||||
__entry->cached,
|
||||
__entry->hlos_accessible,
|
||||
__entry->dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_begin_cpu_access_cmo_apply,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_begin_cpu_access_cmo_skip,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_begin_cpu_access_notmapped,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_end_cpu_access_cmo_apply,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_end_cpu_access_cmo_skip,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ion_access_cmo_class, ion_end_cpu_access_notmapped,
|
||||
TP_PROTO(const struct device *dev, unsigned long ino,
|
||||
bool cached, bool hlos_accessible,
|
||||
enum dma_data_direction dir),
|
||||
|
||||
TP_ARGS(dev, ino, cached, hlos_accessible, dir)
|
||||
);
|
||||
#endif /* _TRACE_ION_H */
|
||||
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
Loading…
Reference in a new issue