aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/cs-etm.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-16perf sample: Fix the wrong format specifierliujing1-1/+1
2025-10-25perf auxtrace: Add auxtrace_synth_id_range_start() helpertanze1-4/+1
2025-02-12perf sample: Make user_regs and intr_regs optionalIan Rogers1-9/+22
2024-10-14Merge tag 'v6.12-rc3' into perf-tools-nextNamhyung Kim1-1/+1
2024-10-02perf cs-etm: Fix the assert() to handle captured and unprocessed cpu traceIlkka Koskinen1-1/+1
2024-09-24perf cs-etm: Don't flush when packet_queue fills upJames Clark1-7/+18
2024-08-29perf: cs-etm: Print queue number in raw trace dumpJames Clark1-3/+10
2024-08-29perf: cs-etm: Support version 0.1 of HW_ID packetsJames Clark1-10/+90
2024-08-29perf: cs-etm: Create decoders based on the trace ID mappingsJames Clark1-103/+52
2024-08-29perf: cs-etm: Move traceid_list to each queueJames Clark1-85/+130
2024-08-29perf: cs-etm: Allocate queues for all CPUsJames Clark1-28/+25
2024-08-29perf cs-etm: Create decoders after both AUX and HW_ID search passesJames Clark1-69/+113
2024-08-12perf tool: Constify tool pointersIan Rogers1-3/+3
2024-08-12perf auxtrace: Remove dummy toolsIan Rogers1-31/+2
2024-07-31perf cs-etm: Output 0 instead of 0xdeadbeef when exception packets are flushedJames Clark1-2/+6
2024-07-12perf dso: Fix address sanitizer buildIan Rogers1-5/+5
2024-05-07perf cs-etm: Print error for new PERF_RECORD_AUX_OUTPUT_HW_ID versionsJames Clark1-1/+4
2023-11-27perf cs-etm: Enable itrace option 'T'Leo Yan1-3/+18
2023-10-12perf cs-etm: Fix incorrect or missing decoder for raw traceBesar Wicaksono1-41/+65
2023-08-15perf cs-etm: Don't duplicate FIELD_GET()James Clark1-12/+2
2023-06-12perf cs-etm: Add exception level consistency checkJames Clark1-11/+30
2023-06-12perf cs-etm: Track exception levelJames Clark1-16/+60
2023-06-12perf cs-etm: Make PID format accessible from struct cs_etm_auxtraceJames Clark1-16/+26
2023-06-12perf cs-etm: Use previous thread for branch sample source IPJames Clark1-2/+15
2023-06-12perf cs-etm: Only track threads instead of PID and TIDsJames Clark1-80/+38
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-8/+12
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-1/+1
2023-06-12perf thread: Remove notion of dead threadsIan Rogers1-6/+0
2023-05-02perf cs-etm: Add fix for coresight trace for any range of CPUsGanapatrao Kulkarni1-1/+23
2023-04-24perf cs-etm: Add separate decode paths for timeless and per-thread modesJames Clark1-38/+124
2023-04-24perf cs-etm: Use bool type for boolean valuesJames Clark1-4/+4
2023-04-24perf cs-etm: Fix timeless decode mode detectionJames Clark1-12/+18
2023-04-18perf cs-etm: Fix segfault in dso lookupJames Clark1-2/+4
2023-04-10perf util: Move perf_guest/host declarationsIan Rogers1-0/+1
2023-04-06perf map: Add helper for ->map_ip() and ->unmap_ip()Ian Rogers1-1/+1
2023-04-04perf map: Add accessor for dsoIan Rogers1-7/+10
2023-04-04perf cs-etm: Handle PERF_RECORD_AUX_OUTPUT_HW_ID packetMike Leach1-18/+228
2023-04-04perf cs-etm: Move mapping of Trace ID and cpu into helper functionMike Leach1-32/+60
2023-01-22perf cs_etm: Set the time field in the synthetic samplesGerman Gomez1-4/+79
2023-01-22perf cs_etm: Keep separate symbols for ETMv4 and ETE parametersGerman Gomez1-6/+6
2022-12-14perf cs-etm: Print auxtrace info even if OpenCSD isn't linkedJames Clark1-163/+7
2022-12-14perf cs-etm: Cleanup cs_etm__process_auxtrace_info()James Clark1-17/+9
2022-12-14perf cs-etm: Tidy up auxtrace info header printingJames Clark1-18/+10
2022-12-14perf cs-etm: Print unknown header version as an errorJames Clark1-10/+2
2022-07-20perf cs-etm: Fix duplicated 'the' in commentJason Wang1-1/+1
2022-02-16perf cs-etm: Fix corrupt inject files when only last branch option is enabledJames Clark1-0/+2
2022-02-16perf cs-etm: No-op refactor of synth opt usageJames Clark1-9/+5
2021-11-13perf cs-etm: Print size using consistent formatAndrew Kilroy1-1/+1
2021-09-03perf cs-etm: Show a warning for an unknown magic numberJames Clark1-0/+5
2021-09-03perf cs-etm: Print the decoder nameJames Clark1-2/+2
2021-09-03perf cs-etm: Create ETE decoderJames Clark1-0/+18
2021-09-03perf cs-etm: Save TRCDEVARCH registerJames Clark1-2/+13
2021-08-09perf cs-etm: Add warnings for missing DSOsJames Clark1-1/+10
2021-08-02perf cs-etm: Pass unformatted flag to decoderJames Clark1-13/+40
2021-08-02perf cs-etm: Use existing decoder instead of resetting itJames Clark1-30/+7
2021-08-02perf cs-etm: Only setup queues when they are modifiedJames Clark1-40/+14
2021-08-02perf cs-etm: Split setup and timestamp search functionsJames Clark1-12/+29
2021-08-02perf cs-etm: Refactor initialisation of kernel start addressJames Clark1-5/+1
2021-07-27perf cs-etm: Split --dump-raw-trace by AUX recordsJames Clark1-2/+18
2021-07-14perf cs-etm: Split Coresight decode by aux recordsJames Clark1-1/+167
2021-07-01perf cs-etm: Delay decode of non-timeless data until cs_etm__flush_events()James Clark1-1/+5
2021-05-17perf cs-etm: Start reading 'Z' --itrace optionJames Clark1-0/+4
2021-05-17perf cs-etm: Move synth_opts initialisationJames Clark1-8/+8
2021-05-12perf cs-etm: Set time on synthesised samples to preserve orderingJames Clark1-2/+13
2021-05-12perf cs-etm: Refactor timestamp variable namesJames Clark1-22/+20
2021-03-23perf tools: Fix various typos in commentsIngo Molnar1-4/+4
2021-03-02perf cs-etm: Add helper cs_etm__get_pid_fmt()Leo Yan1-0/+42
2021-03-02perf cs-etm: Update ETM metadata formatMike Leach1-42/+193
2020-09-01perf cs-etm: Fix corrupt data after perf inject fromAl Grant1-1/+8
2020-05-05perf cs-etm: Move definition of 'traceid_list' global variable from header fileLeo Yan1-0/+3
2020-04-16perf cs-etm: Implement ->evsel_is_auxtrace() callbackAdrian Hunter1-0/+11
2020-03-11perf cs-etm: Fix unsigned variable comparison to zeroLeo Yan1-1/+1
2020-03-11perf cs-etm: Optimize copying last branchesLeo Yan1-5/+17
2020-03-11perf cs-etm: Correct synthesizing instruction samplesLeo Yan1-17/+70
2020-03-11perf cs-etm: Continuously record last branchLeo Yan1-3/+4
2020-03-11perf cs-etm: Swap packets for instruction samplesLeo Yan1-20/+19
2020-03-09perf tools: Add hw_idx in struct branch_stackKan Liang1-0/+2
2019-11-26perf maps: Merge 'struct maps' with 'struct map_groups'Arnaldo Carvalho de Melo1-1/+1
2019-11-06perf cs-etm: Fix definition of macro TO_CS_QUEUE_NRLeo Yan1-2/+2
2019-09-25libperf: Move 'id' from 'struct evsel' to 'struct perf_evsel'Jiri Olsa1-1/+1
2019-09-20perf tools: Move event synthesizing routines to separate .c fileArnaldo Carvalho de Melo1-0/+1
2019-09-20perf tools: Remove util.h from where it is not neededArnaldo Carvalho de Melo1-1/+0
2019-08-31perf symbols: Move mem_info and branch_info out of symbol.hArnaldo Carvalho de Melo1-0/+2
2019-08-31perf auxtrace: Uninline functions that touch perf_sessionArnaldo Carvalho de Melo1-0/+1
2019-08-31perf tools: Remove needless thread_map.h include directivesArnaldo Carvalho de Melo1-1/+0
2019-08-31perf dsos: Move the dsos struct and its methods to separate source filesArnaldo Carvalho de Melo1-0/+2
2019-08-29libperf: Rename the PERF_RECORD_ structs to have a "perf" prefixJiri Olsa1-1/+1
2019-08-29libperf: Add PERF_RECORD_AUXTRACE_INFO 'struct auxtrace_info_event' to perf/e...Jiri Olsa1-1/+1
2019-08-20perf cs-etm: Support sample flags 'insn' and 'insnlen'Leo Yan1-1/+34
2019-07-29libperf: Move perf_event_attr field from perf's evsel to libperf's perf_evselJiri Olsa1-10/+10
2019-07-29perf evlist: Rename struct perf_evlist to struct evlistJiri Olsa1-2/+2
2019-07-29perf evsel: Rename struct perf_evsel to struct evselJiri Olsa1-2/+2
2019-07-11perf cs-etm: Return errcode in cs_etm__process_auxtrace_info()YueHaibing1-3/+7
2019-07-11perf cs-etm: Remove errnoeous ERR_PTR() usage in cs_etm__process_auxtrace_infoYueHaibing1-1/+1
2019-07-09perf cs-etm: Fix potential NULL pointer dereference found by the smatchLeo Yan1-1/+1
2019-07-09perf tools: Use zfree() where applicableArnaldo Carvalho de Melo1-3/+2
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-0/+1
2019-06-10perf cs-etm: Add support for CPU-wide trace scenariosMathieu Poirier1-8/+246
2019-06-10perf cs-etm: Add notion of time to decoding codeMathieu Poirier1-0/+19
2019-06-10perf cs-etm: Linking PE contextID with perf thread mechanicMathieu Poirier1-6/+26
2019-06-10perf cs-etm: Add support for multiple traceID queuesMathieu Poirier1-24/+107
2019-06-10perf cs-etm: Use traceID aware memory callback APIMathieu Poirier1-13/+28
2019-06-10perf cs-etm: Move tid/pid to traceid_queueMathieu Poirier1-18/+26
2019-06-10perf cs-etm: Move thread to traceid_queueMathieu Poirier1-7/+10
2019-06-10perf cs-etm: Get rid of unused cpu in struct cs_etm_queueMathieu Poirier1-6/+1
2019-06-10perf cs-etm: Introduce the concept of trace ID queuesMathieu Poirier1-141/+219
2019-06-10perf cs-etm: Fix indentation in function cs_etm__process_decoder_queue()Mathieu Poirier1-54/+54
2019-06-10perf cs-etm: Move packet queue out of decoder structureMathieu Poirier1-1/+36
2019-06-10perf cs-etm: Add handling of switch-CPU-wide eventsMathieu Poirier1-0/+38
2019-06-10perf cs-etm: Add handling of itrace start eventsMathieu Poirier1-0/+26
2019-05-02perf cs-etm: Always allocate memory for cs_etm_queue::prev_packetLeo Yan1-5/+3
2019-05-02perf cs-etm: Don't check cs_etm_queue::prev_packet validityLeo Yan1-5/+1
2019-02-14perf cs-etm: Modularize auxtrace_buffer fetch functionMathieu Poirier1-12/+29
2019-02-14perf cs-etm: Modularize main packet processing loopMathieu Poirier1-57/+72
2019-02-14perf cs-etm: Modularize main decoder functionMathieu Poirier1-12/+29
2019-02-14perf cs-etm: Make cs_etm__run_decoder() queue independentMathieu Poirier1-26/+26
2019-02-14perf cs-etm: Rethink kernel address initialisationMathieu Poirier1-4/+3
2019-02-14perf cs-etm: Cleaning up function cs_etm__alloc_queue()Mathieu Poirier1-21/+16
2019-02-14perf cs-etm: Fix erroneous commentMathieu Poirier1-1/+1
2019-02-14perf cs-etm: Introducing function cs_etm__init_trace_params()Mathieu Poirier1-56/+56
2019-02-14perf cs-etm: Fix memory leak in error pathMathieu Poirier1-7/+13
2019-02-14perf cs-etm: Introducing function cs_etm_decoder__init_dparams()Mathieu Poirier1-13/+28
2019-02-14perf cs-etm: Fix wrong return values in error pathMathieu Poirier1-2/+2
2019-02-14perf cs-etm: Remove unused structure field "time" and "timestamp"Mathieu Poirier1-8/+4
2019-02-14perf cs-etm: Remove unused structure field "state"Mathieu Poirier1-1/+0
2019-02-14perf cs-etm: Add proper header file for symbolsMathieu Poirier1-0/+1
2019-02-06perf cs-etm: Set sample flags for exception return packetLeo Yan1-0/+44
2019-02-06perf cs-etm: Set sample flags for exception packetLeo Yan1-0/+215
2019-02-06perf cs-etm: Change tuple from traceID-CPU# to traceID-metadataLeo Yan1-6/+20
2019-02-06perf cs-etm: Set sample flags for trace discontinuityLeo Yan1-0/+19
2019-02-06perf cs-etm: Set sample flags for instruction range packetLeo Yan1-2/+88
2018-12-18perf cs-etm: Generate branch sample for exception packetLeo Yan1-0/+28
2018-12-18perf cs-etm: Rename CS_ETM_TRACE_ON to CS_ETM_DISCONTINUITYLeo Yan1-6/+6
2018-12-18perf cs-etm: Avoid stale branch samples when flush packetLeo Yan1-1/+34
2018-12-18perf cs-etm: Correct packets swapping in cs_etm__flush()Leo Yan1-1/+1
2018-12-17perf cs-etm: Add support for PTMv1.1 decodingMathieu Poirier1-2/+21
2018-12-17perf cs-etm: Add configuration for ETMv3 trace protocolMathieu Poirier1-14/+40
2018-12-17perf cs-etm: Support for ARM A32/T32 instruction sets in CoreSight traceRobert Walker1-39/+31
2018-10-31perf cs-etm: Correct CPU mode for samplesLeo Yan1-9/+30
2018-10-24perf script: Make itrace script default to all callsAndi Kleen1-1/+2
2018-07-31perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packetLeo Yan1-7/+17
2018-07-31perf cs-etm: Generate branch sample when receiving a CS_ETM_TRACE_ON packetLeo Yan1-0/+8
2018-07-31perf cs-etm: Support dummy address value for CS_ETM_TRACE_ON packetLeo Yan1-2/+15
2018-07-31perf cs-etm: Fix start tracing packet handlingLeo Yan1-1/+18
2018-07-24perf cs-etm: Bail out immediately for instruction sample failureLeo Yan1-0/+3
2018-05-15Merge remote-tracking branch 'tip/perf/urgent' into perf/coreArnaldo Carvalho de Melo1-4/+24
2018-05-11perf cs-etm: Remove redundant spaceLeo Yan1-2/+2
2018-05-11perf cs-etm: Support unknown_thread in cs_etm_auxtraceLeo Yan1-2/+22
2018-04-26perf thread: Make thread__find_map() return the mapArnaldo Carvalho de Melo1-3/+1
2018-04-26perf thread: Introduce thread__find_map()Arnaldo Carvalho de Melo1-1/+1
2018-04-19coresight: Move to SPDX identifierMathieu Poirier1-2/+1
2018-02-16perf inject: Emit instruction records on ETM trace discontinuityRobert Walker1-23/+57
2018-02-16perf cs-etm: Inject capabilitity for CoreSight tracesRobert Walker1-48/+386
2018-02-16perf cs-etm: Freeing allocated memoryMathieu Poirier1-0/+6
2018-01-25perf tools: Add mechanic to synthesise CoreSight trace packetsMathieu Poirier1-0/+168
2018-01-25perf tools: Add full support for CoreSight trace decodingMathieu Poirier1-6/+160
2018-01-25pert tools: Add queue management functionalityMathieu Poirier1-4/+204
2018-01-25perf tools: Add decoder mechanic to support dumping trace dataMathieu Poirier1-4/+104
2018-01-25perf tools: Add processing of coresight metadataTor Jeremiassen1-3/+191
2018-01-25perf tools: Add initial entry point for decoder CoreSight tracesMathieu Poirier1-0/+213