Project

General

Profile

Actions

Bug #1275

closed

kernel trace metadata file is placed outside the kernel/ directory

Added by Christophe Bedard almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
06/29/2020
Due date:
% Done:

0%

Estimated time:

Description

Host:

  • Ubuntu 18.04 5.3.0-61-generic
  • Docker version 19.03.12, build 48a66213fe
  • lttng-modules-dkms 2.11.2-1~ubuntu18.04.1 from the stable-2.11 PPA (I think my host also has lttng-ust & lttng-tools from the same PPA, but I assume it doesn't matter here)
    lttng (LTTng Trace Control) 2.11.2 - Lafontaine

Docker container:

  • Ubuntu 18.04.1 (same: 5.3.0-61-generic)
  • The `/lib/modules/5.3.0-61-generic` dir from the host is mounted inside the container (same directory), and I do see the `lttng-*.ko` files under `/lib/modules/`uname -r`/updates/dkms/`
  • Compiled from source from the `stable-2.11` branches: lttng-ust (89909e362150f437c619f627e20bb4434a1566aa), lttng-tools (14a5bf2843c2bdc13c3a4ec3335a13c867ba3619)
    lttng (LTTng Trace Control) 2.11.4 - Lafontaine - v2.11.4-23-g14a5bf28

If I setup simple session with a few kernel syscall events, the resulting trace cannot be read with babeltrace. Upon inspection, I found that the metadata file is outside the kernel/ directory (so right under the trace directory itself). If I move it to the kernel/ directory, babeltrace can read the trace fine.

E.g.

$ lttng create ksesh
$ lttng enable-event -k --syscall open,read,poll
$ lttng start
$ # wait
$ lttng stop
$ lttng destroy
$ cd lttng-traces/
$ babeltrace ksesh-20200629-120439/
[warning] Skipping directory 'kernel' found in trace
$ ll ksesh-20200629-120439/
kernel  metadata
$ mv ksesh-20200629-120439/metadata ksesh-20200629-120439/kernel/
$ babeltrace ksesh-20200629-120439/
(a lot of events)

I'm currently trying to setup a minimal docker image to reproduce.

Actions

Also available in: Atom PDF