iovisor / iovisor/bcc

make test throwing error for all usdt tests

Open
#4,631 1 comment 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

2/4 Testing: py_test_usdt
2/4 Test: py_test_usdt
Command: "/home/abhishek/bcc/build/tests/wrapper.sh" "py_test_usdt" "sudo" "/home/abhishek/bcc/tests/python/test_usdt.py"
Directory: /home/abhishek/bcc/tests/python
"py_test_usdt" start time: Jun 09 20:24 IST
Output:
----------------------------------------------------------
:23:17: warning: null character(s) preserved in literal
:28:17: warning: null character(s) preserved in literal
E
======================================================================
ERROR: test_attach1 (__main__.TestUDST.test_attach1)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abhishek/bcc/tests/python/test_usdt.py", line 145, in test_attach1
u.enable_probe(probe="probe_point_1", fn_name="do_trace1")
File "/home/abhishek/bcc/build/src/python/bcc-python3/bcc/usdt.py", line 161, in enable_probe
raise USDTException(
bcc.usdt.USDTException: Failed to enable USDT probe 'probe_point_1':
the specified pid might not contain the given language's runtime,
or the runtime was not built with the required USDT probes. Look
for a configure flag similar to --with-dtrace or --enable-dtrace.
To check which probes are present in the process, use the tplist tool.

----------------------------------------------------------------------
Ran 1 test in 1.438s

FAILED (errors=1)
Failed

Test time = 2.98 sec
----------------------------------------------------------
Test Failed.
"py_test_usdt" end time: Jun 09 20:24 IST
"py_test_usdt" time elapsed: 00:00:02
----------------------------------------------------------

Which runtime needs to be configured with "--with-dtrace or --enable-dtrace". I don't find any bcc compilation step for same.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tests/python/test_usdt.py and the failing enable_probe call in bcc/usdt.py, then reproduce the py_test_usdt command through tests/wrapper.sh. Determine which runtime or build configuration is required for the USDT probes, and consider the work complete when the USDT test suite runs without the reported probe-enablement error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
operating-systems, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.