Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funccount: Verify probe max limit #771

Merged
merged 1 commit into from
Oct 20, 2016
Merged

Conversation

goldshtn
Copy link
Collaborator

Because funccount doesn't use the direct regex attach infrastructure
in the BPF module, it needs its own checking for a maximum probe
limit that would make sense. We use 1000 because that's what the
BPF module uses as well. When trying to attach to more than 1000
probes, we bail out early. (This is better than the behavior in the last
merged PR because it doesn't attach probes one-by-one and then fail,
it bails out immediately.)

@brendangregg You were so quick to merge that I didn't manage to get
this in the last PR 😄

Because `funccount` doesn't use the direct regex attach infrastructure
in the BPF module, it needs its own checking for a maximum probe
limit that would make sense. We use 1000 because that's what the
BPF module uses as well. When trying to attach to more than 1000
probes, we bail out early.
@brendangregg
Copy link
Member

LGTM

@brendangregg
Copy link
Member

Tested. Good error message.

# ./funccount.py.1 'bash:*'
maximum of 1000 probes allowed, attempted 1470

@4ast 4ast merged commit 3ba14ef into iovisor:master Oct 20, 2016
brendangregg pushed a commit to brendangregg/bcc that referenced this pull request Oct 20, 2016
Because `funccount` doesn't use the direct regex attach infrastructure
in the BPF module, it needs its own checking for a maximum probe
limit that would make sense. We use 1000 because that's what the
BPF module uses as well. When trying to attach to more than 1000
probes, we bail out early.
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.

None yet

3 participants