perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

trace config invalid

Open Sunghyeok93 opened this issue 4 years ago • 10 comments

Hello, I got this error when I turn on the 'Scheduling details' on CPU Probes. could you help me?

-:69:13 error: No field named "symbolize_ksyms" in proto FtraceConfig symbolize_ksyms: true ^~~~~~~~~~~~~~~ [452.354] perfetto_cmd.cc:476 The trace config is invalid, bailing out.

Sunghyeok93 avatar Jan 19 '22 05:01 Sunghyeok93

Please provide the Android version of the device you are collecting the trace from

@octaviantu - maybe you can take a look at this as part of your refactoring.

LalitMaganti avatar Jan 19 '22 11:01 LalitMaganti

This seem simly an issue of passing a config to an older device that doesn't support symbolize_ksyms

primiano avatar Jan 19 '22 17:01 primiano

Actually, my device is quite new.. galaxy Z Fold 3. and the Android version is 11.

Sunghyeok93 avatar Jan 24 '22 03:01 Sunghyeok93

Unfortunately symbolize_ksyms was added in Android S/12 so even Android 11 is too old for this flag.

As Primiano said, we should just not enable this option if you specify/we detect an older version in the UI when generating the config.

LalitMaganti avatar Jan 25 '22 18:01 LalitMaganti

That's why there was a problem. Thank you!

Sunghyeok93 avatar Jan 26 '22 01:01 Sunghyeok93

I think we'd still keep this issue open to track the change in the UI to stop specifying this flag.

LalitMaganti avatar Jan 26 '22 01:01 LalitMaganti

symbolize_ksyms is added when I turn on 'Scheduling details'. If so, is there any other way to get CPU Scheduling details on the Android version 11?

Sunghyeok93 avatar Jan 26 '22 01:01 Sunghyeok93

If you mean collecting directly through the UI (i.e. without using the command line), then this is not possible until we fix this bug.

However, uou can just remove that line from the generated config and run the adb command the UI gives. Scheduling info will still be collected in that case (the only thing you'll miss is some information like the kernel blocked function in sched_blocked_reason).

LalitMaganti avatar Jan 26 '22 01:01 LalitMaganti

Fixed in https://github.com/google/perfetto/commit/327ad962a59d149ad6662fcbd18e38d808f91a3f

LalitMaganti avatar Jan 28 '22 17:01 LalitMaganti

For now the fix is only available on the Autopush branch. (you can get to Autopush by writing localStorage.perfettoUiChannel = 'autopush' in the dev console)

It will be rolled out to canary and stable in the next few weeks.

octaviantu avatar Jan 28 '22 17:01 octaviantu