platform/upstream/bcc.git
8 years agoMerge pull request #416 from iovisor/probe_quota
4ast [Tue, 23 Feb 2016 20:55:14 +0000 (12:55 -0800)]
Merge pull request #416 from iovisor/probe_quota

Enforce limit of 1000 open [uk]probes

8 years agoEnforce limit of 1000 open [uk]probes
Brenden Blanco [Tue, 23 Feb 2016 19:59:39 +0000 (11:59 -0800)]
Enforce limit of 1000 open [uk]probes

The number of open probes has bitten users already, so lets enforce a
limit with a meaningful(ish) message.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #414 from iovisor/tag_v0.1.8 v0.1.8
4ast [Tue, 23 Feb 2016 01:47:13 +0000 (17:47 -0800)]
Merge pull request #414 from iovisor/tag_v0.1.8

Prepare debian changelog for v0.1.8 tag

8 years agoPrepare debian changelog for v0.1.8 tag
Brenden Blanco [Tue, 23 Feb 2016 00:42:51 +0000 (16:42 -0800)]
Prepare debian changelog for v0.1.8 tag

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoFixup build scripts to support in-flight version change
Brenden Blanco [Tue, 23 Feb 2016 01:25:21 +0000 (17:25 -0800)]
Fixup build scripts to support in-flight version change

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #412 from iovisor/deb_fixes
4ast [Mon, 22 Feb 2016 23:02:10 +0000 (15:02 -0800)]
Merge pull request #412 from iovisor/deb_fixes

Prepare deb build for nightly target

8 years agoPrepare deb build for nightly target
Brenden Blanco [Mon, 22 Feb 2016 18:29:36 +0000 (10:29 -0800)]
Prepare deb build for nightly target

Add incremental release numbering for deb targets.
Tweak rpm release numbering as well.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #411 from iovisor/drzaeus77-patch-1
4ast [Mon, 22 Feb 2016 18:39:34 +0000 (10:39 -0800)]
Merge pull request #411 from iovisor/drzaeus77-patch-1

Fix ubuntu kernel path typo is INSTALL.md

8 years agoFix ubuntu kernel path typo is INSTALL.md
Brenden Blanco [Mon, 22 Feb 2016 18:36:19 +0000 (10:36 -0800)]
Fix ubuntu kernel path typo is INSTALL.md

8 years agoMerge pull request #408 from iovisor/rpm_updates
4ast [Mon, 22 Feb 2016 17:10:30 +0000 (09:10 -0800)]
Merge pull request #408 from iovisor/rpm_updates

Update rpm build scripts and README

8 years agoMerge pull request #410 from goldshtn/argdist-silent
Brenden Blanco [Mon, 22 Feb 2016 16:41:49 +0000 (08:41 -0800)]
Merge pull request #410 from goldshtn/argdist-silent

Print traceback only if verbose mode was requested

8 years agoMerge pull request #409 from goldshtn/trace2
Brenden Blanco [Mon, 22 Feb 2016 16:39:06 +0000 (08:39 -0800)]
Merge pull request #409 from goldshtn/trace2

trace: trace function execution with custom format strings and filters

8 years agoMerge branch 'master' into argdist-silent
Sasha Goldshtein [Mon, 22 Feb 2016 10:36:43 +0000 (12:36 +0200)]
Merge branch 'master' into argdist-silent

8 years agoFixed examples to use fewer colons
Sasha Goldshtein [Mon, 22 Feb 2016 10:25:03 +0000 (02:25 -0800)]
Fixed examples to use fewer colons

8 years agotrace
Sasha Goldshtein [Mon, 22 Feb 2016 10:19:24 +0000 (02:19 -0800)]
trace

8 years agoUpdate rpm build scripts and README
Brenden Blanco [Fri, 19 Feb 2016 22:42:22 +0000 (14:42 -0800)]
Update rpm build scripts and README

Remove the unused Dockerfiles.

Create two flavors of spec files, one which includes steps to build
clang from source and link against it, and one which assumes clang is
already available and just builds bcc. The former is more appropriate
for official packaging, the latter for nightly and quick builds.

Also, introduce a numbering scheme for nightly rpm files. The format
will be:
`libbcc-$latest_git_tag-g$latest_git_hash.x86_64.rpm`
as in:
`libbcc-0.1.7-g73c4d1a.x86_64.rpm`

Update the INSTALL.md to mention the RPMs

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #407 from yadutaf/jt-readme
Brenden Blanco [Mon, 22 Feb 2016 03:45:27 +0000 (19:45 -0800)]
Merge pull request #407 from yadutaf/jt-readme

Documentation and tcp4connect enhancements

8 years agomake tcpv4connect.py example tracer more robust
Jean-Tiare Le Bigot [Sun, 21 Feb 2016 22:45:29 +0000 (23:45 +0100)]
make tcpv4connect.py example tracer more robust

8 years agominor readme enhancements
Jean-Tiare Le Bigot [Sun, 21 Feb 2016 22:01:05 +0000 (23:01 +0100)]
minor readme enhancements

8 years agoPrint traceback only if verbose mode was requested
Sasha Goldshtein [Sun, 21 Feb 2016 10:21:46 +0000 (02:21 -0800)]
Print traceback only if verbose mode was requested

8 years agoMerge pull request #405 from brendangregg/master
Brenden Blanco [Sat, 20 Feb 2016 01:02:13 +0000 (17:02 -0800)]
Merge pull request #405 from brendangregg/master

tcpconnlat

8 years agodrop unused pid, and improve code-path check
Brendan Gregg [Sat, 20 Feb 2016 00:56:47 +0000 (16:56 -0800)]
drop unused pid, and improve code-path check

8 years agotypo, and improve comment
Brendan Gregg [Sat, 20 Feb 2016 00:14:01 +0000 (16:14 -0800)]
typo, and improve comment

8 years agotcpconnlat
Brendan Gregg [Sat, 20 Feb 2016 00:07:36 +0000 (16:07 -0800)]
tcpconnlat

8 years agoMerge pull request #404 from mcaleavya/master
Brendan Gregg [Sat, 20 Feb 2016 00:03:37 +0000 (16:03 -0800)]
Merge pull request #404 from mcaleavya/master

Migrated killsnoop to bpf_perf_event

8 years agoremoved two bpf_hash args_pid/sig
mcaleavya [Fri, 19 Feb 2016 23:48:20 +0000 (23:48 +0000)]
removed two bpf_hash args_pid/sig

8 years agoMerge branch 'master' of https://github.com/mcaleavya/bcc-1
mcaleavya [Fri, 19 Feb 2016 23:05:44 +0000 (23:05 +0000)]
Merge branch 'master' of https://github.com/mcaleavya/bcc-1

8 years agoMigrated killsnoop to bpf_perf_event
mcaleavya [Fri, 19 Feb 2016 23:02:39 +0000 (23:02 +0000)]
Migrated killsnoop to bpf_perf_event

8 years agoMigrated killsnoop to bpf_perf_event
mcaleavya [Fri, 19 Feb 2016 23:02:39 +0000 (23:02 +0000)]
Migrated killsnoop to bpf_perf_event

8 years agoMerge pull request #403 from mcaleavya/master
Brendan Gregg [Fri, 19 Feb 2016 22:59:53 +0000 (14:59 -0800)]
Merge pull request #403 from mcaleavya/master

syncsnoop migrated to use bpf_perf_events

8 years agocombined lines for delta
Allan McAleavy [Fri, 19 Feb 2016 22:49:21 +0000 (22:49 +0000)]
combined lines for delta

8 years agoremoved include for string.h
mcaleavya [Fri, 19 Feb 2016 21:43:39 +0000 (21:43 +0000)]
removed include for string.h

8 years agoremoved strcpy , renamed Sync to sync.
mcaleavya [Fri, 19 Feb 2016 21:39:52 +0000 (21:39 +0000)]
removed strcpy , renamed Sync to sync.

