hi Mathieu
is this status still up to date? is there any changes in between
FYI: on gdb it is possible to trace multi-threaded programs on Intel processors using intel PT. I am not quite sure how this is realized, but I tested it and it works.

I am attaching the gdb test source file for it. it can be compiled using " gcc -g ./non-stop.c -o ./non-stop -lpthread"

start gdb using "gdb ./non-stop"
on gdb execute following commands
b main
run
break 27
break 30
thread apply all continue &
record btrace
thread apply all continue &
thread apply all info rec
info threads
set record instruction-history-size 256
thread apply 1 record goto 2
thread apply 2 record goto 4
thread apply 1 record instruction-history 1
thread apply 2 record instruction-history 1

you can see that gdb collects traces for both threads

Kind Regards
Zied Guermazi

On Monday, March 2, 2020, 4:23:10 PM GMT+1, Mathieu Poirier <mathieu.poirier@linaro.org> wrote:


Hi Andrea,

On Mon, 2 Mar 2020 at 01:46, Andrea Brunato <Andrea.Brunato@arm.com> wrote:
>
> Good morning,
>
> Is tracing a multi-threaded program a supported use case for perf cs-etm?

It is not a supported case for both PT and Coresight.

Mathieu

> If yes, are there any flags that should be specified with perf?
>
> Thanks,
> Andrea
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
> _______________________________________________
> CoreSight mailing list
> CoreSight@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/coresight

_______________________________________________
CoreSight mailing list
CoreSight@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/coresight