sof icon indicating copy to clipboard operation
sof copied to clipboard

Telemetry2 thread info

Open jsarha opened this issue 1 year ago • 8 comments

jsarha avatar Apr 26 '24 11:04 jsarha

One major change idea for this would be making each core data to have its own chunk. In the end it would same couple of bytes and maybe look a bit cleaner. A down side would be the core specific chunks be there in the telemetry2 slot in 'random' order depending on which cores are started up first.

jsarha avatar Apr 29 '24 21:04 jsarha

Applied all pending comments, but the big question about the new telemetry slots name is still unanswered. What about telemetry_v2, that would indicate that telemetry_v2 is trying to be a super-set of telemetry (v1) and while it can coexist with it, it can also make it obsolete. There is probably also still more comments to be written.

jsarha avatar May 02 '24 22:05 jsarha

telemetry_v2 is trying to be a super-set of telemetry (v1) and while it can coexist with it, it can also make it obsolete.

That really requires explanations !

plbossart avatar May 03 '24 12:05 plbossart

telemetry_v2 is trying to be a super-set of telemetry (v1) and while it can coexist with it, it can also make it obsolete.

That really requires explanations !

Intention is to be able to see Zephyr RTOS resources in realtime, not break backwards compatibility with existing telemetry and grow alongside Zephyr. Today only 1 backend, the mem Window, but should also work with probes in future.

V2 naming is really about the ABI, i.e. the feature supports existing "v1" telemetry for compatibility (do not break and can embed) but v2 is to exploit all the data that is available via Zephyr RTOS APIs around scheduling, memory, IRQs, locking, MMU, PM etc.

Expectation is that Zephyr data will grow/change over time hence an IPC based data format is used that will allow ABI growth and wont break tooling.

lgirdwood avatar May 06 '24 16:05 lgirdwood

Made some necessary updated due to changes to my PR on Zephyr side (https://github.com/zephyrproject-rtos/zephyr/pull/71408) and while at it, added some text to telemetry2 (I did not change the name just yet) commit message and associated Kconfig help section and header. Also added a commit to increase debug window size from 12k to 16k.

jsarha avatar May 07 '24 21:05 jsarha

Update the implementation to use the latest API update for this PR: https://github.com/zephyrproject-rtos/zephyr/pull/71408

Also some updates to code comments. Got rid of C++ //-comments.

jsarha avatar May 22 '24 20:05 jsarha

Relax locking for telemetry2 chunk reservation. Fix some minor style issues.

jsarha avatar May 24 '24 14:05 jsarha

@jsarha any updates ? I think we should have all Zephyr commits upstream now ? Can you rebase too.

lgirdwood avatar Jul 05 '24 15:07 lgirdwood

@lgirdwood I am currently doing (or actually re-spinning after two week bug-hunt break) the major rework to change to debug window protocol to core specific circular buffers, you requested. I do not expect it to be ready before end of the week, when I start my two week summer vacation, but I hope it does not take more than another week after that.

jsarha avatar Jul 08 '24 14:07 jsarha

@jsarha This can be closed now with https://github.com/thesofproject/sof/pull/9398 merged ?

kv2019i avatar Sep 09 '24 08:09 kv2019i

Yes. I'll close it now.

jsarha avatar Sep 13 '24 09:09 jsarha