8 years agomigrated to use bpf_perf_events
mcaleavya [Fri, 19 Feb 2016 21:22:39 +0000 (21:22 +0000)]
migrated to use bpf_perf_events

8 years agoMerge pull request #402 from mcaleavya/master
Brendan Gregg [Fri, 19 Feb 2016 18:28:14 +0000 (10:28 -0800)]
Merge pull request #402 from mcaleavya/master

Migrated filelife to bpf_perf_event

8 years agoMigrated filelife to bpf_perf_event
mcaleavya [Fri, 19 Feb 2016 17:59:23 +0000 (17:59 +0000)]
Migrated filelife to bpf_perf_event

8 years agoMerge pull request #401 from mbertrone/master
4ast [Fri, 19 Feb 2016 15:28:59 +0000 (07:28 -0800)]
Merge pull request #401 from mbertrone/master

http_filter readme fixed

8 years agoMerge branch 'master' into master
Bertrone Matteo [Fri, 19 Feb 2016 12:36:21 +0000 (13:36 +0100)]
Merge branch 'master' into master

8 years agoreadme fixed
Bertrone Matteo [Fri, 19 Feb 2016 12:30:35 +0000 (13:30 +0100)]
readme fixed

8 years agoAdded files via upload
Bertrone Matteo [Fri, 19 Feb 2016 12:27:36 +0000 (13:27 +0100)]
Added files via upload

8 years agoMerge pull request #395 from mcaleavya/master
Brenden Blanco [Thu, 18 Feb 2016 22:50:51 +0000 (14:50 -0800)]
Merge pull request #395 from mcaleavya/master

migration of statsnoop to use bpf_perf_event

8 years agoMerge pull request #399 from iovisor/fix_398
Brendan Gregg [Thu, 18 Feb 2016 22:39:21 +0000 (14:39 -0800)]
Merge pull request #399 from iovisor/fix_398

Fix syntax error in bpf_get_prandom_u32

8 years agoUpdated spaces after commas
mcaleavya [Thu, 18 Feb 2016 22:30:33 +0000 (22:30 +0000)]
Updated spaces after commas

8 years agoFix syntax error in bpf_get_prandom_u32
Brenden Blanco [Thu, 18 Feb 2016 22:08:28 +0000 (14:08 -0800)]
Fix syntax error in bpf_get_prandom_u32

Fixes: #398
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agohttp_filter renamed, README fixed
Bertrone Matteo [Thu, 18 Feb 2016 11:36:28 +0000 (12:36 +0100)]
http_filter renamed, README fixed

8 years agoMerge pull request #396 from iovisor/fix_333
4ast [Thu, 18 Feb 2016 03:37:53 +0000 (19:37 -0800)]
Merge pull request #396 from iovisor/fix_333

Embed runtime header files in libbcc.so

8 years agoEmbed runtime header files in libbcc.so
Brenden Blanco [Thu, 18 Feb 2016 03:26:01 +0000 (19:26 -0800)]
Embed runtime header files in libbcc.so

To avoid installing header files needed by clang to disk
(/usr/share/bcc), embed the files as strings inside the library and feed
them to clang as memory buffers. The mechanism that we use to do this
retains all of the existing features, as in one can still do `#include
<bcc/helpers.h>`, even though it is redundant, and clang will pick up
the embedded file.

Fixes: #333
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agomigrated statsnoop to use bpf_perf_event_output
mcaleavya [Wed, 17 Feb 2016 22:12:44 +0000 (22:12 +0000)]
migrated statsnoop to use bpf_perf_event_output

8 years agoMerge branch 'master' of https://github.com/mcaleavya/bcc-1
mcaleavya [Wed, 17 Feb 2016 22:04:14 +0000 (22:04 +0000)]
Merge branch 'master' of https://github.com/mcaleavya/bcc-1

