mem-events.c (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | mem-events.c (f0fabf9c897327abd39018aefb5029aff8c7e133) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <stddef.h> 3#include <stdlib.h> 4#include <string.h> 5#include <errno.h> 6#include <sys/types.h> 7#include <sys/stat.h> 8#include <unistd.h> --- 14 unchanged lines hidden (view full) --- 23}; 24#undef E 25 26#undef E 27 28static char mem_loads_name[100]; 29static bool mem_loads_name__init; 30 | 1// SPDX-License-Identifier: GPL-2.0 2#include <stddef.h> 3#include <stdlib.h> 4#include <string.h> 5#include <errno.h> 6#include <sys/types.h> 7#include <sys/stat.h> 8#include <unistd.h> --- 14 unchanged lines hidden (view full) --- 23}; 24#undef E 25 26#undef E 27 28static char mem_loads_name[100]; 29static bool mem_loads_name__init; 30 |
31char *perf_mem_events__name(int i) | 31char * __weak perf_mem_events__name(int i) |
32{ 33 if (i == PERF_MEM_EVENTS__LOAD) { 34 if (!mem_loads_name__init) { 35 mem_loads_name__init = true; 36 scnprintf(mem_loads_name, sizeof(mem_loads_name), 37 perf_mem_events[i].name, 38 perf_mem_events__loads_ldlat); 39 } --- 413 unchanged lines hidden --- | 32{ 33 if (i == PERF_MEM_EVENTS__LOAD) { 34 if (!mem_loads_name__init) { 35 mem_loads_name__init = true; 36 scnprintf(mem_loads_name, sizeof(mem_loads_name), 37 perf_mem_events[i].name, 38 perf_mem_events__loads_ldlat); 39 } --- 413 unchanged lines hidden --- |