Age | Commit message (Collapse) | Author |
|
Pass the fd to __udebug_buf_map, set buf->fd only if mapping worked
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
On some MIPS systems, mmap addresses need to be aligned to multiple pages, in
order to avoid issues with data cache aliases. Add an arch specific quirk to
allocate memory in 32 KiB chunks and align addresses returned by mmap.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
Simplifies and fixes error handling
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
Fixes a race condition where freeing a buffer and immediately re-allocating and
adding it would fail to pass the file descriptor to udebugd
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
Can be used to reserve worst case length using udebug_entry_append,
then setting the final length using udebug_entry_set_length
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
Copied and adapted from udebug.git
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|