---
title: "btrace does not appear to be a debug filesystem "
author: "dikar"
date: "2011-08-02T12:35:34Z"
tags: []
categories: ["开源软件"]
slug: "btrace-does-not-appear-to-be-a-debug-filesystem"
draft: false
lastmod: "2011-08-02T12:35:34Z"
id: 1138049
url: "https://dikar.iteye.com/blog/1138049"
---

在测试环境使用btrace时，突然遇到一个错误

“/sys/kernel/debug does not appear to be a debug filesystem ”

 

在以下帖子找到答案 [http://ubuntuforums.org/showthread.php?p=3719857](http://ubuntuforums.org/showthread.php?p=3719857)

 

原来是需要将/sys/kernel/debug mount为一个debug fs（如果懂内核直接看错误提示就ok了，也不需要go大神了）

 

解决方案如原帖：

 

 

```
sudo mount -t debugfs none_debug /sys/kernel/debug
```

 

各种不懂 debugfs是虾米，故付一个 wiki

 

http://en.wikipedia.org/wiki/Debugfs