drgn/libdrgn
Omar Sandoval 1fe01bb4b8 libdrgn: python: add call_tp_alloc()
There are a bunch of places where we call .tp_alloc() directly, which is
very verbose. Add a macro that removes the boilerplate.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2022-10-05 16:24:29 -07:00
..
build-aux libdrgn: rework architecture definition files 2022-06-25 22:39:26 -07:00
examples libdrgn: examples: use noreturn for usage() 2022-10-05 16:12:38 -07:00
include libdrgn: add latest elf.h and dwarf.h to support elfutils 0.165 2021-03-21 23:18:39 -07:00
m4 libdrgn: add autoconf option to enable compiler warnings 2022-03-01 15:38:05 -08:00
python libdrgn: python: add call_tp_alloc() 2022-10-05 16:24:29 -07:00
.gitignore libdrgn: use memswitch for linux_kernel_object_find 2022-02-08 02:03:11 -08:00
arch_aarch64_defs.py libdrgn: aarch64: add RA_SIGN_STATE pseudo-register and DW_CFA_AARCH64_negate_ra_state 2022-06-26 09:18:07 -07:00
arch_aarch64.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
arch_arm.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
arch_i386.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
arch_ppc64_defs.py libdrgn: ppc64: fix DWARF link register confusion 2022-06-25 22:39:30 -07:00
arch_ppc64.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
arch_riscv.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
arch_x86_64_defs.py libdrgn: x86-64: add a few more register definitions 2022-06-25 22:39:30 -07:00
arch_x86_64.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
array.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
binary_buffer.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
binary_buffer.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
binary_search_tree.h libdrgn: binary_search_tree: move member and entry_to_key to DEFINE_BINARY_SEARCH_TREE_FUNCTIONS() 2022-05-24 15:26:39 -07:00
bitops.h libdrgn: linux_kernel: cache PAGE_SHIFT derived from PAGE_SIZE 2022-07-14 12:05:09 -07:00
cfi.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
cfi.h libdrgn: cfi: add rule to set register to constant 2022-06-26 09:18:07 -07:00
cityhash.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
configure.ac libdrgn: enable -Wimplicit-fallthrough, take 2 2022-10-04 23:36:01 -07:00
debug_info.c libdrgn: string_builder: add dedicated initializer 2022-10-05 15:32:07 -07:00
debug_info.h libdrgn: handle reading data from SHT_NOBITS sections 2022-01-27 12:23:09 -08:00
Doxyfile libdrgn: add read(2) and pread(2) wrappers that don't return short reads 2022-08-26 12:43:20 -07:00
drgn_program_parse_vmcoreinfo.inc.strswitch libdrgn: aarch64: implement page table iterator 2022-07-14 12:23:08 -07:00
drgn.h.in docs: use "programmable debugger" description consistently 2022-08-19 01:21:32 -07:00
dwarf_info.c libdrgn: enable -Wimplicit-fallthrough, take 2 2022-10-04 23:36:01 -07:00
dwarf_info.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
error.c libdrgn: string_builder: replace string_builder_finalize() 2022-10-05 15:55:04 -07:00
error.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
hash_table.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
hash_table.h libdrgn: hash_table: sanity check integer sizes more 2022-04-12 16:18:46 -07:00
helpers.h Fix vmcore stack traces on Linux < 4.9 or >= 5.16 and add drgn.helpers.linux.task_cpu() 2022-10-03 16:21:12 -07:00
io.c libdrgn: add read(2) and pread(2) wrappers that don't return short reads 2022-08-26 12:43:20 -07:00
io.h libdrgn: add read(2) and pread(2) wrappers that don't return short reads 2022-08-26 12:43:20 -07:00
kdump.c libdrgn: fold struct vmcoreinfo into struct drgn_program 2022-06-26 09:18:07 -07:00
language_c.c libdrgn: string_builder: replace string_builder_finalize() 2022-10-05 15:55:04 -07:00
language.c Fix various lints 2022-02-17 10:45:42 -08:00
language.h libdrgn: dwarf: look up complete types in namespaces 2022-07-15 16:02:56 -07:00
lazy_object.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
lazy_object.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
lexer.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
lexer.h Enable prog.type to work with classes 2022-02-22 14:55:23 -08:00
linux_kernel_helpers.c Fix vmcore stack traces on Linux < 4.9 or >= 5.16 and add drgn.helpers.linux.task_cpu() 2022-10-03 16:21:12 -07:00
linux_kernel_object_find.inc.strswitch libdrgn: linux_kernel: make virt_to_phys() and phys_to_virt() generic 2022-07-14 12:05:11 -07:00
linux_kernel.c libdrgn: linux_kernel: fix global per-CPU variables in kernel modules 2022-09-12 16:27:28 -07:00
linux_kernel.h libdrgn: fold struct vmcoreinfo into struct drgn_program 2022-06-26 09:18:07 -07:00
Makefile.am libdrgn: add read(2) and pread(2) wrappers that don't return short reads 2022-08-26 12:43:20 -07:00
memory_reader.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
memory_reader.h libdrgn: elaborate on core dump p_filesz < p_memsz ambiguity 2022-08-26 12:43:20 -07:00
minmax.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
nstring.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
object_index.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
object_index.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
object.c libdrgn: enable -Wimplicit-fallthrough, take 2 2022-10-04 23:36:01 -07:00
object.h libdrgn: support reference and absent objects with >64-bit integer types 2022-04-28 13:38:38 -07:00
orc_info.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
orc_info.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
orc.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
path.c Fix various lints 2022-02-17 10:45:42 -08:00
path.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
platform.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
platform.h libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
pp.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
program.c libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
program.h libdrgn: aarch64: implement page table iterator 2022-07-14 12:23:08 -07:00
register_state.c libdrgn: register_state: add and use drgn_register_state_get_u64() 2022-06-25 22:39:30 -07:00
register_state.h libdrgn: fix include-what-you-use warnings 2022-08-26 12:43:20 -07:00
serialize.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
serialize.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
splay_tree.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
stack_trace.c libdrgn: string_builder: replace string_builder_finalize() 2022-10-05 15:55:04 -07:00
stack_trace.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
string_builder.c libdrgn: string_builder: replace string_builder_finalize() 2022-10-05 15:55:04 -07:00
string_builder.h libdrgn: string_builder: replace string_builder_finalize() 2022-10-05 15:55:04 -07:00
symbol.c Add methods to return multiple matching symbols 2022-01-15 11:44:33 -08:00
symbol.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
type.c libdrgn: enable -Wimplicit-fallthrough, take 2 2022-10-04 23:36:01 -07:00
type.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
util.h libdrgn: enable -Wimplicit-fallthrough, take 2 2022-10-04 23:36:01 -07:00
vector.c Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
vector.h Update copyright headers to Meta 2021-11-21 15:59:44 -08:00