criu/test/zdtm
Shashank Balaji dcce9bd0e2 zdtm: add a test for --allow-uprobes option
Program flow:
- Parse the test's own executable to calculate the file offset of the uprobe
target function symbol
- Enable the uprobe at the target function
- Call the target function to trigger the uprobe, and hence the uprobes vma
creation
- C/R
- Call the target function again to check that no SIGTRAP is sent, since the
uprobe is still active

At least v1.7 of libtracefs is required because that's when
tracefs_instance_reset was introduced. The uprobes API was introduced in v1.4,
and the dynamic events API was introduced in v1.3.

Ubuntu Focal doesn't have libtracefs. Jammy has v1.2.5, and Noble has v1.7.

Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
2025-11-05 15:41:34 -08:00
..
lib zdtm: add mnt_ro_root test 2025-11-02 07:48:21 -08:00
static zdtm: add a test for --allow-uprobes option 2025-11-05 15:41:34 -08:00
transition Adjust to glibc __rseq_size semantic change 2024-09-11 16:02:11 -07:00
.gitignore test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
__init__.py zdtm: add --criu-config option 2022-04-28 17:53:52 -07:00
criu_config.py zdtm: Distinguish between fail and crash of dump 2024-09-11 16:02:11 -07:00
Makefile test/zdtm/Makefile: simplify 2017-04-02 18:12:10 +03:00
Makefile.inc Remove travis-ci leftovers 2025-11-02 07:48:23 -08:00