iovisor / iovisor/bcc

libcc test failing

Open
#2,841 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

Hi
I am running debian buster 10.3

it is related to #1101

but one new error alongside utst error as mentioned in [comment in issue 1101](https://github.com/iovisor/bcc/issues/1101#issuecomment-339228372)

when I was trying
`make test`

test for libbcc failed
as follows
```
3/40 Test #3: test_libbcc ......................***Failed 13.60 sec
```

then I tried execute test_libbcc for verbose output.
it failed with 3 errors one of them is
as follows
```
dev@debian:~/git/bcc/build/tests/cc$ uname -r
4.19.0-8-amd64

dev@debian:~/git/bcc/build/tests/cc$ sudo ./test_libbcc
[sudo] password for dev:
could not open bpf map: cg_storage2, error: Invalid argument

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_libbcc is a Catch v1.4.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
test percpu cgroup storage
-------------------------------------------------------------------------------
/home/dev/git/bcc/tests/cc/test_cg_storage.cc:67
...............................................................................

/home/dev/git/bcc/tests/cc/test_cg_storage.cc:89: FAILED:
REQUIRE( res.code() == 0 )
with expansion:
-1 == 0
```

Probable cause "BPF_PERCPU_CGROUP_STORAGE(cg_storage1, long long);"
```
const std::string BPF_PROGRAM = R"(
BPF_PERCPU_CGROUP_STORAGE(cg_storage1, long long);
)";
#```
`bpf.init(BPF_PROGRAM)` fails with following message.

```
could not open bpf map: cg_storage1, error: Invalid argument
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.