Lines Matching refs:bug
33 or an actual bug.
46 #include <linux/bug.h>
54 static inline unsigned long bug_addr(const struct bug_entry *bug)
57 return (unsigned long)&bug->bug_addr_disp + bug->bug_addr_disp;
59 return bug->bug_addr;
70 struct bug_entry *bug = NULL;
76 bug = mod->bug_table;
77 for (i = 0; i < mod->num_bugs; ++i, ++bug)
78 if (bugaddr == bug_addr(bug))
81 bug = NULL;
85 return bug;
111 * Thus, this uses RCU to safely manipulate the bug list, since BUG
130 void bug_get_file_line(struct bug_entry *bug, const char **file,
135 *file = (const char *)&bug->file_disp + bug->file_disp;
137 *file = bug->file;
139 *line = bug->line;
148 struct bug_entry *bug;
150 for (bug = __start___bug_table; bug < __stop___bug_table; ++bug)
151 if (bugaddr == bug_addr(bug))
152 return bug;
159 struct bug_entry *bug;
166 bug = find_bug(bugaddr);
167 if (!bug)
172 bug_get_file_line(bug, &file, &line);
174 warning = (bug->flags & BUGFLAG_WARNING) != 0;
175 once = (bug->flags & BUGFLAG_ONCE) != 0;
176 done = (bug->flags & BUGFLAG_DONE) != 0;
185 bug->flags |= BUGFLAG_DONE;
194 if ((bug->flags & BUGFLAG_NO_CUT_HERE) == 0)
199 __warn(file, line, (void *)bugaddr, BUG_GET_TAINT(bug), regs,
227 struct bug_entry *bug;
229 for (bug = start; bug < end; bug++)
230 bug->flags &= ~BUGFLAG_DONE;