@@ -34,7 +34,7 @@ ssize_t hisi_event_sysfs_show(struct device *dev,
34
34
35
35
return sysfs_emit (page , "config=0x%lx\n" , (unsigned long )eattr -> var );
36
36
}
37
- EXPORT_SYMBOL_GPL (hisi_event_sysfs_show );
37
+ EXPORT_SYMBOL_NS_GPL (hisi_event_sysfs_show , "HISI_PMU" );
38
38
39
39
/*
40
40
* sysfs cpumask attributes. For uncore PMU, we only have a single CPU to show
@@ -46,7 +46,7 @@ ssize_t hisi_cpumask_sysfs_show(struct device *dev,
46
46
47
47
return sysfs_emit (buf , "%d\n" , hisi_pmu -> on_cpu );
48
48
}
49
- EXPORT_SYMBOL_GPL (hisi_cpumask_sysfs_show );
49
+ EXPORT_SYMBOL_NS_GPL (hisi_cpumask_sysfs_show , "HISI_PMU" );
50
50
51
51
static bool hisi_validate_event_group (struct perf_event * event )
52
52
{
@@ -96,7 +96,7 @@ int hisi_uncore_pmu_get_event_idx(struct perf_event *event)
96
96
97
97
return idx ;
98
98
}
99
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_get_event_idx );
99
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_get_event_idx , "HISI_PMU" );
100
100
101
101
ssize_t hisi_uncore_pmu_identifier_attr_show (struct device * dev ,
102
102
struct device_attribute * attr ,
@@ -106,7 +106,7 @@ ssize_t hisi_uncore_pmu_identifier_attr_show(struct device *dev,
106
106
107
107
return sysfs_emit (page , "0x%08x\n" , hisi_pmu -> identifier );
108
108
}
109
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_identifier_attr_show );
109
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_identifier_attr_show , "HISI_PMU" );
110
110
111
111
static void hisi_uncore_pmu_clear_event_idx (struct hisi_pmu * hisi_pmu , int idx )
112
112
{
@@ -165,7 +165,7 @@ int hisi_uncore_pmu_init_irq(struct hisi_pmu *hisi_pmu,
165
165
166
166
return 0 ;
167
167
}
168
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_init_irq );
168
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_init_irq , "HISI_PMU" );
169
169
170
170
int hisi_uncore_pmu_event_init (struct perf_event * event )
171
171
{
@@ -219,7 +219,7 @@ int hisi_uncore_pmu_event_init(struct perf_event *event)
219
219
220
220
return 0 ;
221
221
}
222
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_event_init );
222
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_event_init , "HISI_PMU" );
223
223
224
224
/*
225
225
* Set the counter to count the event that we're interested in,
@@ -273,7 +273,7 @@ void hisi_uncore_pmu_set_event_period(struct perf_event *event)
273
273
/* Write start value to the hardware event counter */
274
274
hisi_pmu -> ops -> write_counter (hisi_pmu , hwc , val );
275
275
}
276
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_set_event_period );
276
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_set_event_period , "HISI_PMU" );
277
277
278
278
void hisi_uncore_pmu_event_update (struct perf_event * event )
279
279
{
@@ -294,7 +294,7 @@ void hisi_uncore_pmu_event_update(struct perf_event *event)
294
294
HISI_MAX_PERIOD (hisi_pmu -> counter_bits );
295
295
local64_add (delta , & event -> count );
296
296
}
297
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_event_update );
297
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_event_update , "HISI_PMU" );
298
298
299
299
void hisi_uncore_pmu_start (struct perf_event * event , int flags )
300
300
{
@@ -317,7 +317,7 @@ void hisi_uncore_pmu_start(struct perf_event *event, int flags)
317
317
hisi_uncore_pmu_enable_event (event );
318
318
perf_event_update_userpage (event );
319
319
}
320
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_start );
320
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_start , "HISI_PMU" );
321
321
322
322
void hisi_uncore_pmu_stop (struct perf_event * event , int flags )
323
323
{
@@ -334,7 +334,7 @@ void hisi_uncore_pmu_stop(struct perf_event *event, int flags)
334
334
hisi_uncore_pmu_event_update (event );
335
335
hwc -> state |= PERF_HES_UPTODATE ;
336
336
}
337
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_stop );
337
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_stop , "HISI_PMU" );
338
338
339
339
int hisi_uncore_pmu_add (struct perf_event * event , int flags )
340
340
{
@@ -357,7 +357,7 @@ int hisi_uncore_pmu_add(struct perf_event *event, int flags)
357
357
358
358
return 0 ;
359
359
}
360
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_add );
360
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_add , "HISI_PMU" );
361
361
362
362
void hisi_uncore_pmu_del (struct perf_event * event , int flags )
363
363
{
@@ -369,14 +369,14 @@ void hisi_uncore_pmu_del(struct perf_event *event, int flags)
369
369
perf_event_update_userpage (event );
370
370
hisi_pmu -> pmu_events .hw_events [hwc -> idx ] = NULL ;
371
371
}
372
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_del );
372
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_del , "HISI_PMU" );
373
373
374
374
void hisi_uncore_pmu_read (struct perf_event * event )
375
375
{
376
376
/* Read hardware counter and update the perf counter statistics */
377
377
hisi_uncore_pmu_event_update (event );
378
378
}
379
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_read );
379
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_read , "HISI_PMU" );
380
380
381
381
void hisi_uncore_pmu_enable (struct pmu * pmu )
382
382
{
@@ -389,15 +389,15 @@ void hisi_uncore_pmu_enable(struct pmu *pmu)
389
389
390
390
hisi_pmu -> ops -> start_counters (hisi_pmu );
391
391
}
392
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_enable );
392
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_enable , "HISI_PMU" );
393
393
394
394
void hisi_uncore_pmu_disable (struct pmu * pmu )
395
395
{
396
396
struct hisi_pmu * hisi_pmu = to_hisi_pmu (pmu );
397
397
398
398
hisi_pmu -> ops -> stop_counters (hisi_pmu );
399
399
}
400
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_disable );
400
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_disable , "HISI_PMU" );
401
401
402
402
403
403
/*
@@ -484,7 +484,7 @@ int hisi_uncore_pmu_online_cpu(unsigned int cpu, struct hlist_node *node)
484
484
485
485
return 0 ;
486
486
}
487
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_online_cpu );
487
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_online_cpu , "HISI_PMU" );
488
488
489
489
int hisi_uncore_pmu_offline_cpu (unsigned int cpu , struct hlist_node * node )
490
490
{
@@ -515,7 +515,7 @@ int hisi_uncore_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node)
515
515
516
516
return 0 ;
517
517
}
518
- EXPORT_SYMBOL_GPL (hisi_uncore_pmu_offline_cpu );
518
+ EXPORT_SYMBOL_NS_GPL (hisi_uncore_pmu_offline_cpu , "HISI_PMU" );
519
519
520
520
void hisi_pmu_init (struct hisi_pmu * hisi_pmu , struct module * module )
521
521
{
@@ -535,7 +535,7 @@ void hisi_pmu_init(struct hisi_pmu *hisi_pmu, struct module *module)
535
535
pmu -> attr_groups = hisi_pmu -> pmu_events .attr_groups ;
536
536
pmu -> capabilities = PERF_PMU_CAP_NO_EXCLUDE ;
537
537
}
538
- EXPORT_SYMBOL_GPL (hisi_pmu_init );
538
+ EXPORT_SYMBOL_NS_GPL (hisi_pmu_init , "HISI_PMU" );
539
539
540
540
MODULE_DESCRIPTION ("HiSilicon SoC uncore Performance Monitor driver framework" );
541
541
MODULE_LICENSE ("GPL v2" );
0 commit comments