]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Allow attaching to bare tracepoints'
authorAlexei Starovoitov <ast@kernel.org>
Tue, 19 Jan 2021 21:00:50 +0000 (13:00 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Jan 2021 22:14:09 +0000 (14:14 -0800)
commit215b1dc9a8e0be2058ddf7da1f97952a1adc221d
tree55a14edc1e68c6e2109cc0872a52b12094d75abd
parent08b43e5b0b19a3f054562a5dcd9b10eb1c2c1ad6
parent19fc6c894f5731183cdc0ebebe090f44fdad660d
Merge branch 'Allow attaching to bare tracepoints'

Qais Yousef says:

====================

Changes in v3:
* Fix not returning error value correctly in
  trigger_module_test_write() (Yonghong)
* Add Yonghong acked-by to patch 1.

Changes in v2:
* Fix compilation error. (Andrii)
* Make the new test use write() instead of read() (Andrii)

Add some missing glue logic to teach bpf about bare tracepoints - tracepoints
without any trace event associated with them.

Bare tracepoints are declare with DECLARE_TRACE(). Full tracepoints are declare
with TRACE_EVENT().

BPF can attach to these tracepoints as RAW_TRACEPOINT() only as there're no
events in tracefs created with them.
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>