Page MenuHomeFreeBSD

HWT: ARM CoreSight support
Needs ReviewPublic

Authored by br on Jun 9 2023, 3:06 PM.
Tags
None
Referenced Files
F163076769: D40477.id126229.diff
Sun, Jul 19, 9:14 PM
F163066434: D40477.id127816.diff
Sun, Jul 19, 6:54 PM
F163048442: D40477.id.diff
Sun, Jul 19, 2:49 PM
F163043970: D40477.id125359.diff
Sun, Jul 19, 1:41 PM
F163009918: D40477.id127774.diff
Sun, Jul 19, 3:29 AM
F163002515: D40477.id123667.diff
Sun, Jul 19, 2:13 AM
F162994844: D40477.id123721.diff
Sun, Jul 19, 12:29 AM
F162985178: D40477.id124537.diff
Sat, Jul 18, 10:33 PM

Details

Summary
  • Add ARM Coresight (SoC-400) support to HWT framework
  • Pipeline build code added
Test Plan

Tested on ARM Morello platform.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

br requested review of this revision.Jun 9 2023, 3:06 PM

Add CORESIGHT_DEBUG macro.

Provide the name of backend needed for registration in HWT framework.

Interface to HWT changed

morello-dts included for test

Make coresight optional. Depends on hwt

coresight_setup() method added

hwt_backend interface changed

Kernel-mode tracing support added.

allow tracing multiple cpus in system mode

ability to build as a module

sys/arm64/coresight/coresight.c
72

Should we dynamically allocate this based on mp_ncpus instead, especially since MAXCPU is being bumped to 1024? I think it would make sense to do that in coresight_backend_init and then can free() at the end of coresight_backend_deinit.

This is what I'm doing for SPE at the moment.

br removed a reviewer: manu.

Pass ctx to backend_deinit().

This doesn't build when I add hwt and coresight to my kernel config

Due to pipeline design Coresight components could not be used for more than 1 concurrent tracing sessions.
Atomic counter of sessions added and limited to 1.

This doesn't build when I add hwt and coresight to my kernel config

Could you try again? A change in modules/Makefile was missing