Greetings,
I have attached 4 patches that implement the API i needed. I haven't send it officially as a patch to the mailing list, since this is a POC and merely a request for review and "approval" of the approach i have taken here. The patches are rebased on the latest TIP of coresight tree "next" branch(correct to the time of sending this message).
Basically, based on the patch i have uploaded, my use case is creating a single coresight session that uses an ETR sink, and playing/pausing trace data generation on multiple CPUs simultaneously; And finally collecting trace data in the end:
session = coresight_etm_create_session() buffer = coresight_etm_alloc_buffer() coresight_etm_set_buffer(buffer)
coresight_etm_play() ... ... ... coresight_etm_pause()
coresight_etm_set_buffer(NULL) coresight_etm_free_buffer(buffer) coresight_etm_destroy_session(session)
I'd appreciate an input, review, tips, hints, improvements. Please tell me if something is lacking in my explanation.
Thanks, Mike.