Lines Matching refs:bug
53 static inline unsigned long bug_addr(const struct bug_entry *bug) in bug_addr() argument
56 return bug->bug_addr; in bug_addr()
58 return (unsigned long)bug + bug->bug_addr_disp; in bug_addr()
69 struct bug_entry *bug = NULL; in module_find_bug() local
75 bug = mod->bug_table; in module_find_bug()
76 for (i = 0; i < mod->num_bugs; ++i, ++bug) in module_find_bug()
77 if (bugaddr == bug_addr(bug)) in module_find_bug()
80 bug = NULL; in module_find_bug()
84 return bug; in module_find_bug()
134 struct bug_entry *bug; in find_bug() local
136 for (bug = __start___bug_table; bug < __stop___bug_table; ++bug) in find_bug()
137 if (bugaddr == bug_addr(bug)) in find_bug()
138 return bug; in find_bug()
145 struct bug_entry *bug; in report_bug() local
152 bug = find_bug(bugaddr); in report_bug()
153 if (!bug) in report_bug()
160 if (bug) { in report_bug()
163 file = bug->file; in report_bug()
165 file = (const char *)bug + bug->file_disp; in report_bug()
167 line = bug->line; in report_bug()
169 warning = (bug->flags & BUGFLAG_WARNING) != 0; in report_bug()
170 once = (bug->flags & BUGFLAG_ONCE) != 0; in report_bug()
171 done = (bug->flags & BUGFLAG_DONE) != 0; in report_bug()
180 bug->flags |= BUGFLAG_DONE; in report_bug()
190 if ((bug->flags & BUGFLAG_NO_CUT_HERE) == 0) in report_bug()
195 __warn(file, line, (void *)bugaddr, BUG_GET_TAINT(bug), regs, in report_bug()
211 struct bug_entry *bug; in clear_once_table() local
213 for (bug = start; bug < end; bug++) in clear_once_table()
214 bug->flags &= ~BUGFLAG_DONE; in clear_once_table()