perf issue: etm traces are dumped to the wrong AUX buffer

2020-12-15 Thread Zied Guermazi
hi I am using perf syscall to collect etm traces for btraces implementation in GDB running on Linux kernel 5.9.1 on a cortex A7. in this test case, I am debugging a multi-threaded process (2 pthreads). For each thread, GDB is calling the sys call perf_event_open and gives the corresponding th

Demo of using etm traces on arm for instructions and functions recording and reverse debugging

2020-11-09 Thread Zied Guermazi
to enable setting breakpoints in reverse debugging. it is still dirty (adds arm specific register to an architecture agnostic structure) but it shows that it works when implemented properly Kind Regards Zied Guermazi ___ linaro-toolchain mailing l

GDB: status of branch tracing on arm processors using coresight etm traces

2020-11-04 Thread Zied Guermazi
- instruction_history - function_call_history - data - delta - cpu - gcore - record_goto-step - dlopen - vdso - segv GDB source code is available on https://github.com/gzied/binutils-gdb/tree/gdb_arm_coresight many thanks to GDB and linaro communities for their support Kind Regards Zied Guermazi

Re: GDB: etm traces decoding and breakpoints for arm targets

2020-11-03 Thread Zied Guermazi
repeated instruction as a workaround. for tracing bare metal software, we need to keep tracing exception, so we can have a flag for ignoring exceptions, and activate or dis-activate it according to the context. what do you think about it, shall I go for implementing it as described above

GDB: etm traces decoding and breakpoints for arm targets

2020-11-02 Thread Zied Guermazi
reakpoint was set at line 43 in the source code (line 238 in the disassembled code) Kind Regards Zied Guermazi function_call_history: file format elf32-littlearm Disassembly of section .init: 0380 <_init>: 380: e92d4008push{r3, lr} 384: eb23bl

Re: gdb: instructions and functions recording on ARM processors using CoreSight ETM

2020-02-28 Thread zied guermazi
@lists.linaro.org/msg06871.html .I am available if you need further information.Kind RegardsZied Guermazi On Friday, February 28, 2020, 05:42:00 PM GMT+1, Luis Machado wrote: Hi Zied, Luis here. I work on GDB for ARM architectures. On 2/14/20 1:53 PM, Zied Guermazi wrote: > G

Re: progress in btrace with etm in gdb

2020-02-19 Thread zied guermazi
its.I will prepare a clean set of patches and distribute it. for that, I will need few days (nights to be more precise :) ) Best RegardsZied Guermazi On Tuesday, February 18, 2020, 5:07:24 PM GMT+1, Mathieu Poirier wrote: On Mon, 17 Feb 2020 at 14:42, zied guermazi wrote: > > hi all,

Re: progress in btrace with etm in gdb

2020-02-18 Thread zied guermazi
concerning this topic, he/she is welcome to drop me an e-mail to schedule an appointmentKind RegardsZied Guermazi On Monday, February 17, 2020, 7:23:07 PM GMT+1, Mathieu Poirier wrote: Same comment applies with regards to mailing lists. On Mon, 17 Feb 2020 at 10:16, zied guermazi wrote

gdb: instructions and functions recording on ARM processors using CoreSight ETM

2020-02-14 Thread Zied Guermazi
and needs to be improved, extended and stabilized. your feedback and contributions are welcome Kind Regards Zied Guermazi ___ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-toolchain

adding branch tracing and reverse debugging in GDB using Coresight etm traces

2020-01-24 Thread zied guermazi
hiI am progressing in the implementation of the proposal "GDB process record and replay with ARM Coresight"  https://lists.linaro.org/pipermail/coresight/2019-July/003021.html so far I was able to use perf events to configure the drivers for etm and collect the traces. the code was tested succes

coresight drivers access from syscall interface

2019-12-05 Thread zied guermazi
pen and if this is the case how shall I configure the perf_event_attr to use it. thanks Zied Guermazi ___ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-toolchain

GDB process record and replay with ARM CoreSight

2019-07-15 Thread Zied Guermazi
sed SoC to GDB. I am re-sending RFC and making it available as basis for discussions for implementing this feature. it is also attached as text file B.R. Zied Guermazi Non intrusive execution recording for GDB using ARM CoreSight Status o

Request for comment: adding support for coresight etm as branch trace mechanism in gdb

2019-06-11 Thread zied guermazi
sequence 9 6 Remote protocol extensions 10 7 Solutions and alternatives 11 7.1 Scope definition 11 7.2 CoreSight infrastructure exposure t