ftrace test in ubuntu_kernel_selftests failed on KVM kernels

Bug #1812318 reported by Po-Hsu Lin on 2019-01-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux-kvm (Ubuntu)
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned

Bug Description

This test failed with:
    Error: No ftrace directory found

In the script:
    DEBUGFS_DIR=`grep debugfs /proc/mounts | cut -f2 -d' ' | head -1`
    if [ -z "$DEBUGFS_DIR" ]; then
        TRACING_DIR=`grep tracefs /proc/mounts | cut -f2 -d' ' | head -1`
    else
        TRACING_DIR=$DEBUGFS_DIR/tracing
    fi

The script exit here:
    # Verify parameters
    if [ -z "$TRACING_DIR" -o ! -d "$TRACING_DIR" ]; then
      errexit "No ftrace directory found"
    fi

DEBUGFS_DIR=/sys/kernel/debug
TRACING_DIR=/sys/kernel/debug/tracing

ls: cannot access '/sys/kernel/debug/tracing': No such file or directory

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-1028-kvm 4.15.0-1028.28
ProcVersionSignature: User Name 4.15.0-1028.28-kvm 4.15.18
Uname: Linux 4.15.0-1028-kvm x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Fri Jan 18 03:04:17 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
description: updated
Po-Hsu Lin (cypressyew) wrote :

It looks like this config is needed: CONFIG_FTRACE

Po-Hsu Lin (cypressyew) on 2019-05-06
Changed in linux-kvm (Ubuntu Bionic):
status: New → Confirmed

This issue also affects cosmic/linux-kvm.

Changed in linux-kvm (Ubuntu Cosmic):
status: New → Confirmed
Po-Hsu Lin (cypressyew) on 2019-06-24
tags: added: linux-kvm sru-20190603 ubuntu-kernel-selftests
Sean Feole (sfeole) on 2019-08-12
tags: added: sru-20190722
Sean Feole (sfeole) on 2019-09-24
Changed in ubuntu-kernel-tests:
status: New → Confirmed
tags: added: sru-20190902
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers