symbol.h (eac9a4342e5447cade4d484261a8992e2ec6f138) | symbol.h (f766819cd5290d42efa55c505b9bed184fec17bf) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __PERF_SYMBOL 3#define __PERF_SYMBOL 1 4 5#include <linux/types.h> 6#include <linux/refcount.h> 7#include <stdbool.h> 8#include <stdint.h> --- 9 unchanged lines hidden (view full) --- 18#include <gelf.h> 19#endif 20#include <elf.h> 21 22struct dso; 23struct map; 24struct maps; 25struct option; | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __PERF_SYMBOL 3#define __PERF_SYMBOL 1 4 5#include <linux/types.h> 6#include <linux/refcount.h> 7#include <stdbool.h> 8#include <stdint.h> --- 9 unchanged lines hidden (view full) --- 18#include <gelf.h> 19#endif 20#include <elf.h> 21 22struct dso; 23struct map; 24struct maps; 25struct option; |
26struct build_id; |
|
26 27/* 28 * libelf 0.8.x and earlier do not support ELF_C_READ_MMAP; 29 * for newer versions we can use mmap to reduce memory usage: 30 */ 31#ifdef HAVE_LIBELF_MMAP_SUPPORT 32# define PERF_ELF_C_READ_MMAP ELF_C_READ_MMAP 33#else --- 103 unchanged lines hidden (view full) --- 137struct symbol *symbol__next_by_name(struct symbol *sym); 138 139struct symbol *dso__first_symbol(struct dso *dso); 140struct symbol *dso__last_symbol(struct dso *dso); 141struct symbol *dso__next_symbol(struct symbol *sym); 142 143enum dso_type dso__type_fd(int fd); 144 | 27 28/* 29 * libelf 0.8.x and earlier do not support ELF_C_READ_MMAP; 30 * for newer versions we can use mmap to reduce memory usage: 31 */ 32#ifdef HAVE_LIBELF_MMAP_SUPPORT 33# define PERF_ELF_C_READ_MMAP ELF_C_READ_MMAP 34#else --- 103 unchanged lines hidden (view full) --- 138struct symbol *symbol__next_by_name(struct symbol *sym); 139 140struct symbol *dso__first_symbol(struct dso *dso); 141struct symbol *dso__last_symbol(struct dso *dso); 142struct symbol *dso__next_symbol(struct symbol *sym); 143 144enum dso_type dso__type_fd(int fd); 145 |
145int filename__read_build_id(const char *filename, void *bf, size_t size); | 146int filename__read_build_id(const char *filename, struct build_id *id); |
146int sysfs__read_build_id(const char *filename, void *bf, size_t size); 147int modules__parse(const char *filename, void *arg, 148 int (*process_module)(void *arg, const char *name, 149 u64 start, u64 size)); 150int filename__read_debuglink(const char *filename, char *debuglink, 151 size_t size); 152 153struct perf_env; --- 133 unchanged lines hidden --- | 147int sysfs__read_build_id(const char *filename, void *bf, size_t size); 148int modules__parse(const char *filename, void *arg, 149 int (*process_module)(void *arg, const char *name, 150 u64 start, u64 size)); 151int filename__read_debuglink(const char *filename, char *debuglink, 152 size_t size); 153 154struct perf_env; --- 133 unchanged lines hidden --- |