Alastair Robertson

Results 63 issues of Alastair Robertson

### What reproduces the bug? ``` #include void __attribute__((noinline)) bar(int a, int b, int c, int d, int e, int f) { printf("hi\n"); } void __attribute__((noinline)) baz(int g, int h,...

enhancement
priority: medium
difficulty: easy

Choose a function which has duplicates in kallsyms: ``` $ grep '\' /proc/kallsyms ffffffff812a6b40 t s_next ffffffff81469630 t s_next ffffffff815bdf60 t s_next ffffffff81759010 t s_next ffffffff817eeed0 t s_next ``` Trace...

bug

My kernel contains multiple BTF entries representing functions of the same name, for several different functions. This can be confirmed with `sudo bpftool btf dump file /boot/vmlinux-xxx`. Some of these...

bug

### Problem Probes are currently attached one-at-a-time, roughly in the order that they're declared in a script (with some [extra ordering logic](https://github.com/bpftrace/bpftrace/blob/b3a6d9a28f63ec0146d49fe4f68d6d5c2b5d96fe/src/bpftrace.cpp#L1172-L1177) that I'm not sure is 100% correct). That...

enhancement
priority: medium
difficulty: medium
reliability

Example usage: ``` tracepoint:syscalls:sys_enter_read { @c = count(); } interval:s:1 { if (@c > 100) { exit() } } ``` Current behaviour: ``` ERROR: Type mismatch for '>': comparing 'count'...

enhancement
language
priority: high
difficulty: medium
power-user

`print(@map)` is designed to print all entries in a map. It currently does this by passing a MapID reference to userspace, where bpftrace iterates over the map entries to print...

enhancement

We currently have a range of C-language programs for testing bpftrace against: https://github.com/bpftrace/bpftrace/tree/19239ad80d0daac1f064ca2e441b2d54120a2f05/tests/testprogs We should also have a few test programs written in the other languages that we claim to...

tests
difficulty: easy

After #2624, the parser appears to return incorrect locations for some AST nodes. e.g.: ``` # bpftrace -e 'fn f($a : int64): str_t[16] { return $a; }' stdin:1:33-42: ERROR: Function...

bug

Probe listing claims that k[ret]funcs have "retval" arguments: ``` # bpftrace -lv kfunc:finish_task_switch kfunc:vmlinux:finish_task_switch struct task_struct * prev struct rq * retval # bpftrace -lv kretfunc:finish_task_switch kretfunc:vmlinux:finish_task_switch struct task_struct *...

bug
priority: low
difficulty: easy

Not all code will be GPL-licensed, so provide users with a way to override the assumed GPL license. 1. Use license defined in config if provided 2. Parse SPDX License...