2026-01-21 18:59:54 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
#include "map_symbol.h"
|
|
|
|
|
#include "mem-events.h"
|
|
|
|
|
|
|
|
|
|
/* PowerPC does not support 'ldlat' parameter. */
|
2026-01-29 22:25:33 +08:00
|
|
|
const char *perf_mem_events__name(int i, const char *pmu_name __maybe_unused)
|
2026-01-21 18:59:54 +08:00
|
|
|
{
|
|
|
|
|
if (i == PERF_MEM_EVENTS__LOAD)
|
2026-01-29 22:25:33 +08:00
|
|
|
return "cpu/mem-loads/";
|
2026-01-21 18:59:54 +08:00
|
|
|
|
2026-01-29 22:25:33 +08:00
|
|
|
return "cpu/mem-stores/";
|
2026-01-21 18:59:54 +08:00
|
|
|
}
|