Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

tracer: update gobpf and set maxactive #36

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

iaguis
Copy link
Contributor

@iaguis iaguis commented Apr 5, 2017

Gobpf gained support for configuring the 'maxactive' attribute for kretprobes.

This requires kernel support, which is not merged yet: https://lkml.org/lkml/2017/4/3/225

If the kernel doesn't have support for it, we'll fall back to the default, so things shouldn't change for that case.

Fixes #34

@iaguis iaguis requested a review from alban April 5, 2017 14:39
@@ -16,6 +16,12 @@ type Tracer struct {
stopChan chan struct{}
}

// maxActive configures the maximum number of instances of the probed functions
// that can be handled imultaneously.

This comment was marked as abuse.

@iaguis iaguis force-pushed the iaguis/maxactive branch from 4a4c5e0 to 7e0268e Compare April 5, 2017 14:44
Copy link
Contributor

@alban alban left a comment

Choose a reason for hiding this comment

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

The commit message could mention that we need to include the changes from
iovisor/gobpf#39

iaguis added 2 commits April 5, 2017 16:54
Needed to get the changes in iovisor/gobpf#39
@iaguis iaguis force-pushed the iaguis/maxactive branch from 7e0268e to 729cc91 Compare April 5, 2017 14:55
@iaguis iaguis merged commit b715a3b into weaveworks:master Apr 5, 2017
alban added a commit to kinvolk-archives/scope that referenced this pull request Apr 6, 2017
It will help to get missing kretprobe events during the ebpf tracker
initialization:
- weaveworks/tcptracer-bpf#36
- iovisor/gobpf#39
On Linux >= 4.12 (unreleased), accept events should be better tracked
too.

The new gobpf vendoring also includes other small fixes such as error
handling.
alban added a commit to kinvolk-archives/scope that referenced this pull request Apr 6, 2017
It will help to get missing kretprobe events during the ebpf tracker
initialization and missing connect & accept events, specially visible on
single-cores:
- weaveworks/tcptracer-bpf#36
- iovisor/gobpf#39

It makes use of a Linux patch that should be in Linux >= 4.12
(unreleased yet): iovisor/bcc#1072 (comment)
It falls back gracefully on current/older Linux kernels.

The new gobpf vendoring also includes other small fixes such as error
handling.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants