| #
e453e498
|
| 11-Jun-2025 |
Brooks Davis <brooks@FreeBSD.org> |
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is eas
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs.
Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
show more ...
|
| #
1cbd613f
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF type
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF types until a base type is encountered.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
82f5dfc1
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code treats this as a byte offset rather than the offset in bits, leading to wrong values being printed. Fix this by diving with ctm_offset by NBBY.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
d627293f
|
| 03-Apr-2024 |
Mark Johnston <markj@FreeBSD.org> |
ddb: Fix format string errors in db_pprint.c
Reported by: bapt Fixes: aada453dcbaa ("ddb: Properly pretty-print non-labeled enum values")
|
| #
872c4402
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Don't throw away qualifier when pretty-printing unnamed pointers
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|
| #
aada453d
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-label
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-labeled values.
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
show more ...
|
| #
637e67e0
|
| 28-Mar-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Drop obsolete -FreeBSD identifier from license
Reported by: jrtc27 Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|
| #
d722901f
|
| 22-Mar-2024 |
Mark Johnston <markj@FreeBSD.org> |
ddb: Fix format string errors in db_pprint.c
For some reason, db_expr_t is defined as "long" on 64-bit platforms and "int" on others. When printing values of this type, simply cast them to long to
ddb: Fix format string errors in db_pprint.c
For some reason, db_expr_t is defined as "long" on 64-bit platforms and "int" on others. When printing values of this type, simply cast them to long to suppress compilation errors on 32-bit systems.
Reviewed by: bnovkov Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing")
show more ...
|
| #
c21bc6f3
|
| 22-Mar-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Add CTF-based pretty printing
Add basic CTF support and a CTF-powered pretty-printer to ddb.
The db_ctf.* files expose a basic interface for fetching type data for ELF symbols, interacting wit
ddb: Add CTF-based pretty printing
Add basic CTF support and a CTF-powered pretty-printer to ddb.
The db_ctf.* files expose a basic interface for fetching type data for ELF symbols, interacting with the CTF string table, and translating type identifiers to type data.
The db_pprint.c file uses those interfaces to implement a pretty-printer for all kernel ELF symbols. The pretty-printer works with symbol names and arbitrary addresses: pprint struct thread 0xffffffff8194ad90
Pretty-printing currently only works after the root filesystem gets mounted because the CTF info is not available during early boot.
Differential Revision: https://reviews.freebsd.org/D37899 Approved by: markj (mentor)
show more ...
|
| #
e453e498
|
| 11-Jun-2025 |
Brooks Davis <brooks@FreeBSD.org> |
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is eas
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs.
Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
show more ...
|
| #
1cbd613f
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF type
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF types until a base type is encountered.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
82f5dfc1
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code treats this as a byte offset rather than the offset in bits, leading to wrong values being printed. Fix this by diving with ctm_offset by NBBY.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
d627293f
|
| 03-Apr-2024 |
Mark Johnston <markj@FreeBSD.org> |
ddb: Fix format string errors in db_pprint.c
Reported by: bapt Fixes: aada453dcbaa ("ddb: Properly pretty-print non-labeled enum values")
|
| #
872c4402
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Don't throw away qualifier when pretty-printing unnamed pointers
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|
| #
aada453d
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-label
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-labeled values.
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
show more ...
|
| #
637e67e0
|
| 28-Mar-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Drop obsolete -FreeBSD identifier from license
Reported by: jrtc27 Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|
| #
d722901f
|
| 22-Mar-2024 |
Mark Johnston <markj@FreeBSD.org> |
ddb: Fix format string errors in db_pprint.c
For some reason, db_expr_t is defined as "long" on 64-bit platforms and "int" on others. When printing values of this type, simply cast them to long to
ddb: Fix format string errors in db_pprint.c
For some reason, db_expr_t is defined as "long" on 64-bit platforms and "int" on others. When printing values of this type, simply cast them to long to suppress compilation errors on 32-bit systems.
Reviewed by: bnovkov Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing")
show more ...
|
| #
c21bc6f3
|
| 22-Mar-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Add CTF-based pretty printing
Add basic CTF support and a CTF-powered pretty-printer to ddb.
The db_ctf.* files expose a basic interface for fetching type data for ELF symbols, interacting wit
ddb: Add CTF-based pretty printing
Add basic CTF support and a CTF-powered pretty-printer to ddb.
The db_ctf.* files expose a basic interface for fetching type data for ELF symbols, interacting with the CTF string table, and translating type identifiers to type data.
The db_pprint.c file uses those interfaces to implement a pretty-printer for all kernel ELF symbols. The pretty-printer works with symbol names and arbitrary addresses: pprint struct thread 0xffffffff8194ad90
Pretty-printing currently only works after the root filesystem gets mounted because the CTF info is not available during early boot.
Differential Revision: https://reviews.freebsd.org/D37899 Approved by: markj (mentor)
show more ...
|
| #
e453e498
|
| 11-Jun-2025 |
Brooks Davis <brooks@FreeBSD.org> |
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is eas
machine/stdarg.h -> sys/stdarg.h
Switch to using sys/stdarg.h for va_list type and va_* builtins.
Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs.
Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
show more ...
|
| #
1cbd613f
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF type
db_pprint: Properly handle complex pointer types
The existing pretty-printing code fails to properly print complex pointer types. This commit fixes this behaviour by traversing the chain of CTF types until a base type is encountered.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
82f5dfc1
|
| 21-Jul-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code
db_pprint: Fix offset calculation for struct members
The struct pretty-printing code uses the ctm_offset field in struct ctf_member_v3 to calculate the address of a struct member. However, the code treats this as a byte offset rather than the offset in bits, leading to wrong values being printed. Fix this by diving with ctm_offset by NBBY.
Approved by: markj (mentor) Fixes: c21bc6f3c242
show more ...
|
| #
d627293f
|
| 03-Apr-2024 |
Mark Johnston <markj@FreeBSD.org> |
ddb: Fix format string errors in db_pprint.c
Reported by: bapt Fixes: aada453dcbaa ("ddb: Properly pretty-print non-labeled enum values")
|
| #
872c4402
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Don't throw away qualifier when pretty-printing unnamed pointers
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|
| #
aada453d
|
| 03-Apr-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-label
ddb: Properly pretty-print non-labeled enum values
The ddb pretty-printer currently does not print out enum values that are not labeled (e.g. X | Y). The enum printer was reworked to print non-labeled values.
Reported by: jrtc27 Fixes: c21bc6f ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
show more ...
|
| #
637e67e0
|
| 28-Mar-2024 |
Bojan Novković <bnovkov@FreeBSD.org> |
ddb: Drop obsolete -FreeBSD identifier from license
Reported by: jrtc27 Fixes: c21bc6f3c242 ("ddb: Add CTF-based pretty printing") Approved by: markj (mentor)
|