File tree Expand file tree Collapse file tree 3 files changed +19
-19
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright (c) 2022, Linaro Limited, All rights reserved.
4
4
* Author: Mike Leach <[email protected] >
5
5
*/
6
+ #include <linux/coresight.h>
6
7
#include <linux/coresight-pmu.h>
7
8
#include <linux/cpumask.h>
8
9
#include <linux/kernel.h>
Original file line number Diff line number Diff line change 32
32
#include <linux/bitops.h>
33
33
#include <linux/types.h>
34
34
35
-
36
- /* architecturally we have 128 IDs some of which are reserved */
37
- #define CORESIGHT_TRACE_IDS_MAX 128
38
-
39
35
/* ID 0 is reserved */
40
36
#define CORESIGHT_TRACE_ID_RES_0 0
41
37
46
42
#define IS_VALID_CS_TRACE_ID (id ) \
47
43
((id > CORESIGHT_TRACE_ID_RES_0) && (id < CORESIGHT_TRACE_ID_RES_TOP))
48
44
49
- /**
50
- * Trace ID map.
51
- *
52
- * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs.
53
- * Initialised so that the reserved IDs are permanently marked as
54
- * in use.
55
- * @pend_rel_ids: CPU IDs that have been released by the trace source but not
56
- * yet marked as available, to allow re-allocation to the same
57
- * CPU during a perf session.
58
- */
59
- struct coresight_trace_id_map {
60
- DECLARE_BITMAP (used_ids , CORESIGHT_TRACE_IDS_MAX );
61
- DECLARE_BITMAP (pend_rel_ids , CORESIGHT_TRACE_IDS_MAX );
62
- };
63
-
64
45
/* Allocate and release IDs for a single default trace ID map */
65
46
66
47
/**
Original file line number Diff line number Diff line change @@ -218,6 +218,24 @@ struct coresight_sysfs_link {
218
218
const char * target_name ;
219
219
};
220
220
221
+ /* architecturally we have 128 IDs some of which are reserved */
222
+ #define CORESIGHT_TRACE_IDS_MAX 128
223
+
224
+ /**
225
+ * Trace ID map.
226
+ *
227
+ * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs.
228
+ * Initialised so that the reserved IDs are permanently marked as
229
+ * in use.
230
+ * @pend_rel_ids: CPU IDs that have been released by the trace source but not
231
+ * yet marked as available, to allow re-allocation to the same
232
+ * CPU during a perf session.
233
+ */
234
+ struct coresight_trace_id_map {
235
+ DECLARE_BITMAP (used_ids , CORESIGHT_TRACE_IDS_MAX );
236
+ DECLARE_BITMAP (pend_rel_ids , CORESIGHT_TRACE_IDS_MAX );
237
+ };
238
+
221
239
/**
222
240
* struct coresight_device - representation of a device as used by the framework
223
241
* @pdata: Platform data with device connections associated to this device.
You can’t perform that action at this time.
0 commit comments