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

create copyright #8

Closed
wants to merge 145 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
21f9751
create copyright
sravyamks May 21, 2020
2637923
NFC: Use a struct for usdt_probe_entry instead of a tuple
danobi May 19, 2020
b42aafc
NFC: Hoist inner probe codegen to helper function
danobi May 19, 2020
5d1606c
NFC: Remove unnecessary variable and const-ify loop variable
danobi May 19, 2020
b8c4eb6
Attach to duplicated USDT markers
danobi May 19, 2020
90bc9f6
Update and add unit tests
danobi May 20, 2020
8bf11d5
Add runtime test
danobi May 19, 2020
e5504f5
Update changelog
danobi May 20, 2020
1637343
docker: build cmake for xenial in parallel
zeil May 22, 2020
82e36a8
Add Tuple to AST
danobi Apr 25, 2020
140b9f0
Add tuple to type system
danobi May 8, 2020
5c53aad
Add aggregate type helper
danobi May 21, 2020
8997514
Add semantic analysis for tuple as map-value and variable-value
danobi May 8, 2020
4c1e649
Add parser and semantic analysis support for tuple indexing
danobi May 9, 2020
2a5ee22
Improve error message for non-tuple field access
danobi May 21, 2020
b37e7d6
Improve map-only value in tuple error message
danobi May 21, 2020
468140e
Implement codegen for tuple
danobi May 9, 2020
6b3c52c
Add runtime tests for core features
danobi May 9, 2020
b7d0cb1
NFC: Refactor map_value_to_str
danobi May 11, 2020
c172da4
Add tuple support to `print()`
danobi May 11, 2020
1da5ef3
Add runtime test for output
danobi May 11, 2020
456712f
Add docs
danobi May 9, 2020
0c6b2be
Update changelog
danobi May 11, 2020
3867573
tests: Fix embedded build tests
danobi May 26, 2020
364354d
types: add `_` to indicate private member
fbs May 20, 2020
cd9e9bf
Reimplement `Type::array`
fbs May 21, 2020
18d747f
Fix KBUILD_MODNAME
mmisono May 27, 2020
9d61934
Fix heap-buffer-overflow of JsonOutput::tuple_to_str
mmisono May 27, 2020
02cad8b
Refactor list.cpp
mmisono May 19, 2020
6edfc26
Support enum in BTF::c_def()
mmisono May 19, 2020
7048fff
Support listing struct/union/enum definitions using BTF
mmisono May 19, 2020
f54f36c
Update changelog
mmisono May 19, 2020
c938117
List only usdt and uprobe when a pid is given
mmisono May 24, 2020
bb6a7f7
Remove RLIMIT_AS limit
danobi May 29, 2020
48979d4
Update changelog
danobi May 29, 2020
2f88730
Fix typo
danobi Jun 1, 2020
aa729e6
fix error message
fbs May 31, 2020
0fc46d5
Fix printing Type::array
danobi Jun 1, 2020
3e08a1d
Add libbpf build info into --info
danobi Jun 2, 2020
7f19a09
Always include CC_USING_FENTRY (#9)
pcd1193182 Jun 4, 2020
5f2e4e3
Add template param
danobi Jun 5, 2020
85b9bf5
Fix calling ntop on tracepoint args
danobi Jun 1, 2020
8cbd4d9
Update changelog
danobi Jun 1, 2020
e0eaa54
CI: Fix IRC notification on build failure
danobi Jun 5, 2020
911ed78
CI: Don't use TLS for irc notifications
danobi Jun 5, 2020
3155952
NFC: Move usdt helper routines out of utils
danobi May 28, 2020
1d9b4ee
NFC: Add comment for why USDTHelper is static
danobi May 28, 2020
b090f93
NFC: Remove unused method and privatize internal methods
danobi May 28, 2020
083895f
usdt: Fix caching logic
danobi May 28, 2020
ed07edd
usdt: Return optional in find()
danobi May 28, 2020
ebc2a8a
Add runtime test
danobi May 28, 2020
ac515db
Update changelog
danobi May 28, 2020
f91f4ba
Improve missing usdt error message
danobi Jun 1, 2020
f24a0d1
Syscall generator, for issue#1334 (#1376)
suyuee Jun 11, 2020
b97325d
syncsnoop: trace sync_file_range2 when needed
jeromemarchand Jun 11, 2020
9caf00b
man: fix quotes in bpftrace manual
jeromemarchand Feb 28, 2020
adb05a3
Silence curl
mmisono Jun 13, 2020
19f1b49
Add time units for `interval` probe (#1377)
suyuee Jun 15, 2020
e40bcec
usdt: Decrement usdt semaphore value during probe detach
danobi Jun 5, 2020
cb3a0d0
usdt: Use new usdt_addsem_probe* helpers
danobi Jun 5, 2020
5f9058e
Remove call to deprecated bpf_detach_kfunc helper
willfindlay Jun 21, 2020
dac0759
Return 0 in detach_kfunc
willfindlay Jun 21, 2020
5290f41
Only emit hist & lhist functions when they're used
fbs Jun 20, 2020
562067b
Fix all tests
fbs Jun 20, 2020
f3077b8
Remove registers that are not in struct pt_regs (x86-64)
mmisono Jun 13, 2020
b1c5018
Add clang build in CI
mmisono Jun 25, 2020
d41692b
Display LLVM version when running CMake
mmisono Jun 24, 2020
8cce6bf
Support non-map print() (#1381)
danobi Jun 29, 2020
c71c84a
Fix call_print_non_map test
danobi Jun 29, 2020
b79dc61
bpftrace: Fix cpid for Big endian
sumanthkorikkar Jun 21, 2020
3431339
bpftrace: Fix buf builtin for Big endian
sumanthkorikkar Jun 21, 2020
1280bbc
bpftrace: Fix ntop builtin for BE
sumanthkorikkar Jun 22, 2020
7f82c8d
bpftrace: Fix unop deref for Big endian
sumanthkorikkar Jun 22, 2020
08e52f9
bpftrace: Fix FieldAccess deref for Big endian
sumanthkorikkar Jun 22, 2020
d208b71
bpftrace: Fix Arrayaccess in Big endian
sumanthkorikkar Jun 22, 2020
d9418b3
bpftrace: Fix tests intptrcast for s390x
sumanthkorikkar Jun 23, 2020
94f4aa8
Enable ternary operators to evaluate builtin calls
suyuee Jul 2, 2020
6794c9b
Allow uprobe placement on arbitrary addresses when --unsafe is used.
mzr Jun 18, 2020
4204215
Use llvm-as to validate generated IR
fbs Jul 2, 2020
8e250c0
NFC: Use higher level find_wildcard_matches API
danobi Jul 8, 2020
d6b30a9
NFC: Hide lower level `find_wildcard_matches` helper
danobi Jul 8, 2020
9ecdf82
Ignore trailing kernel module annotation
danobi Jul 8, 2020
510b3aa
Add tests
danobi Jul 8, 2020
40615f6
Update changelog
danobi Jul 8, 2020
891b0a8
Enable printf, cat, system to have more args
suyuee Jul 8, 2020
3aa563d
Remove redundant codes in print_maps
suyuee Jul 10, 2020
46830a3
0.11 release
fbs Jul 14, 2020
b563c97
Currently `printf` does not allow string format specifiers to be dire…
suyuee Jul 9, 2020
2dd186c
changelog: pr was merged after 0.11 release
fbs Jul 15, 2020
fef4b4a
vagrant: add fedora 32
fbs Jun 22, 2020
7aea83c
Mark btf as depending on libbpf in --info
danobi Jul 16, 2020
9f374bf
Generate vfs_read for some runtime tests
suyuee Jul 15, 2020
d076477
Add semantic analysis support for `strftime()` builtin
suyuee Jun 16, 2020
2669342
Add CodeGen for strftime() builtin
suyuee Jun 19, 2020
737abe7
Add runtime support for strftime()
suyuee Jul 8, 2020
f96cf17
Split compilation process to make inspecting the IR easier
fbs Jun 21, 2020
ae93bb1
tests: do not run optimize pass on codegen tests
fbs Jun 21, 2020
8d83996
codegen: fix argument reordering issue
fbs Jul 16, 2020
5f28f1a
tests: Avoid validating broken codegen output
fbs Jul 17, 2020
b7fbe54
codegen: Add helper for managing expr_deleter_
danobi Jun 15, 2020
4a34d07
codegen: Use new accept() helper
danobi Jun 15, 2020
17541e5
codegen: End CreateAllocaBpf() lifetimes
danobi Jun 15, 2020
e33ef05
codegen: Update all callsites to use safer accept()
danobi Jun 16, 2020
4932465
Update codegen samples
danobi Jul 19, 2020
622ea0f
Add feature specific runtime testcase support
mmisono Jul 16, 2020
50dbd18
Rename FieldAnalyser::builtin_args_ to FieldAnalyser::has_builtin_args_
olsajiri May 20, 2020
ba05558
Add error display support to FieldAnalyser class
olsajiri Jun 1, 2020
15fb4c1
Add kfunc argument checks for multiple attach points
olsajiri May 19, 2020
5439d7c
Add test for multiple kfunc attachpoints
olsajiri May 19, 2020
5a801d2
Factor BTF::get_kfuncs from BTF::display_funcs
olsajiri May 19, 2020
db71026
Add wildcard support for kfunc probe types
olsajiri Jun 1, 2020
e9d8685
codegen: add option to emit elf file
fbs Jul 19, 2020
c736335
testing: add script to compare BPF between versions
fbs Jul 19, 2020
5555d5b
Enable top&div args for printing avg() maps
suyuee Jul 10, 2020
837b6b9
codegen: remove unused files
fbs Jul 18, 2020
3fc5970
codegen: avoid accidental checking of LLVM bytecode
fbs Jul 18, 2020
84d81b1
codegen: cast buf len to correct size before store
fbs Jul 19, 2020
569e45f
codegen: resize probe_read size arg
fbs Jul 18, 2020
2339a71
codegen: ensure equal types for store in print()
fbs Jul 19, 2020
5333695
codegen: boolean is 1 bit
fbs Jul 19, 2020
8286878
Add a semantic warning for printing stats maps with top/div args
suyuee Jul 22, 2020
98a5e99
changelog: Add fixed section
danobi Jul 24, 2020
7eabf26
Add discourse shield to README
danobi Jul 21, 2020
0e4129a
Add link to discourse in issue creation page
danobi Jul 24, 2020
442cd64
Normalize capitalization
danobi Jul 24, 2020
280688c
Remove period
danobi Jul 24, 2020
0b1c22c
Ensure symbols are exported for bpftrace executable
vincentbernat Jul 24, 2020
e3a2362
Fix FieldAnalyzer::error
mmisono Jul 23, 2020
41ad2e8
Fix: print() no output when used on hist() maps with large top args
suyuee Jul 23, 2020
afc80bc
btf: tracepoint: Prefer BTF data if available
danobi Jul 25, 2020
9b0dcce
Fix PR #1416: unsigned int overflow bug and unstable tests
suyuee Jul 23, 2020
d56909e
Revert "Ensure symbols are exported for bpftrace executable"
danobi Jul 28, 2020
83a9619
ci: Run embedded build on PRs
danobi Jul 28, 2020
c9d24c6
Add logging infra to bpftrace
suyuee Jul 17, 2020
468bcf3
Add tests for the logging framework
suyuee Jul 20, 2020
47aa1ea
Change semantic anylyser to use new log infra
suyuee Jul 27, 2020
4bf92f5
Logging: replace direct callsites of logging APIs in class BPFtrace
suyuee Jul 27, 2020
0885b81
Logging: replace callsites of logging APIs in class FieldAnalyser
suyuee Jul 27, 2020
9273666
Logging: move logging out of bpftrace
suyuee Jul 27, 2020
2d93cf6
Add missing TIMEOUT
mmisono Jul 30, 2020
af085fd
Stop runtime tests if the parser error occurs
mmisono Jul 30, 2020
659a2a5
Filter out non-traceable kfunc symbols
viktormalik Jul 20, 2020
b4acbb3
Filter out kfunc symbols having too many params
viktormalik Jul 20, 2020
7f6d596
Improve error messages for kfunc
viktormalik Jul 30, 2020
beaa7cd
Fix array indexing regression
danobi Aug 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Community Support
url: https://bpftrace.discourse.group/
about: Please ask and answer questions here
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ jobs:
RUN_ALL_TESTS: 1
RUNTIME_TEST_DISABLE: builtin.cgroup,probe.kprobe_offset_fail_size
BASE: bionic
- NAME: LLVM 10 Clang Debug
TYPE: Debug
LLVM_VERSION: 10
CC: clang-10
CXX: clang++-10
RUN_ALL_TESTS: 1
RUNTIME_TEST_DISABLE: builtin.cgroup,probe.kprobe_offset_fail_size
BASE: bionic
steps:
- uses: actions/checkout@v2
- name: Build docker container
Expand All @@ -109,6 +117,8 @@ jobs:
-e RUN_ALL_TESTS=${RUN_ALL_TESTS}
-e CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}"
-e RUNTIME_TEST_DISABLE="${RUNTIME_TEST_DISABLE}"
-e CC="${CC}"
-e CXX="${CXX}"
bpftrace-builder-$BASE-llvm-$LLVM_VERSION
${PWD}/build-$TYPE-$BASE
$TYPE
Expand All @@ -117,6 +127,8 @@ jobs:
irc:
# Notify IRC of build failures on pushes only if we are running from
# the main repo. We don't want this rule to trigger from forked repos.
needs:
- build_test
if: "failure() && github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'iovisor/bpftrace'"
runs-on: ubuntu-latest
steps:
Expand All @@ -125,6 +137,8 @@ jobs:
with:
nickname: bpftrace-ci-bot
server: irc.oftc.net
port: 6667
tls: false
channel: "#bpftrace"
message: |
master is BROKEN at https://github.com/iovisor/bpftrace/commit/${{github.sha}}
2 changes: 1 addition & 1 deletion .github/workflows/embedded.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Embedded Builds

on: push
on: [push, pull_request]
jobs:
llvm_clang:
runs-on: ubuntu-18.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build/
build-*/
tests/runtime/*.pyc
.vagrant
tests/**/*.bc
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,52 @@ and this project adheres to

## Unreleased

#### Added
- Add wildcard support for kfunc probe types
- [#1410](https://github.com/iovisor/bpftrace/pull/1410)
- Add builtin function: `strftime`
- [#1387](https://github.com/iovisor/bpftrace/pull/1387)
- Fix `printf` not allowing format specifiers to be directly followed by
alphabetic characters
- [#1414](https://github.com/iovisor/bpftrace/pull/1414)
- Fix `top` and `div` arguments of `print()` not working for Type::avg maps
- [#1416](https://github.com/iovisor/bpftrace/pull/1416)

#### Changed
- Warn if using `print` on `stats` maps with top and div arguments
- [#1433](https://github.com/iovisor/bpftrace/pull/1433)
- Prefer BTF data if available to resolve tracepoint arguments
- [#1439](https://github.com/iovisor/bpftrace/pull/1439)
- Improve error messages for kfunc probe types
- [#1451](https://github.com/iovisor/bpftrace/pull/1451)

#### Deprecated

#### Removed
- Disable some kfunc probes whose tracing crashes
- [#1432](https://github.com/iovisor/bpftrace/pull/1432)

#### Fixed
- Fix negative overflow bug and unstable tests in PR #1416
- [#1436](https://github.com/iovisor/bpftrace/pull/1436)
- Fix `print` outputs nothing when used on hist() maps with large top args
- [#1437](https://github.com/iovisor/bpftrace/pull/1437)
- Fix array indexing regression
- [#1457](https://github.com/iovisor/bpftrace/pull/1457)

#### Tools

#### Documentation


## [0.11.0] 2020-07-15

### All Changes

#### Added

- Allow uprobe placement on arbitrary addresses when --unsafe is used
- [#1388](https://github.com/iovisor/bpftrace/pull/1388)
- Support for s390x
- [#1241](https://github.com/iovisor/bpftrace/pull/1241)
- `buf` a new function that makes it possible to safely print arbitrary binary data
Expand All @@ -38,6 +80,21 @@ and this project adheres to
- [#1317](https://github.com/iovisor/bpftrace/pull/1317)
- Introduce `-k` and `-kk` options. Emit a warning when a bpf helper returns an error
- [#1276](https://github.com/iovisor/bpftrace/pull/1276)
- Add tuples to language
- [#1326](https://github.com/iovisor/bpftrace/pull/1326)
- Add support for listing struct/union/enum definitions using BTF
- [#1340](https://github.com/iovisor/bpftrace/pull/1340)
- Add libbpf build into in --info
- [#1367](https://github.com/iovisor/bpftrace/pull/1367)
- Add support for time units `us` and `hz` for probe `interval`
- [#1377](https://github.com/iovisor/bpftrace/pull/1377)
- Add support for non-map print()
- [#1381](https://github.com/iovisor/bpftrace/pull/1381)
- Enable `printf`, `cat` and `system` to have more than 7 arguments
- [#1404](https://github.com/iovisor/bpftrace/pull/1404)
- Enable the `ternary` operator to evaluate builtin calls
- [#1405](https://github.com/iovisor/bpftrace/pull/1405)


#### Changed

Expand All @@ -46,6 +103,10 @@ and this project adheres to
- [#1259](https://github.com/iovisor/bpftrace/pull/1259)
- Allow positional parameters in probe attachpoint definitions
- [#1328](https://github.com/iovisor/bpftrace/pull/1328)
- Only list uprobe and usdt probes when `-p` is given
- [#1340](https://github.com/iovisor/bpftrace/pull/1340)
- Remove address space memory limit
- [#1358](https://github.com/iovisor/bpftrace/pull/1358)

#### Deprecated

Expand All @@ -62,6 +123,22 @@ and this project adheres to
- [#1229](https://github.com/iovisor/bpftrace/pull/1229)
- Fix usdt reads in various architecture
- [#1325](https://github.com/iovisor/bpftrace/pull/1325)
- Attach to duplicated USDT markers
- [#1341](https://github.com/iovisor/bpftrace/pull/1341)
- Fix `KBUILD_MODNAME`
- [#1352](https://github.com/iovisor/bpftrace/pull/1352)
- Fix `ntop()` not accepting tracepoint arguments
- [#1365](https://github.com/iovisor/bpftrace/pull/1365)
- Fix attaching to usdt probes in multiple binaries
- [#1356](https://github.com/iovisor/bpftrace/pull/1356)
- Decrement usdt semaphore count after bpftrace execution
- [#1370](https://github.com/iovisor/bpftrace/pull/1370)
- Reduce high memory consumption when using usdt semaphore
- [#1374](https://github.com/iovisor/bpftrace/pull/1374)
- Remove registers that are not in struct pt_regs (x86-64)
- [#1383](https://github.com/iovisor/bpftrace/issues/1383)
- Ignore trailing kernel module annotation for k[ret]probe's
- [#1413](https://github.com/iovisor/bpftrace/pull/1413)

#### Tools

Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(bpftrace)

# bpftrace version number components.
set(bpftrace_VERSION_MAJOR 0)
set(bpftrace_VERSION_MINOR 10)
set(bpftrace_VERSION_MINOR 11)
set(bpftrace_VERSION_PATCH 0)

include(GNUInstallDirs)
Expand All @@ -17,6 +17,7 @@ set(EMBED_LIBCLANG_ONLY OFF CACHE BOOL "Build only libclang.a, and link to syste
set(LLVM_VERSION "8" CACHE STRING "Embedded LLVM/Clang version to build and link against.")
set(BUILD_ASAN OFF CACHE BOOL "Build bpftrace with -fsanitize=address")
set(ENABLE_MAN ON CACHE BOOL "Build man pages")
set(ENABLE_TEST_VALIDATE_CODEGEN ON CACHE BOOL "Run LLVM IR validation tests")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down Expand Up @@ -114,6 +115,7 @@ check_symbol_exists(bcc_prog_load "${LIBBCC_INCLUDE_DIRS}/bcc/libbpf.h" HAVE_BCC
check_symbol_exists(bcc_create_map "${LIBBCC_INCLUDE_DIRS}/bcc/libbpf.h" HAVE_BCC_CREATE_MAP)
check_symbol_exists(bcc_elf_foreach_sym "${LIBBCC_INCLUDE_DIRS}/bcc/bcc_elf.h" HAVE_BCC_ELF_FOREACH_SYM)
check_symbol_exists(bpf_attach_kfunc "${LIBBCC_INCLUDE_DIRS}/bcc/libbpf.h" HAVE_BCC_KFUNC)
check_symbol_exists(bcc_usdt_addsem_probe "${LIBBCC_INCLUDE_DIRS}/bcc/bcc_usdt.h" HAVE_BCC_USDT_ADDSEM)
set(CMAKE_REQUIRED_LIBRARIES)
set(CMAKE_REQUIRED_LINK_OPTIONS)

Expand Down Expand Up @@ -144,6 +146,7 @@ else()
message(SEND_ERROR "Specify an LLVM major version using LLVM_REQUESTED_VERSION=<major version>")
endif()

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}: ${LLVM_CMAKE_DIR}")
include_directories(SYSTEM ${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
endif()
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Build Status](https://github.com/iovisor/bpftrace/workflows/CI/badge.svg?branch=master)](https://github.com/iovisor/bpftrace/actions?query=workflow%3ACI+branch%3Amaster)
[![IRC #bpftrace](https://img.shields.io/badge/IRC-bpftrace-blue.svg)](http://irc.lc/oftc/bpftrace/web@@@)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/iovisor/bpftrace.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/iovisor/bpftrace/alerts/)
[![Discourse topics](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fbpftrace.discourse.group%2F)](https://bpftrace.discourse.group/)

bpftrace is a high-level tracing language for Linux enhanced Berkeley Packet Filter (eBPF) available in recent Linux kernels (4.x). bpftrace uses LLVM as a backend to compile scripts to BPF-bytecode and makes use of [BCC](https://github.com/iovisor/bcc) for interacting with the Linux BPF system, as well as existing Linux tracing capabilities: kernel dynamic tracing (kprobes), user-level dynamic tracing (uprobes), and tracepoints. The bpftrace language is inspired by awk and C, and predecessor tracers such as DTrace and SystemTap. bpftrace was created by [Alastair Robertson](https://github.com/ajor).

Expand Down Expand Up @@ -97,6 +98,10 @@ For more eBPF observability tools, see [bcc tools](https://github.com/iovisor/bc

See the [Reference Guide](docs/reference_guide.md) for more detail.

## Support

For additional help / discussion, please use our [discourse](https://bpftrace.discourse.group/).

## Contributing

* Have ideas for new bpftrace tools? [CONTRIBUTING-TOOLS.md](CONTRIBUTING-TOOLS.md)
Expand Down
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ EOF

$fedora_deps = <<EOF
dnf builddep -q -y bpftrace
dnf install -q -y git
EOF

$build_bcc = <<EOF
Expand Down Expand Up @@ -47,6 +48,11 @@ Vagrant.configure("2") do |config|
'image' => 'fedora/31-cloud-base',
'scripts' => [ $fedora_deps, ],
'skip_bcc_build' => 1
},
'fedora-32' => {
'image' => 'fedora/32-cloud-base',
'scripts' => [ $fedora_deps, ],
'skip_bcc_build' => 1
}
}
boxes.each do | name, params |
Expand Down
86 changes: 86 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bpftrace
Source: https://github.com/iovisor/bpftrace

Files: *
Copyright: Copyright 2019 Alastair Robertson
License: Apache-2.0

Files: tools/*.bt
Copyright: Copyright 2019 Alastair Robertson
Copyright 2018 Netflix, Inc.
Copyright (c) 2018 Dale Hamel.
License: Apache-2.0

Files: cmake/FindLibElf.cmake
Copyright: Copyright (c) 2008 Bernhard Walle <bernhard.walle@gmx.de>
License: BSD-3-clause

Files: resources/*.h
Copyright: Copyright (c) 2014 Chandler Carruth
Copyright (c) 2009 Chris Lattner
Copyright (c) 2008 Eli Friedman
License: Expat

License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License can be found in
the file `/usr/share/common-licenses/Apache-2.0'.
2 changes: 1 addition & 1 deletion docker/Dockerfile.ubuntu-glibc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN if [ "${BASE}" = "xenial" ]; then \
&& curl -OL https://cmake.org/files/v${version}/cmake-${version}.${build}.tar.gz \
&& tar -xzvf cmake-${CMAKE_VER}.$build.tar.gz \
&& cd cmake-${CMAKE_VER}.$build/ \
&& ./bootstrap \
&& ./bootstrap --parallel=$(nproc) \
&& make -j$(nproc) \
&& make install \
; else \
Expand Down
2 changes: 2 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ EMBED_LIBCLANG_ONLY=${EMBED_LIBCLANG_ONLY:-OFF}
DEPS_ONLY=${DEPS_ONLY:-OFF}
RUN_TESTS=${RUN_TESTS:-1}
CI_TIMEOUT=${CI_TIMEOUT:-0}
CC=${CC:cc}
CXX=${CXX:c++}

# If running on Travis, we may need several builds incrementally building up
# the cache in order to cold-start the build cache within the 50 minute travis
Expand Down
Loading