History

Move bp_type_idx to include/linux/hw_breakpoint.h

This has a "#ifdef CONFIG_*" that used to be exposed to userspace. The names in here are so generic that I don't think it's a good idea to expose them to userspace (or even the rest of the kernel). There are multiple in-kernel users, so it's been moved to a kernel header file.

Palmer Dabbelt committed 3 years ago

Commit d3c7ec71 parent 063f3ed3 files · +10 −20Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/hw_breakpoint.h+0−10
@@ -22,14 +22,4 @@ enum { · 21 unmodified lines
22 HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,22 HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
23};23};
24 24
25enum bp_type_idx {
26 TYPE_INST = 0,
27#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
28 TYPE_DATA = 0,
29#else
30 TYPE_DATA = 1,
31#endif
32 TYPE_MAX
33};
34
35#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */25#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t