kernel coding style: checking for NULL is not necessary
kernel coding style: proper comments
kernel coding style: spacing
kernel coding style: braces
Add Travis continous integration support

Since we can't rely on a proper kernel configuration on Travis build
machines (kernel headers, CONFIG_TRACEPOINTS, etc.), building the driver
is currently disabled.

Travis build status will be available at [1].

[1] - https://travis-ci.org/draios/sysdig

Signed-off-by: Christian Babeux <christian.babeux@0x80.ca>
Add Travis CI build status to README

Signed-off-by: Christian Babeux <christian.babeux@0x80.ca>
Fix: get_buf_pointers() declaration should be static on non-windows platform

When compiling sysdig with Clang, one might run into this error:

Linking CXX executable sysdig
../libscap/libscap.a(scap.c.o): In function `scap_readbuf':
/home/travis/build/cbab/sysdig/userspace/libscap/scap.c:488: undefined reference to `get_buf_pointers'
/home/travis/build/cbab/sysdig/userspace/libscap/scap.c:506: undefined reference to `get_buf_pointers'
../libscap/libscap.a(scap.c.o): In function `check_scap_next_wait':
/home/travis/build/cbab/sysdig/userspace/libscap/scap.c:565: undefined reference to `get_buf_pointers'
collect2: ld returned 1 exit status
make[2]: *** [userspace/sysdig/sysdig] Error 1
make[1]: *** [userspace/sysdig/CMakeFiles/sysdig.dir/all] Error 2
make: *** [all] Error 2

This can be explained by the semantic difference of the "inline" keyword
with GCC compilers vs. Clang [1]. The fix is to add the static keyword,
since this function is only used in this compile unit.

[1] - http://clang.llvm.org/compatibility.html#inline

Signed-off-by: Christian Babeux <christian.babeux@0x80.ca>
Merge pull request #105 from cbab/travis-ci

Travis CI support
try to build packages on travis
try to build both, bundled and non-bundled versions on travis
_64BIT_ARGS_SINGLE_REGISTER was always defined, breaking the x86 build
Merge pull request #108 from evgeni/more-tests

packages and non-bundled build tests on travis
update topprocs_cpu.lua to reflect the recent changes in common.lua
support for json in topprocs_cpu.lua
Install kernel headers on Travis CI to build the driver

Signed-off-by: Christian Babeux <christian.babeux@0x80.ca>
Add Debug and Release build support on Travis CI

Signed-off-by: Christian Babeux <christian.babeux@0x80.ca>
Merge pull request #110 from cbab/travis-ci

Travis CI improvements
fileslower tool for investigating latency outliers
Fixed compilation of driver for sh.
Made building of libscap examples optional.