Skip to content

Remove remaining cases of err(3). Issue #74#111

Merged
haesbaert merged 1 commit into
mainfrom
no-err
Jan 15, 2025
Merged

Remove remaining cases of err(3). Issue #74#111
haesbaert merged 1 commit into
mainfrom
no-err

Conversation

@haesbaert
Copy link
Copy Markdown
Collaborator

  • Bump retries on insert from 10 to 1000 before giving up.
  • Put a timeout on drain_for_pid(), I used to manually test the changing paths, and it's good to have anyway.
  • Check if clock_gettime() works in quark_queue_open(), maybe it gets EPERM due to seccomp and whatnot, sanitize return of now64(), program still survives. I just don't want to check now64() errors while they're impossible.

- Bump retries on insert from 10 to 1000 before giving up.
- Put a timeout on drain_for_pid(), I used to manually test the changing paths,
  and it's good to have anyway.
- Check if clock_gettime() works in quark_queue_open(), maybe it gets EPERM due
  to seccomp and whatnot, sanitize return of now64(), program still survives. I
  just don't want to check now64() errors while they're impossible.
@haesbaert haesbaert requested a review from a team as a code owner January 14, 2025 08:45
Comment thread kprobe_queue.c
raw_event_insert(qq, raw);
if (raw_event_insert(qq, raw) == -1) {
raw_event_free(raw);
raw = NULL;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch setting this to NULL.

@haesbaert haesbaert merged commit 968be35 into main Jan 15, 2025
@haesbaert haesbaert deleted the no-err branch April 2, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants