1
error opening /sys/kernel/debug/tracing/options/print-tgid: Permission denied (13)

unable to start tracing

I am getting the above error when trying to run systrace on my Note 10.1 2014 device. Any ideas?

I followed the steps from google outlined here:

python systrace.py --time=10 -o mynewtrace.html sched gfx view wm

http://developer.android.com/tools/help/systrace.html

mtbomb
  • 1,107
  • 1
  • 13
  • 16
  • systrace may not be enabled in the kernel on that device. – fadden Jul 01 '14 at 16:20
  • @fadden By any chance do you know if the Nexus 10 kernel supports systrace? I'm trying to run systrace on my Nexus 10 and am getting the exact same error message as the OP. – Alex Lockwood Jul 03 '14 at 02:53
  • So long as you're running the stock version of Android, it should definitely be supported. Some features do require root -- try dropping "sched". – fadden Jul 03 '14 at 05:13
  • .@AlexLockwood, did you ever get Systrace working on your Nexus 10? I'm running Stock Android on mine and I can get it to work - same error as the OP. – Zippy Jul 22 '16 at 22:51

1 Answers1

2

You don't have access to some of categories that you have selected. some of the categories need root permissions.

use following command to check what all categories that current device can support.

$python systrace.py -l 

     gfx - Graphics
   input - Input
    view - View System
 webview - WebView
      wm - Window Manager
      am - Activity Manager
      sm - Sync Manager
   audio - Audio
   video - Video
  camera - Camera
     hal - Hardware Modules
     app - Application
     res - Resource Loading
  dalvik - Dalvik VM
      rs - RenderScript
  bionic - Bionic C Library
   power - Power Management

root and remount the device before running above command.

adb root
adb remount
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54