Package perf-trace examples and include files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
In Progress
|
Low
|
Thadeu Lima de Souza Cascardo | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Low
|
Thadeu Lima de Souza Cascardo |
Bug Description
[Impact]
perf trace can work with BPF code and is able to use clang to build C code to do it. Currently, it won't be able to build them as it requires some include files that it looks at /usr/lib/
As this path is not dependent on the kernel version, shipping the latest code would make sense as long as headers are backwards compatible. Example code could be packaged on a versioned directory in a versioned package.
[Test case]
$ sudo perf trace -e open,openat,
0.000 ( 0.027 ms): cat/2256 openat(dfd: CWD, filename: "/etc/ld.so.cache", flags: RDONLY|CLOEXEC) = 3
0.058 ( 0.009 ms): cat/2256 openat(dfd: CWD, filename: "/lib/s390x-
0.307 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.326 ( 0.007 ms): cat/2256 openat(dfd: CWD, filename: "/usr/share/
0.361 ( 0.005 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.373 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.389 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.403 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.415 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.428 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.440 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.456 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.464 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.475 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.489 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.511 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.525 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.536 ( 0.004 ms): cat/2256 openat(dfd: CWD, filename: "/usr/lib/
0.565 ( 0.003 ms): cat/2256 openat(dfd: CWD, filename: "/etc/passwd") = 3
[Potential regression]
We might ship incompatible code with the running kernel. It might break building such examples.
Or we might break the old contens of the packages we are adding files to.
Changed in linux (Ubuntu Groovy): | |
status: | New → In Progress |
assignee: | nobody → Thadeu Lima de Souza Cascardo (cascardo) |
importance: | Undecided → Low |
Ubuntu 20.10 (Groovy Gorilla) has reached end of life, so this bug will not be fixed for that specific release.