8 years agoMerge pull request #392 from iovisor/fix_perf_buffer
4ast [Wed, 17 Feb 2016 15:16:46 +0000 (07:16 -0800)]
Merge pull request #392 from iovisor/fix_perf_buffer

Fix breakage in open_perf_buffer

8 years agoFix breakage in open_perf_buffer
Brenden Blanco [Wed, 17 Feb 2016 08:26:14 +0000 (00:26 -0800)]
Fix breakage in open_perf_buffer

The previous commit for splitting table.py into a separate file lost
some required imports. Add those back.

In addition, add a test for open_perf_buffer, and take out the
compile-time check in libbpf.c for this feature.

I couldn't think of a good way to fix the PERF_COUNT_SW_BPF_OUTPUT
literal, so for now left it as a comment. A #define wouldn't work since
the eventual value comes from an enum (no #ifndef/#define/#endif
pattern).

Fixes: #391 #363
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #390 from iovisor/tables_cleanup
4ast [Wed, 17 Feb 2016 01:16:15 +0000 (17:16 -0800)]
Merge pull request #390 from iovisor/tables_cleanup

Cleanup tables classes in bcc python module

8 years agoSupport native integer indexing in table.Array type
Brenden Blanco [Tue, 16 Feb 2016 16:36:26 +0000 (17:36 +0100)]
Support native integer indexing in table.Array type

Improve the indexing in the Array class to be more like native python
list/array types. No need to use `t[c_int(0)]`, instead `t[0]` is
sufficient, for instance.

Add tests for the above. Relies on a new bpf_module function for
exposing the max_entries property of a table in order to range-check the
indices.

In one case, array was using a struct key type.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoSplit bcc.table.BPFTable into multiple type-specific classes
Brenden Blanco [Tue, 16 Feb 2016 14:58:58 +0000 (15:58 +0100)]
Split bcc.table.BPFTable into multiple type-specific classes

BPFTable contained all of the logic for multiple table types, which is
incorrect since a bpf table has either hash or array behavior.
Additionally, some methods on the classes aren't valid for some table
types. Create HashTable, Array, ProgArray, and PerfEventArray classes to
contain this behavior.

In future, the new Array class and its children should behave more like
an array than a dict as it currently does.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoSplit bcc/__init__.py into multiple files
Brenden Blanco [Tue, 16 Feb 2016 13:54:39 +0000 (14:54 +0100)]
Split bcc/__init__.py into multiple files

The subclasses and some of the imports inside __init__.py were getting
overly large, so start to split some of the functionality into different
files.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #384 from mmlb/patch-1
4ast [Tue, 16 Feb 2016 18:03:18 +0000 (10:03 -0800)]
Merge pull request #384 from mmlb/patch-1

fix couple of minor typos

8 years agoMerge pull request #388 from brendangregg/master
4ast [Tue, 16 Feb 2016 14:59:18 +0000 (06:59 -0800)]
Merge pull request #388 from brendangregg/master

2 tools: btrfsdist, btrfsslower

8 years agobtrfsdist
Brendan Gregg [Tue, 16 Feb 2016 06:24:02 +0000 (22:24 -0800)]
btrfsdist

8 years agobtrfsslower
Brendan Gregg [Tue, 16 Feb 2016 06:22:19 +0000 (22:22 -0800)]
btrfsslower

8 years agoMerge pull request #386 from brendangregg/master
4ast [Tue, 16 Feb 2016 01:11:38 +0000 (17:11 -0800)]
Merge pull request #386 from brendangregg/master

inline C in /tools

8 years agoinline C in /tools
Brendan Gregg [Mon, 15 Feb 2016 23:55:08 +0000 (15:55 -0800)]
inline C in /tools

8 years agofix couple of minor typos
Manuel Mendez [Mon, 15 Feb 2016 22:08:23 +0000 (17:08 -0500)]
fix couple of minor typos

8 years agoMerge pull request #383 from brendangregg/master
4ast [Mon, 15 Feb 2016 09:22:16 +0000 (09:22 +0000)]
Merge pull request #383 from brendangregg/master

3 tools: tcpretrans, zfsslower, zfsdist

8 years agobetter titles for dist tools
Brendan Gregg [Mon, 15 Feb 2016 07:31:14 +0000 (23:31 -0800)]
better titles for dist tools

8 years agozfsdist
Brendan Gregg [Mon, 15 Feb 2016 07:14:12 +0000 (23:14 -0800)]
zfsdist

8 years agozfsslower
Brendan Gregg [Mon, 15 Feb 2016 07:13:13 +0000 (23:13 -0800)]
zfsslower

8 years agodocs link typo
Brendan Gregg [Mon, 15 Feb 2016 02:22:57 +0000 (18:22 -0800)]
docs link typo

8 years agotool list alphabetical order
Brendan Gregg [Mon, 15 Feb 2016 02:16:06 +0000 (18:16 -0800)]
tool list alphabetical order

8 years agotcpretrans
Brendan Gregg [Mon, 15 Feb 2016 02:15:24 +0000 (18:15 -0800)]
tcpretrans

8 years agoMerge pull request #381 from brendangregg/master
4ast [Mon, 15 Feb 2016 00:45:38 +0000 (00:45 +0000)]
Merge pull request #381 from brendangregg/master

tcp to bpf_perf_output

8 years agotcp to bpf_perf_output
Brendan Gregg [Mon, 15 Feb 2016 00:32:29 +0000 (16:32 -0800)]
tcp to bpf_perf_output

8 years agoMerge pull request #379 from goldshtn/cosmetic
4ast [Sun, 14 Feb 2016 16:35:33 +0000 (17:35 +0100)]
Merge pull request #379 from goldshtn/cosmetic

Cosmetic changes: removed .py suffix, fixed link in README

8 years agoFixed typo
Sasha Goldshtein [Sun, 14 Feb 2016 16:32:54 +0000 (08:32 -0800)]
Fixed typo

8 years agoRenamed to *_example.txt and fixed README again
Sasha Goldshtein [Sun, 14 Feb 2016 15:53:59 +0000 (07:53 -0800)]
Renamed to *_example.txt and fixed README again

8 years agoCosmetic changes: removed .py suffix, fixed link in README
Sasha Goldshtein [Sun, 14 Feb 2016 14:56:07 +0000 (06:56 -0800)]
Cosmetic changes: removed .py suffix, fixed link in README

8 years agoMerge pull request #377 from goldshtn/argdist-tuples
4ast [Sun, 14 Feb 2016 13:34:23 +0000 (14:34 +0100)]
Merge pull request #377 from goldshtn/argdist-tuples

Enhancements to argdist

8 years agoAdded small list of automatic includes to make the -I switch less necessary
Sasha Goldshtein [Sun, 14 Feb 2016 13:12:27 +0000 (05:12 -0800)]
Added small list of automatic includes to make the -I switch less necessary

8 years agoMerge branch 'master' into argdist-tuples
Sasha Goldshtein [Sun, 14 Feb 2016 11:57:06 +0000 (13:57 +0200)]
Merge branch 'master' into argdist-tuples

8 years agoFixed bug with labels, added support for tuples in hash
Sasha Goldshtein [Sun, 14 Feb 2016 11:49:01 +0000 (03:49 -0800)]
Fixed bug with labels, added support for tuples in hash

8 years agoMerge pull request #376 from brendangregg/master
4ast [Sun, 14 Feb 2016 10:53:38 +0000 (11:53 +0100)]
Merge pull request #376 from brendangregg/master

mdflush

8 years agoImproved error messages for invalid probe syntax, added -I switch to add include...
Sasha Goldshtein [Sun, 14 Feb 2016 07:14:18 +0000 (23:14 -0800)]
Improved error messages for invalid probe syntax, added -I switch to add include files, fixed bug with labels -- now using # to indicate label

8 years agomdflush
Brendan Gregg [Sun, 14 Feb 2016 05:07:23 +0000 (21:07 -0800)]
mdflush

8 years agoMerge branch 'master' into argdist-enh
Sasha Goldshtein [Sat, 13 Feb 2016 11:58:21 +0000 (03:58 -0800)]
Merge branch 'master' into argdist-enh

8 years agoFinalized $entry, $latency, and $retval implementation including examples and man
Sasha Goldshtein [Sat, 13 Feb 2016 11:56:29 +0000 (03:56 -0800)]
Finalized $entry, $latency, and $retval implementation including examples and man

8 years agoMerge pull request #371 from brendangregg/master
4ast [Sat, 13 Feb 2016 10:14:06 +0000 (11:14 +0100)]
Merge pull request #371 from brendangregg/master

ext4 and xfs tools

8 years agoMerge pull request #3 from iovisor/master
Allan McAleavy [Sat, 13 Feb 2016 00:44:23 +0000 (00:44 +0000)]
Merge pull request #3 from iovisor/master

update local with changes from master

8 years agoMerge pull request #372 from mcaleavya/master
Brenden Blanco [Sat, 13 Feb 2016 00:28:57 +0000 (01:28 +0100)]
Merge pull request #372 from mcaleavya/master

migrated biosnoop and bashreadline to use bpf_perf_event_output

8 years agostyle updates
mcaleavya [Fri, 12 Feb 2016 23:43:14 +0000 (23:43 +0000)]
style updates

8 years agochanged key struct to data as requested
mcaleavya [Fri, 12 Feb 2016 23:19:11 +0000 (23:19 +0000)]
changed key struct to data as requested

8 years agoadded spaces and tidyup of biosnoop
mcaleavya [Fri, 12 Feb 2016 23:06:53 +0000 (23:06 +0000)]
added spaces and tidyup of biosnoop

8 years agoupdated man pages
mcaleavya [Fri, 12 Feb 2016 20:10:59 +0000 (20:10 +0000)]
updated man pages

8 years agoadded new files for biosnoop and bashreadline
mcaleavya [Fri, 12 Feb 2016 20:06:38 +0000 (20:06 +0000)]
added new files for biosnoop and bashreadline

8 years agoreworking of biosnoop and bashreadline to use bf_perf_event_output. Also moved old...
mcaleavya [Fri, 12 Feb 2016 20:04:35 +0000 (20:04 +0000)]
reworking of biosnoop and bashreadline to use bf_perf_event_output. Also moved old versions to tools/old

8 years agoAdded (paramname) support
Sasha Goldshtein [Fri, 12 Feb 2016 19:14:20 +0000 (11:14 -0800)]
Added (paramname) support

8 years agoMerge branch 'master' into master
Brendan Gregg [Fri, 12 Feb 2016 16:20:33 +0000 (08:20 -0800)]
Merge branch 'master' into master

8 years agoMerge pull request #369 from goldshtn/alloc-hist
Brendan Gregg [Fri, 12 Feb 2016 16:20:07 +0000 (08:20 -0800)]
Merge pull request #369 from goldshtn/alloc-hist

argdist.py: Trace a function and its parameters into a histogram or frequency count

8 years agoUpdated man and examples with new probe syntax and command-line switches
Sasha Goldshtein [Fri, 12 Feb 2016 14:52:19 +0000 (06:52 -0800)]
Updated man and examples with new probe syntax and command-line switches

8 years agoMerge pull request #2 from iovisor/master
Allan McAleavy [Fri, 12 Feb 2016 12:45:58 +0000 (12:45 +0000)]
Merge pull request #2 from iovisor/master

update local repo

8 years agoAdded optional label, fixed inline examples
Sasha Goldshtein [Fri, 12 Feb 2016 11:04:53 +0000 (03:04 -0800)]
Added optional label, fixed inline examples

8 years agoext4dist
Brendan Gregg [Fri, 12 Feb 2016 10:29:08 +0000 (02:29 -0800)]
ext4dist