New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 817834 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Kernel tracing info absent

Project Member Reported by olka@chromium.org, Mar 1 2018

Issue description

M65, ChromeOS (it does not work on Linux/Mac/ Windows either, but I'm not sure if it's supposed to)

What steps will reproduce the problem?
(1) Go to chrome://tracing
(2) Press "Record" > "Edit categories"
(3) Make sure "System tracing" checkbox is marked
(4) Press "Record"

What is the expected result?
Traces with "Kernel" section, which has all CPUs and what is run on each of them at any given moment (see attachment from M61)

What happens instead?
Only "CPU usage" section, no "Kernel" section.

It does not seem to work in M64 either?
 
image (1).png
70.6 KB View Download

Comment 1 by spang@chromium.org, Mar 1 2018

Labels: -Type-Bug Type-Bug-Regression
It's not supported on Mac or Windows but should always work on Chrome OS.

Comment 2 by olka@chromium.org, Mar 2 2018

Cc: primiano@chromium.org sprang@chromium.org
Owner: oysteine@chromium.org
Status: Assigned (was: Untriaged)
oysteine@: assigning to you as a tracing owner, could PTAL or re-route?

We need this functionality back quite badly, to debug performance regressions.
Thanks!
Cc: reve...@chromium.org dcasta...@chromium.org
> it does not work on Linux/Mac/ Windows either, but I'm not sure if it's supposed to
No

Did you reproduce on a CrOS device? Which device?

We need somebody from CrOS to look into this. Very likely the path of /sys/kernel/debug/tracing changed or is not accessible anymore.
Neither Oystein nor I do CrOS development. Can somebody from CrOS land look into this?

cc-ing a bunch of folks who might help

Comment 4 by olka@chromium.org, Mar 2 2018

The last I checked was Squawks, and we tried some other Chromebooks as well as CfM.
I seem to be able to repro the issue on M65 on samus while we can't repro on M66 eve or kevin.
Trying samus with M66.
Same issue on samus with M66
Do these CrOS devices have selinux? One posibility is that selinux is misconfigured on them and chrome can't access debugfs. If you do
dmesg | grep denied 
do you see any avc: denial message?
I see a lot of avc: denied messages.
There is also one with path /sys/kernel/debug
> There is also one with path /sys/kernel/debug

can you please paste it. that might be the culprit.
If I disable enforcement as suggested by Primiano, with setenforce 0, the per CPU traces are back.
Output of dmesg | grep denied: https://paste.googleplex.com/6701584935288832
okay it's definitely a selinux problem. We need to find where selinux policies live for CrOS.
olka@ in the meantime, if you are root on the device, you can workaround this by just typing "setenforce 0" on a terminal
Cc: lhchavez@chromium.org yusukes@chromium.org

Comment 14 by olka@chromium.org, Mar 8 2018

Thanks, we'll give it a try!

Comment 15 by olka@chromium.org, Apr 4 2018

Labels: M-67
Would it be possible to fix it for M67?

The bug really limits our ability to asses performance issues on CfM devices.
(Rooted devices cannot join meetings in the production environment.)

Thanks!
Cc: kerrnel@chromium.org
+kerrnel: any idea who might be an appropriate owner for this? It seems like an issue with selinux policies.
Cc: teravest@chromium.org
Cc: -lhchavez@chromium.org

Sign in to add a comment