Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
8b40f52
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools/perf
Documentation
util
include
PERF-VERSION-GEN
abspath.c
alias.c
cache.h
callchain.c
callchain.h
color.c
color.h
config.c
ctype.c
debug.c
debug.h
environment.c
event.h
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c
header.h
help.c
help.h
levenshtein.c
levenshtein.h
map.c
module.c
module.h
pager.c
parse-events.c
parse-events.h
parse-options.c
parse-options.h
path.c
quote.c
quote.h
run-command.c
run-command.h
sigchain.c
sigchain.h
strbuf.c
strbuf.h
string.c
string.h
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c
symbol.h
thread.c
thread.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event.h
types.h
usage.c
util.h
values.c
values.h
wrapper.c
.gitignore
CREDITS
Makefile
builtin-annotate.c
builtin-help.c
builtin-list.c
builtin-record.c
builtin-report.c
builtin-sched.c
builtin-stat.c
builtin-timechart.c
builtin-top.c
builtin-trace.c
builtin.h
command-list.txt
design.txt
perf.c
perf.h
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
tools
/
perf
/
util
/
module.h
Blame
Blame
Latest commit
History
History
53 lines (45 loc) · 1.31 KB
Breadcrumbs
linux
/
tools
/
perf
/
util
/
module.h
Top
File metadata and controls
Code
Blame
53 lines (45 loc) · 1.31 KB
Raw
#ifndef __PERF_MODULE_ #define __PERF_MODULE_ 1 #include <linux/types.h> #include "../types.h" #include <linux/list.h> #include <linux/rbtree.h> struct section { struct rb_node rb_node; u64 hash; u64 vma; char *name; char *path; }; struct sec_dso { struct list_head node; struct rb_root secs; struct section *(*find_section)(struct sec_dso *, const char *name); char name[0]; }; struct module { struct rb_node rb_node; u64 hash; char *name; char *path; struct sec_dso *sections; int active; }; struct mod_dso { struct list_head node; struct rb_root mods; struct module *(*find_module)(struct mod_dso *, const char *name); char name[0]; }; struct sec_dso *sec_dso__new_dso(const char *name); void sec_dso__delete_sections(struct sec_dso *self); void sec_dso__delete_self(struct sec_dso *self); size_t sec_dso__fprintf(struct sec_dso *self, FILE *fp); struct section *sec_dso__find_section(struct sec_dso *self, const char *name); struct mod_dso *mod_dso__new_dso(const char *name); void mod_dso__delete_modules(struct mod_dso *self); void mod_dso__delete_self(struct mod_dso *self); size_t mod_dso__fprintf(struct mod_dso *self, FILE *fp); struct module *mod_dso__find_module(struct mod_dso *self, const char *name); int mod_dso__load_modules(struct mod_dso *dso); #endif /* __PERF_MODULE_ */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
You can’t perform that action at this time.