Function report |
Source Code:arch\x86\kernel\kgdb.c |
Create Date:2022-07-28 08:40:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kgdb_set_hw_break
Proto:static int kgdb_set_hw_break(unsigned long addr, int len, enum kgdb_bptype bptype)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | addr | |
int | len | |
enum kgdb_bptype | bptype |
325 | When i < Total number of available HW breakpoint registers cycle If Not enabled Then |
327 | Break |
328 | If i == Total number of available HW breakpoint registers Then Return -1 |
332 | Case bptype == BP_HARDWARE_BREAKPOINT |
336 | Case bptype == BP_WRITE_WATCHPOINT |
337 | type = rigger on memory write |
338 | Break |
339 | Case bptype == BP_ACCESS_WATCHPOINT |
341 | Break |
342 | Default |
343 | Return -1 |
346 | Case len == 1 |
347 | len = X86_BREAKPOINT_LEN_1 |
348 | Break |
349 | Case len == 2 |
350 | len = X86_BREAKPOINT_LEN_2 |
351 | Break |
352 | Case len == 4 |
353 | len = X86_BREAKPOINT_LEN_4 |
354 | Break |
356 | Case len == 8 |
357 | len = X86_BREAKPOINT_LEN_8 |
358 | Break |
360 | Default |
361 | Return -1 |
364 | If hw_break_reserve_slot(i) Then |
365 | addr = 0 |
366 | Return -1 |
368 | enabled = 1 |
370 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |