platform/upstream/bcc.git
8 years agodifferent man formats
Brendan Gregg [Fri, 5 Feb 2016 22:40:34 +0000 (14:40 -0800)]
different man formats

8 years agocontributing scripts guide
Brendan Gregg [Fri, 5 Feb 2016 21:36:06 +0000 (13:36 -0800)]
contributing scripts guide

8 years agoMerge pull request #335 from iovisor/p4-fixes
4ast [Thu, 4 Feb 2016 17:13:06 +0000 (09:13 -0800)]
Merge pull request #335 from iovisor/p4-fixes

Reorder P4 struct key initializers and blocks

8 years agoReorder P4 struct key initializers and blocks
Brenden Blanco [Wed, 3 Feb 2016 00:07:56 +0000 (16:07 -0800)]
Reorder P4 struct key initializers and blocks

The basic_routing.p4 program was failing verification due to missed map
key initializers in some paths. Put the goto label at the head of the
block and add a " = {}" for each key declaration inside the block.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #334 from iovisor/ast_dev
Brenden Blanco [Thu, 4 Feb 2016 06:07:52 +0000 (22:07 -0800)]
Merge pull request #334 from iovisor/ast_dev

use __builtin_memcpy() instead of unrolled loop

8 years agouse __builtin_memcpy() instead of unrolled loop
Alexei Starovoitov [Thu, 4 Feb 2016 05:25:43 +0000 (21:25 -0800)]
use __builtin_memcpy() instead of unrolled loop

also remove tab and unused import

Signed-off-by: Alexei Starovoitov <ast@fb.com>
8 years agoMerge pull request #332 from mcaleavya/master
4ast [Sun, 31 Jan 2016 18:38:14 +0000 (10:38 -0800)]
Merge pull request #332 from mcaleavya/master

Added cachestat tool

8 years agoupdate with cachestat , squashed commit
unixtest [Sun, 31 Jan 2016 10:47:03 +0000 (10:47 +0000)]
update with cachestat , squashed commit

Added .txt to exmaple file to allow link to work

duplicate file

duplicate of .txt version

  Author:    allan mcaleavy <allan.mcaleavy@gmail.com>

8 years agoMerge pull request #331 from brendangregg/master
4ast [Sat, 30 Jan 2016 19:15:48 +0000 (11:15 -0800)]
Merge pull request #331 from brendangregg/master

offwaketime

8 years agofix synopsis options in docs
Brendan Gregg [Sat, 30 Jan 2016 19:05:40 +0000 (11:05 -0800)]
fix synopsis options in docs

8 years agooffwaketime
Brendan Gregg [Sat, 30 Jan 2016 19:02:29 +0000 (11:02 -0800)]
offwaketime

8 years agoMerge pull request #329 from iovisor/dump_func
4ast [Fri, 29 Jan 2016 20:06:48 +0000 (12:06 -0800)]
Merge pull request #329 from iovisor/dump_func

Update test_dump_func to be python3 compatible

8 years agoUpdate test_dump_func to be python3 compatible
Brenden Blanco [Fri, 29 Jan 2016 19:58:54 +0000 (11:58 -0800)]
Update test_dump_func to be python3 compatible

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #326 from brendangregg/master
Brenden Blanco [Fri, 29 Jan 2016 07:18:26 +0000 (23:18 -0800)]
Merge pull request #326 from brendangregg/master

gethostlatency

8 years agoMerge remote-tracking branch 'upstream/master'
Brendan Gregg [Fri, 29 Jan 2016 07:00:44 +0000 (23:00 -0800)]
Merge remote-tracking branch 'upstream/master'

8 years agogethostlatency
Brendan Gregg [Fri, 29 Jan 2016 07:00:00 +0000 (23:00 -0800)]
gethostlatency

8 years agoMerge pull request #325 from brendangregg/master
Brenden Blanco [Fri, 29 Jan 2016 06:48:38 +0000 (22:48 -0800)]
Merge pull request #325 from brendangregg/master

bashreadline

8 years agobashreadline
Brendan Gregg [Fri, 29 Jan 2016 06:43:37 +0000 (22:43 -0800)]
bashreadline

8 years agoMerge pull request #324 from brendangregg/master
Brenden Blanco [Fri, 29 Jan 2016 06:42:39 +0000 (22:42 -0800)]
Merge pull request #324 from brendangregg/master

more strlen examples

8 years agomore strlen examples
Brendan Gregg [Fri, 29 Jan 2016 06:39:23 +0000 (22:39 -0800)]
more strlen examples

8 years agoMerge pull request #323 from iovisor/strlen
4ast [Fri, 29 Jan 2016 06:24:39 +0000 (22:24 -0800)]
Merge pull request #323 from iovisor/strlen

Add uprobe strlen histogram example

8 years agoAdd uprobe strlen histogram example
Brenden Blanco [Fri, 29 Jan 2016 06:15:25 +0000 (22:15 -0800)]
Add uprobe strlen histogram example

This example traces all calls to libc's strlen(). The program is attached as a
retprobe, therefore giving access to the resulting string length. The value is
kept in a log2 histogram that is printed to console once per second.

Example:
```
$ sudo ./strlen_hist.py
22:12:51
     strlen return:      : count     distribution
         0 -> 1          : 2041     |****************                        |
         2 -> 3          : 1120     |********                                |
         4 -> 7          : 3300     |**************************              |
         8 -> 15         : 4995     |****************************************|
        16 -> 31         : 2130     |*****************                       |
        32 -> 63         : 562      |****                                    |
^C
```

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #322 from iovisor/uprobes
4ast [Fri, 29 Jan 2016 05:12:02 +0000 (21:12 -0800)]
Merge pull request #322 from iovisor/uprobes

Uprobe support

8 years agoFixup objdump calling syntax and add docstrings
Brenden Blanco [Fri, 29 Jan 2016 05:07:28 +0000 (21:07 -0800)]
Fixup objdump calling syntax and add docstrings

Use the full path invocation of objdump in both places.

Add a docstring for the variants of attach_retprobe.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoFixes for address calculation
Brenden Blanco [Thu, 28 Jan 2016 22:18:46 +0000 (14:18 -0800)]
Fixes for address calculation

The calculation of function address in non-shared libraries was
incorrect. Fix it.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoAdd python support for attaching bpf programs to uprobes
Brenden Blanco [Thu, 28 Jan 2016 18:26:06 +0000 (10:26 -0800)]
Add python support for attaching bpf programs to uprobes

This adds a similar set of functions to kprobes for userspace probes.
The calling convention is different, however, since the user must
provide a library/binary name and function symbol or address. Add two
simple test cases for both.

I don't see an easy way in this api to add auto-loading support, as in
kprobe functions that start with "kprobe__". Such niceties can come
later.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoAdd libbpf.c support for uprobes
Brenden Blanco [Thu, 28 Jan 2016 18:24:56 +0000 (10:24 -0800)]
Add libbpf.c support for uprobes

The base calling convention for uprobes is the same as kprobes, but just
the path in debug/tracing/ is slightly different. Add a new API for this
and slightly refactor the code.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #321 from brendangregg/master
4ast [Thu, 28 Jan 2016 17:32:13 +0000 (09:32 -0800)]
Merge pull request #321 from brendangregg/master

wakeuptime

8 years agowakeuptime
Brendan Gregg [Thu, 28 Jan 2016 07:17:40 +0000 (23:17 -0800)]
wakeuptime

8 years agowordwrap fix, and terminology adjustment
Brendan Gregg [Thu, 28 Jan 2016 07:11:12 +0000 (23:11 -0800)]
wordwrap fix, and terminology adjustment

8 years agoMerge pull request #320 from iovisor/offcputime_fix
Brenden Blanco [Wed, 27 Jan 2016 16:15:24 +0000 (08:15 -0800)]
Merge pull request #320 from iovisor/offcputime_fix

Add decode() to ascii string in offcputime.py

8 years agoAdd decode() to ascii string in offcputime.py
Brenden Blanco [Wed, 27 Jan 2016 07:12:59 +0000 (23:12 -0800)]
Add decode() to ascii string in offcputime.py

Fixes: #318
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #319 from iovisor/cmake_fixes
4ast [Wed, 27 Jan 2016 06:10:25 +0000 (22:10 -0800)]
Merge pull request #319 from iovisor/cmake_fixes

Updates to use cmake GLOB and libbcc.so.0 in python init

8 years agoUpdates to use cmake GLOB and libbcc.so.0 in python init
Brenden Blanco [Tue, 26 Jan 2016 20:04:06 +0000 (12:04 -0800)]
Updates to use cmake GLOB and libbcc.so.0 in python init

In order not to miss some files in the tools and examples source
directories, use cmake file(GLOB) to collect relevant files. To ease the
implementation, move all tools to be .py suffixed in the source, but
sans-suffix in the installation (same as before)

In addition, to prevent future API breakage confusion (though of course
that may still happen), use CDLL("libbcc.so.0") in the bcc __init__.py.

Fixes: #317
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #316 from brendangregg/master
Brenden Blanco [Wed, 20 Jan 2016 01:39:27 +0000 (17:39 -0800)]
Merge pull request #316 from brendangregg/master

offcputime improvements

8 years agodocs for offcputime -u
Brendan Gregg [Wed, 20 Jan 2016 01:15:02 +0000 (17:15 -0800)]
docs for offcputime -u

8 years agoadd -u, and change from 2 to 1 traced funcitons
Brendan Gregg [Wed, 20 Jan 2016 01:12:52 +0000 (17:12 -0800)]
add -u, and change from 2 to 1 traced funcitons

8 years agooptimize code, remove unnecessary filter check
Brendan Gregg [Tue, 19 Jan 2016 22:40:41 +0000 (14:40 -0800)]
optimize code, remove unnecessary filter check

8 years agoMerge pull request #315 from brendangregg/master
Brenden Blanco [Tue, 19 Jan 2016 15:12:21 +0000 (07:12 -0800)]
Merge pull request #315 from brendangregg/master

stack walker typo and improvement

8 years agoMerge branch 'master' into master
Brendan Gregg [Tue, 19 Jan 2016 09:07:20 +0000 (01:07 -0800)]
Merge branch 'master' into master

8 years agostack walker typo and improvement
Brendan Gregg [Tue, 19 Jan 2016 08:55:12 +0000 (00:55 -0800)]
stack walker typo and improvement

8 years agoMerge pull request #314 from iovisor/map_unshare
4ast [Mon, 18 Jan 2016 22:32:58 +0000 (14:32 -0800)]
Merge pull request #314 from iovisor/map_unshare

Close fd and unshare when public map is destructed

8 years agoClose fd and unshare when public map is destructed
Brenden Blanco [Mon, 18 Jan 2016 21:56:49 +0000 (13:56 -0800)]
Close fd and unshare when public map is destructed

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #313 from brendangregg/master
4ast [Sat, 16 Jan 2016 01:47:37 +0000 (17:47 -0800)]
Merge pull request #313 from brendangregg/master

stack walking scripts

8 years agostack walking scripts
Brendan Gregg [Sat, 16 Jan 2016 01:26:30 +0000 (17:26 -0800)]
stack walking scripts

8 years agoMerge pull request #312 from iovisor/ast_dev
Brenden Blanco [Thu, 14 Jan 2016 19:33:22 +0000 (11:33 -0800)]
Merge pull request #312 from iovisor/ast_dev

fix pep8 lint errors in the rest of the tools

8 years agofix pep8 lint errors in the rest of the tools
Alexei Starovoitov [Thu, 14 Jan 2016 18:09:20 +0000 (10:09 -0800)]
fix pep8 lint errors in the rest of the tools

no functional changes

Signed-off-by: Alexei Starovoitov <ast@fb.com>
8 years agoMerge pull request #310 from iovisor/ast_dev
Brenden Blanco [Sun, 10 Jan 2016 16:26:49 +0000 (08:26 -0800)]
Merge pull request #310 from iovisor/ast_dev

fix pep8 lint errors in biolatency and biosnoop

8 years agofix pep8 lint errors in biolatency and biosnoop
Alexei Starovoitov [Sat, 9 Jan 2016 20:06:40 +0000 (12:06 -0800)]
fix pep8 lint errors in biolatency and biosnoop

Signed-off-by: Alexei Starovoitov <ast@fb.com>
8 years agoMerge pull request #309 from iovisor/sharedmaps
4ast [Fri, 8 Jan 2016 19:28:27 +0000 (11:28 -0800)]
Merge pull request #309 from iovisor/sharedmaps

Add ability to export maps, enables cross-program sharing

8 years agoRename BPF_EXPORT to BPF_TABLE_PUBLIC
Brenden Blanco [Fri, 8 Jan 2016 16:30:13 +0000 (08:30 -0800)]
Rename BPF_EXPORT to BPF_TABLE_PUBLIC

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoAdd ability to export maps, enables cross-program sharing
Brenden Blanco [Wed, 16 Dec 2015 00:39:35 +0000 (16:39 -0800)]
Add ability to export maps, enables cross-program sharing

Allow a program to export a map for other programs to use. This enables
cross-program map sharing.

parent program syntax:
BPF_TABLE("array", int, int, shared, 10);
BPF_TABLE_EXPORT(shared);

child program syntax:
BPF_TABLE("extern", int, int, shared, 10);

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #308 from iovisor/cflags
4ast [Wed, 6 Jan 2016 21:58:26 +0000 (13:58 -0800)]
Merge pull request #308 from iovisor/cflags

Add ability to set custom cflags when loading programs

8 years agoAdd ability to set custom cflags when loading programs
Brenden Blanco [Wed, 6 Jan 2016 16:45:42 +0000 (08:45 -0800)]
Add ability to set custom cflags when loading programs

Example:
b = bcc.BPF("myprog.c", cflags=["-DMYCUSTOMFLAG1", ...])

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #307 from iovisor/kbuild_fix
4ast [Mon, 4 Jan 2016 19:47:08 +0000 (11:47 -0800)]
Merge pull request #307 from iovisor/kbuild_fix

Remove runtime dependency on gcc stdarg headers and make

8 years agoRemove runtime dependency on gcc stdarg headers and make
Brenden Blanco [Mon, 4 Jan 2016 17:54:00 +0000 (09:54 -0800)]
Remove runtime dependency on gcc stdarg headers and make

Remove the runtime dependency on gcc's stdarg.h. Do this by packaging
the (non-GPL) version shipped with clang. This allows the bulk of
kbuild_helper to be removed, at the expense of hardcoding the kernel
include paths. If in the future the kernel make system changes again to
require different -I paths, we'll have to think this through again.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #306 from troyengel/te_dev
Brenden Blanco [Fri, 1 Jan 2016 20:13:11 +0000 (12:13 -0800)]
Merge pull request #306 from troyengel/te_dev

add new Arch packages, new TOC and spiffy up the formatting

8 years agoadd new Arch packages, new TOC and spiffy up the formatting
troyengel [Fri, 1 Jan 2016 19:51:29 +0000 (13:51 -0600)]
add new Arch packages, new TOC and spiffy up the formatting

8 years agoMerge pull request #305 from iovisor/bblanco_dev
Brenden Blanco [Thu, 10 Dec 2015 17:57:27 +0000 (09:57 -0800)]
Merge pull request #305 from iovisor/bblanco_dev

Drop broken p4/docs symlink and create README.md+URL

8 years agoDrop broken p4/docs symlink and create README.md+URL
Brenden Blanco [Thu, 10 Dec 2015 16:00:02 +0000 (08:00 -0800)]
Drop broken p4/docs symlink and create README.md+URL

There was a symlink to a local file, which would instead work better as
a URL to the bpf-docs repository.

Fixes: #304
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #303 from iovisor/bblanco_dev
4ast [Mon, 7 Dec 2015 04:05:53 +0000 (20:05 -0800)]
Merge pull request #303 from iovisor/bblanco_dev

Improve json type support for misc struct/union types

8 years agoImprove json type support for misc struct/union types
Brenden Blanco [Mon, 7 Dec 2015 03:58:38 +0000 (19:58 -0800)]
Improve json type support for misc struct/union types

The ability of the clang rewriter to extract the type information for
some types of structs, unions, and pointers to the aforementioned was
somewhat buggy. This became exposed in a test_clang case after a user
upgraded to a newer kernel, wherein the struct definition changed. The
functionality in question is only used to pass json-ified representation
of the struct to python in order to program the Key/Leaf metaclass.

Improve support for this and other types, including unions.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #302 from iovisor/ast_dev
Brenden Blanco [Thu, 3 Dec 2015 22:11:00 +0000 (14:11 -0800)]
Merge pull request #302 from iovisor/ast_dev

make sure LDFLAGS are propagated as well

8 years agomake sure LDFLAGS are propagated as well
Alexei Starovoitov [Thu, 3 Dec 2015 22:04:16 +0000 (14:04 -0800)]
make sure LDFLAGS are propagated as well

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
8 years agoMerge pull request #301 from iovisor/bblanco_dev
4ast [Thu, 3 Dec 2015 21:00:06 +0000 (13:00 -0800)]
Merge pull request #301 from iovisor/bblanco_dev

Fix breakage from LLVM 3.8 API change

8 years agoFix breakage from LLVM 3.8 API change
Brenden Blanco [Thu, 3 Dec 2015 20:43:52 +0000 (12:43 -0800)]
Fix breakage from LLVM 3.8 API change

There is some difference in how to take a pointer from an iterator. This
code should work for both 3.7 and 3.8 APIs.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #299 from iovisor/bblanco_dev
Brenden Blanco [Tue, 1 Dec 2015 07:08:20 +0000 (23:08 -0800)]
Merge pull request #299 from iovisor/bblanco_dev

p4: fixed bugs in control-flow generation

8 years agoMerge pull request #300 from lcp/build_and_test
Brenden Blanco [Tue, 1 Dec 2015 07:06:49 +0000 (23:06 -0800)]
Merge pull request #300 from lcp/build_and_test

Honor the external C/CXX FLAGS

8 years agoHonor the external C/CXX FLAGS
Gary Lin [Tue, 17 Nov 2015 02:48:39 +0000 (10:48 +0800)]
Honor the external C/CXX FLAGS

Signed-off-by: Gary Lin <glin@suse.com>
8 years agofixed bugs in control-flow generation
Mihai Budiu [Tue, 1 Dec 2015 00:25:00 +0000 (16:25 -0800)]
fixed bugs in control-flow generation

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #298 from iovisor/bblanco_dev
Brenden Blanco [Mon, 30 Nov 2015 19:21:50 +0000 (11:21 -0800)]
Merge pull request #298 from iovisor/bblanco_dev

Automatically bump memlock ulimit

8 years agoAutomatically bump memlock ulimit
Brenden Blanco [Mon, 30 Nov 2015 18:54:47 +0000 (10:54 -0800)]
Automatically bump memlock ulimit

Instead of requiring the user to bump the ulimit in their shell before
starting a bcc script, try to setrlimit automatically when a failure
occurs. Since there is no getrusage for memlock limit, unfortunately we
have to brute force setting the limit. For now, just try bpf() once and
then try to set unlimited ulimit, then try bpf() again.

Fixes: #281
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #297 from iovisor/bblanco_dev
Brenden Blanco [Mon, 30 Nov 2015 07:24:15 +0000 (23:24 -0800)]
Merge pull request #297 from iovisor/bblanco_dev

Fixup dependencies of bcc-tools package

8 years agoFixup dependencies of bcc-tools package
Brenden Blanco [Mon, 30 Nov 2015 01:51:01 +0000 (17:51 -0800)]
Fixup dependencies of bcc-tools package

This should depend on python-bcc, which itself depends on libbcc.

Fixes: #291
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #296 from iovisor/bblanco_dev
Brenden Blanco [Mon, 30 Nov 2015 01:41:36 +0000 (17:41 -0800)]
Merge pull request #296 from iovisor/bblanco_dev

Add bcc-tools package

8 years agoAdd rpm and deb packaging for bcc-tools
Brenden Blanco [Mon, 30 Nov 2015 01:07:52 +0000 (17:07 -0800)]
Add rpm and deb packaging for bcc-tools

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoPackage tools into share/bcc/tools
Brenden Blanco [Thu, 26 Nov 2015 02:22:42 +0000 (18:22 -0800)]
Package tools into share/bcc/tools

Ticket: #291
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #294 from iovisor/bblanco_dev
Brenden Blanco [Wed, 18 Nov 2015 07:56:42 +0000 (23:56 -0800)]
Merge pull request #294 from iovisor/bblanco_dev

Fixup broken symlink tests/cc/simulation.py

8 years agoFixup broken symlink tests/cc/simulation.py
Brenden Blanco [Wed, 18 Nov 2015 07:47:25 +0000 (23:47 -0800)]
Fixup broken symlink tests/cc/simulation.py

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #293 from iovisor/bblanco_dev
Brenden Blanco [Tue, 17 Nov 2015 23:22:55 +0000 (15:22 -0800)]
Merge pull request #293 from iovisor/bblanco_dev

added P4 deparser synthesis

8 years agoadded P4 deparser synthesis
Brenden Blanco [Tue, 17 Nov 2015 19:07:46 +0000 (11:07 -0800)]
added P4 deparser synthesis

8 years agoMerge pull request #292 from iovisor/bblanco_dev
Brenden Blanco [Mon, 16 Nov 2015 08:39:56 +0000 (00:39 -0800)]
Merge pull request #292 from iovisor/bblanco_dev

Updates to INSTALL.md for readability and ease of use

8 years agoMove INSTALL.md to use more block code
Brenden Blanco [Mon, 16 Nov 2015 08:30:17 +0000 (00:30 -0800)]
Move INSTALL.md to use more block code

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoUpdate INSTALL.md instructions for Ubuntu
Brenden Blanco [Mon, 16 Nov 2015 08:22:10 +0000 (00:22 -0800)]
Update INSTALL.md instructions for Ubuntu

A stable 4.3 kernel is available, suggest users use that version
instead.

Move LLVM build instructions to the end, prefer that they pull llvm
binaries instead.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #290 from iovisor/bblanco_dev
Brenden Blanco [Fri, 13 Nov 2015 03:15:55 +0000 (19:15 -0800)]
Merge pull request #290 from iovisor/bblanco_dev

Fix unary operator handling of probe reads with parens

8 years agoFix unary operator handling of probe reads with parens
Brenden Blanco [Thu, 12 Nov 2015 18:17:53 +0000 (10:17 -0800)]
Fix unary operator handling of probe reads with parens

Testing for bpf_probe_read should not include parenethes when walking
the tree, since the inner operation will have already been rewritten.

Fixes: #289
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #288 from SomaLDEN/drzix
Brenden Blanco [Thu, 12 Nov 2015 01:12:55 +0000 (17:12 -0800)]
Merge pull request #288 from SomaLDEN/drzix

Edit README, link path of some example files

8 years agoEdit README, link path of some example files
Dr.Z [Wed, 11 Nov 2015 19:45:21 +0000 (04:45 +0900)]
Edit README, link path of some example files

As some example files were reorganized into subdirecotries, some
pathes in README bring connection on 404. So it have to be new pathes.

8 years agoMerge pull request #286 from troyengel/master
Brenden Blanco [Tue, 10 Nov 2015 06:23:54 +0000 (22:23 -0800)]
Merge pull request #286 from troyengel/master

Fixes #285 - build process assumes git use

8 years agoFixes #287 - build process assumes python cmd
troyengel [Tue, 10 Nov 2015 02:00:22 +0000 (20:00 -0600)]
Fixes #287 - build process assumes python cmd

8 years agoFixes #285 - build process assumes git use
troyengel [Tue, 10 Nov 2015 01:51:32 +0000 (19:51 -0600)]
Fixes #285 - build process assumes git use

8 years agoMerge pull request #284 from iovisor/bblanco_dev
Brenden Blanco [Mon, 9 Nov 2015 05:23:33 +0000 (21:23 -0800)]
Merge pull request #284 from iovisor/bblanco_dev

Add bpf() syscall feature check and readme update

8 years agoAdd bpf() syscall feature check and readme update
Brenden Blanco [Mon, 9 Nov 2015 05:18:51 +0000 (21:18 -0800)]
Add bpf() syscall feature check and readme update

Fixes: #283
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoMerge pull request #282 from iovisor/bblanco_dev
yonghong-song [Fri, 6 Nov 2015 23:22:40 +0000 (15:22 -0800)]
Merge pull request #282 from iovisor/bblanco_dev

Add perf_output support for high rate events

8 years agoUpdate trace perf output with struct deserialize example
Brenden Blanco [Fri, 6 Nov 2015 21:55:53 +0000 (13:55 -0800)]
Update trace perf output with struct deserialize example

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoDisable custom perf output support in older kernels
Brenden Blanco [Fri, 6 Nov 2015 21:12:11 +0000 (13:12 -0800)]
Disable custom perf output support in older kernels

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoLet perf_output be always per-cpu
Brenden Blanco [Fri, 6 Nov 2015 21:03:05 +0000 (13:03 -0800)]
Let perf_output be always per-cpu

Incoporating feedback from bgregg:
Make per-cpu nature of output buffer be hidden and implicit. As such,
incoporate some rewriting into the definition of the PERF_OUTPUT.
Create two different macros to distinguish the perf_array (hardware
counters) from the perf_output (ring buffer) use cases.

Also, rename perf_output to perf_submit.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoAdd per-cpu parameters to buffered perf output
Brenden Blanco [Fri, 6 Nov 2015 18:43:05 +0000 (10:43 -0800)]
Add per-cpu parameters to buffered perf output

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoAdd perf_output support for high rate events
Brenden Blanco [Fri, 6 Nov 2015 07:31:22 +0000 (23:31 -0800)]
Add perf_output support for high rate events

This adds support for the bpf_perf_event_output command. This is
intended for per-process events from bpf to userspace at high rate. The
events from the bpf program can be completely customized.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
8 years agoUpdate compat bpf.h with 4.4 features
Brenden Blanco [Thu, 5 Nov 2015 22:04:56 +0000 (14:04 -0800)]
Update compat bpf.h with 4.4 features

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>