aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/gcov/gcc_3_4.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gcov/gcc_3_4.c')
-rw-r--r--kernel/gcov/gcc_3_4.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/gcov/gcc_3_4.c b/kernel/gcov/gcc_3_4.c
index 2dddecbdbe6e..801ee4b0b969 100644
--- a/kernel/gcov/gcc_3_4.c
+++ b/kernel/gcov/gcc_3_4.c
@@ -137,6 +137,18 @@ void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info)
137 gcov_info_head = info->next; 137 gcov_info_head = info->next;
138} 138}
139 139
140/**
141 * gcov_info_within_module - check if a profiling data set belongs to a module
142 * @info: profiling data set
143 * @mod: module
144 *
145 * Returns true if profiling data belongs module, false otherwise.
146 */
147bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
148{
149 return within_module((unsigned long)info, mod);
150}
151
140/* Symbolic links to be created for each profiling data file. */ 152/* Symbolic links to be created for each profiling data file. */
141const struct gcov_link gcov_link[] = { 153const struct gcov_link gcov_link[] = {
142 { OBJ_TREE, "gcno" }, /* Link to .gcno file in $(objtree). */ 154 { OBJ_TREE, "gcno" }, /* Link to .gcno file in $(objtree). */