aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
AgeCommit message (Expand)AuthorFilesLines
9 daysperf tools: Minimal DEFERRED_CALLCHAIN supportNamhyung Kim1-0/+1
2025-07-25perf build-id: Change sprintf functions to snprintfIan Rogers1-1/+1
2025-06-20perf tools: display the new PERF_RECORD_BPF_METADATA eventBlake Jones1-0/+21
2025-05-28perf script: Print PERF_AUX_FLAG_COLLISION flagLeo Yan1-2/+3
2025-05-16perf record: Add 8-byte aligned event type PERF_RECORD_COMPRESSED2Chun-Tse Shao1-0/+1
2025-02-18perf report: Add latency output fieldDmitry Vyukov1-0/+6
2025-02-18perf report: Add parallelism filterDmitry Vyukov1-0/+2
2025-02-17perf report: Add machine parallelismDmitry Vyukov1-0/+3
2024-08-12perf buildid-list: Use perf_tool__initIan Rogers1-0/+20
2024-08-12perf tool: Constify tool pointersIan Rogers1-17/+17
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-4/+4
2024-02-12perf maps: Get map before returning in maps__findIan Rogers1-2/+2
2023-11-09perf record: Lazy load kernel symbolsIan Rogers1-2/+2
2023-07-28perf symbols: Add kallsyms__get_symbol_start()Namhyung Kim1-3/+27
2023-06-29perf tools: Do not remove addr_location.thread in thread__find_map()Namhyung Kim1-5/+2
2023-06-12perf map/maps/thread: Changes to reference countingIan Rogers1-0/+3
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-6/+10
2023-06-12perf addr_location: Move to its own headerIan Rogers1-12/+0
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-3/+3
2023-05-23perf stat record: Save cache level informationK Prateek Nayak1-3/+4
2023-04-10perf util: Move perf_guest/host declarationsIan Rogers1-1/+1
2023-04-06perf map: Changes to reference countingIan Rogers1-2/+4
2023-04-06perf map: Add helper for ->map_ip() and ->unmap_ip()Ian Rogers1-4/+4
2023-04-04perf map: Add accessor for dsoIan Rogers1-4/+5
2023-04-04perf maps: Add functions to access mapsIan Rogers1-2/+2
2022-06-23perf record: Add finished init eventAdrian Hunter1-0/+1
2022-05-23perf tools: Add guest_code supportAdrian Hunter1-2/+5
2022-02-14perf maps: Use a pointer for kmapsIan Rogers1-3/+3
2021-10-20perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_IDAdrian Hunter1-0/+18
2021-02-08perf script: Support filtering by hex addressJin Yao1-0/+24
2021-02-03perf tools: Fix DSO filtering when not finding a map for a sampled addressArnaldo Carvalho de Melo1-0/+2
2020-12-28perf tools: Add support to display build ids when available in PERF_RECORD_MM...Jiri Olsa1-11/+30
2020-09-17perf script: Display negative tid in non-sample eventsAdrian Hunter1-1/+1
2020-07-10perf script: Show text poke address symbolAdrian Hunter1-5/+16
2020-07-10perf tools: Add support for PERF_RECORD_TEXT_POKEAdrian Hunter1-0/+47
2020-04-22perf script: Avoid NULL dereference on symbolIan Rogers1-1/+1
2020-04-03perf script: Allow --symbol to accept hexadecimal addressesStephane Eranian1-4/+17
2020-04-03perf tools: Basic support for CGROUP eventNamhyung Kim1-0/+18
2019-11-26perf maps: Rename 'mg' variables to 'maps'Arnaldo Carvalho de Melo1-6/+6
2019-11-26perf addr_location: Rename al->mg to al->mapsArnaldo Carvalho de Melo1-3/+3
2019-11-26perf thread: Rename thread->mg to thread->mapsArnaldo Carvalho de Melo1-2/+2
2019-11-26perf maps: Merge 'struct maps' with 'struct map_groups'Arnaldo Carvalho de Melo1-2/+2
2019-11-12perf tools: Add map_groups to 'struct addr_location'Arnaldo Carvalho de Melo1-3/+3
2019-09-20perf tools: Move event synthesizing routines to separate .c fileArnaldo Carvalho de Melo1-1107/+1
2019-09-20perf tools: Move event synthesizing routines to separate headerArnaldo Carvalho de Melo1-0/+1
2019-09-20perf env: Remove needless cpumap.h headerArnaldo Carvalho de Melo1-0/+2
2019-08-31perf dsos: Move the dsos struct and its methods to separate source filesArnaldo Carvalho de Melo1-0/+2
2019-08-29perf tools: Remove perf.h from source files not needing itArnaldo Carvalho de Melo1-1/+0
2019-08-29perf tools: Remove needless perf.h include directive from headersArnaldo Carvalho de Melo1-0/+1
2019-08-29perf time-utils: Adopt rdclock() from perf.hArnaldo Carvalho de Melo1-0/+1
2019-08-29libperf: Rename the PERF_RECORD_ structs to have a "perf" prefixJiri Olsa1-17/+17
2019-08-29libperf: Add PERF_RECORD_STAT_CONFIG 'struct stat_config_event' to perf/event.hJiri Olsa1-1/+1
2019-08-29libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.hJiri Olsa1-1/+1
2019-08-28perf event: Check ref_reloc_sym before using itIgor Lubashev1-3/+4
2019-08-26perf tool: Rename perf_tool::bpf_event to bpfArnaldo Carvalho de Melo1-7/+7
2019-08-26perf tools: Rename perf_event::bpf_event to perf_event::bpfArnaldo Carvalho de Melo1-2/+1
2019-08-26perf tools: Rename perf_event::ksymbol_event to perf_event::ksymbolArnaldo Carvalho de Melo1-3/+3
2019-08-26libperf: Add PERF_RECORD_KSYMBOL 'struct ksymbol_event' to perf/event.hJiri Olsa1-1/+1
2019-08-26libperf: Add PERF_RECORD_LOST 'struct lost_event' to perf/event.hJiri Olsa1-1/+1
2019-08-26libperf: Add PERF_RECORD_MMAP2 'struct mmap2_event' to perf/event.hJiri Olsa1-3/+3
2019-08-26libperf: Add PERF_RECORD_MMAP 'struct mmap_event' to perf/event.hJiri Olsa1-1/+1
2019-08-22libperf: Add perf_thread_map__nr/perf_thread_map__pid functionsJiri Olsa1-4/+4
2019-08-22libperf: Move perf's cpu_map__empty() to perf_cpu_map__empty()Jiri Olsa1-1/+1
2019-07-29libperf: Add perf_thread_map__get()/perf_thread_map__put()Jiri Olsa1-2/+2
2019-07-29libperf: Add perf_cpu_map__get()/perf_cpu_map__put()Jiri Olsa1-1/+1
2019-07-29perf tools: Rename struct thread_map to struct perf_thread_mapJiri Olsa1-3/+3
2019-07-29perf cpu_map: Rename struct cpu_map to struct perf_cpu_mapJiri Olsa1-9/+9
2019-07-09perf tools: Use zfree() where applicableArnaldo Carvalho de Melo1-1/+1
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-0/+1
2019-06-26perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernelArnaldo Carvalho de Melo1-3/+1
2019-06-25tools perf: Move from sane_ctype.h obtained from git to the Linux's originalArnaldo Carvalho de Melo1-1/+1
2019-05-28perf script: Remove superfluous BPF event titlesJiri Olsa1-2/+2
2019-05-15perf record: Implement COMPRESSED event record and its attributesAlexey Budankov1-0/+1
2019-02-06perf tools: Add missing include for symbols.hArnaldo Carvalho de Melo1-0/+1
2019-02-06pref tools: Add missing map.h includesArnaldo Carvalho de Melo1-0/+1
2019-01-21perf tools: Handle PERF_RECORD_BPF_EVENTSong Liu1-0/+20
2019-01-21perf tools: Handle PERF_RECORD_KSYMBOLSong Liu1-0/+21
2018-12-17perf tools: Allow specifying proc-map-timeout in config fileMark Drayton1-19/+13
2018-12-17perf tools: Use fallback for sample_addr_correlates_sym() casesAdrian Hunter1-1/+1
2018-12-17perf thread: Add fallback functions for cases where cpumode is insufficientAdrian Hunter1-0/+27
2018-10-31perf tools: Don't clone maps from parent when synthesizing forksDavid Miller1-0/+1
2018-10-17perf tools: Stop fallbacking to kallsyms for vdso symbols lookupArnaldo Carvalho de Melo1-19/+2
2018-10-16perf cpu_map: Align cpu map synthesized events properly.David Miller1-0/+1
2018-08-08perf map: Synthesize maps only for thread group leaderKonstantin Khlebnikov1-3/+10
2018-05-23perf machine: Synthesize and process mmap events for x86 PTI entry trampolinesAdrian Hunter1-7/+27
2018-05-22perf machine: Allow for extra kernel mapsAdrian Hunter1-1/+1
2018-04-27perf symbols: Unify symbol mapsArnaldo Carvalho de Melo1-10/+3
2018-04-26perf thread: Make thread__find_map() search all mapsArnaldo Carvalho de Melo1-8/+11
2018-04-26perf thread: Ditch __thread__find_symbol()Arnaldo Carvalho de Melo1-4/+4
2018-04-26perf tools: Use kallsyms__is_function()Arnaldo Carvalho de Melo1-1/+1
2018-04-26perf map: Shorten map_groups__find() signatureArnaldo Carvalho de Melo1-1/+1
2018-04-26perf machine: Introduce machine__kernel_maps()Arnaldo Carvalho de Melo1-2/+1
2018-04-26perf thread: Make thread__find_symbol() return the symbol searchedArnaldo Carvalho de Melo1-5/+5
2018-04-26perf thread: Make thread__find_map() return the mapArnaldo Carvalho de Melo1-8/+8
2018-04-26perf thread: Introduce thread__find_symbol()Arnaldo Carvalho de Melo1-3/+3
2018-04-26perf thread: Introduce thread__find_map()Arnaldo Carvalho de Melo1-9/+9
2018-04-17perf report: Extend raw dump (-D) out with switch out event typeAlexey Budankov1-1/+3
2018-02-16perf tools: Do not create kernel maps in sample__resolve()Jiri Olsa1-11/+0
2018-02-16perf machine: Move kernel mmap name into struct machineJiri Olsa1-4/+1
2018-01-10perf script: Add support to display lost eventsJiri Olsa1-0/+8
2017-11-07Merge branch 'linus' into perf/core, to fix conflictsIngo Molnar1-0/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-25perf report: Use srcline from callchain for hist entriesMilian Wolff1-0/+1
2017-10-03perf top: Add option to set the number of thread for event synthesizeKan Liang1-1/+4
2017-10-03perf top: Implement multithreading for perf_event__synthesize_threadsKan Liang1-31/+129
2017-09-13perf tools: Make copyfile_offset() staticArnaldo Carvalho de Melo1-0/+1
2017-09-13perf tools: Use scandir() to replace readdir()Kan Liang1-20/+25
2017-07-18perf tools: Add feature header record to pipe-modeDavid Carrillo-Cisneros1-0/+1
2017-05-02perf symbols: Accept symbols starting at address 0Arnaldo Carvalho de Melo1-4/+5
2017-04-25perf tools: Move event prototypes from util.h to event.hArnaldo Carvalho de Melo1-0/+1
2017-04-24perf tools: Fix the code to strip command nameJiri Olsa1-1/+8
2017-04-24perf tools: Remove string.h, unistd.h and sys/stat.h from util.hArnaldo Carvalho de Melo1-0/+3
2017-04-19perf tools: Remove include dirent.h from util.hArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Include errno.h where neededArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Move extra string util functions to util/string2.hArnaldo Carvalho de Melo1-1/+1
2017-04-19perf tools: Move sane ctype stuff from util.h to sane_ctype.hArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Including missing inttypes.h headerArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Add include <linux/kernel.h> where ARRAY_SIZE() is usedArnaldo Carvalho de Melo1-0/+1
2017-04-13Revert "perf tools: Fix include of linux/mman.h"David Carrillo-Cisneros1-1/+1
2017-04-11perf tools: Refactor the code to strip command name with {l,r}trim()Taeung Song1-9/+2
2017-03-17perf tools: Handle partial AUX records and print a warningAlexander Shishkin1-2/+3
2017-03-15perf tools: Make perf_event__synthesize_mmap_events() scaleStephane Eranian1-2/+2
2017-03-14perf record: Synthesize namespace events for current processesHari Bathini1-6/+88
2017-03-14perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related infoHari Bathini1-0/+56
2017-02-08perf tools: Fix include of linux/mman.hArnaldo Carvalho de Melo1-1/+1
2016-09-28perf tools: Fix MMAP event synthesis broken by MAP_HUGETLB changeAdrian Hunter1-1/+2
2016-09-13perf tools: Do hugetlb handling in more systemsArnaldo Carvalho de Melo1-5/+2
2016-09-08perf record: Mark MAP_HUGETLB when synthesizing mmap eventsWang Nan1-0/+11
2016-09-05perf symbols: Remove symbol_filter_t machineryArnaldo Carvalho de Melo1-4/+4
2016-09-05perf machine: Remove machine->symbol_filter and friendsArnaldo Carvalho de Melo1-5/+3
2016-06-30perf tools: Change cpu_map__fprintf outputJiri Olsa1-1/+1
2016-05-27perf record: Fix crash when kptr is restrictedWang Nan1-0/+2
2016-04-08perf tools: Use readdir() instead of deprecated readdir_r()Arnaldo Carvalho de Melo1-6/+6
2016-03-31perf tools: Add time conversion eventAdrian Hunter1-0/+1
2016-03-29perf tools: Add missing initialization of perf_sample.cpumode in synthesized ...Arnaldo Carvalho de Melo1-7/+16
2016-03-23perf thread: Rename perf_event__preprocess_sample_addr to thread__resolveArnaldo Carvalho de Melo1-4/+2
2016-03-23perf machine: Rename perf_event__preprocess_sample to machine__resolveArnaldo Carvalho de Melo1-4/+2
2016-03-23perf tools: Add cpumode to struct perf_sampleArnaldo Carvalho de Melo1-9/+6
2016-02-05perf tools: handle spaces in file names obtained from /proc/pid/mapsMarcin Ĺšlusarz1-1/+1
2016-01-12perf tools: Fix mmap2 event allocation in synthesize codeWang Nan1-2/+2
2015-12-17perf tools: Add event_update user level eventJiri Olsa1-0/+1
2015-12-17perf tools: Add stat round event synthesize functionJiri Olsa1-0/+17
2015-12-17perf tools: Add stat round user level eventJiri Olsa1-0/+1
2015-12-17perf tools: Add stat event synthesize functionJiri Olsa1-0/+22
2015-12-17perf tools: Add stat user level eventJiri Olsa1-0/+1
2015-12-17perf tools: Add stat config event read functionJiri Olsa1-0/+24
2015-12-17perf tools: Add stat config event synthesize functionJiri Olsa1-0/+40
2015-12-17perf tools: Add stat config user level eventJiri Olsa1-0/+1
2015-12-17perf cpu_map: Add perf_event__fprintf_cpu_map functionJiri Olsa1-0/+16
2015-12-17perf cpu_map: Add cpu_map event synthesize functionJiri Olsa1-0/+131
2015-12-17perf cpu_map: Add cpu_map user level eventJiri Olsa1-0/+1
2015-12-17perf thread_map: Add perf_event__fprintf_thread_map functionJiri Olsa1-0/+16
2015-12-17perf thread_map: Add thread_map event sythesize functionJiri Olsa1-0/+36
2015-12-17perf thread_map: Add thread_map user level eventJiri Olsa1-0/+1
2015-10-06perf tools: Fix handling read result using a signed variableAndrzej Hajda1-1/+2
2015-09-30perf machine: Add method for common kernel_map(FUNCTION) operationArnaldo Carvalho de Melo1-2/+2
2015-09-30perf machine: Use machine__kernel_map() thoroughlyArnaldo Carvalho de Melo1-4/+3
2015-09-28perf tools: Use __map__is_kernel() when synthesizing kernel module mmap recordsArnaldo Carvalho de Melo1-1/+1
2015-09-22perf record: Synthesize COMM event for a command line workloadNamhyung Kim1-1/+1
2015-09-14perf tools: Add processor socket info to hist_entry and addr_locationKan Liang1-0/+8
2015-07-23perf tools: Add new PERF_RECORD_SWITCH eventAdrian Hunter1-0/+28
2015-06-23perf thread_map: Don't access the array entries directlyJiri Olsa1-3/+3
2015-06-19perf tools: Configurable per thread proc map processing time outKan Liang1-13/+23
2015-06-19perf tools: Add time out to force stop proc map processingKan Liang1-0/+18
2015-06-07perf tools: handle PERF_RECORD_LOST_SAMPLESKan Liang1-0/+9
2015-05-27perf tools: Introduce struct mapsArnaldo Carvalho de Melo1-1/+1
2015-05-27perf tools: Use maps__first()/map__next()Arnaldo Carvalho de Melo1-4/+3
2015-05-08perf machine: Protect the machine->threads with a rwlockArnaldo Carvalho de Melo1-0/+15
2015-05-05perf tools: Add support for PERF_RECORD_ITRACE_STARTAdrian Hunter1-0/+18
2015-05-05perf tools: Add support for PERF_RECORD_AUXAdrian Hunter1-0/+21
2015-04-29perf tools: Add a user event for AUX area tracing errorsAdrian Hunter1-0/+1
2015-04-29perf tools: Add user events for AUX area tracingAdrian Hunter1-0/+2
2015-04-10perf tools: Fix error path to do closedir() when synthesizing threadsArnaldo Carvalho de Melo1-8/+9
2015-04-10perf tools: Fix synthesizing fork_event.ppid for non-main threadDavid Ahern1-2/+12
2015-03-31perf tools: Fix ppid for synthesized fork eventsDavid Ahern1-33/+50
2015-03-31perf tools: Refactor comm/tgid lookupDavid Ahern1-28/+44
2015-03-02perf tools: Fix FORK after COMM when synthesizing records for pre-existing th...Arnaldo Carvalho de Melo1-10/+24
2015-02-24perf tools: Print the thread's tid on PERF_RECORD_COMM events when -D is askedArnaldo Carvalho de Melo1-1/+1
2014-10-29perf tools: Add id indexAdrian Hunter1-0/+1
2014-10-29perf tools: A thread's machine can be found via thread->mg->machineArnaldo Carvalho de Melo1-11/+8
2014-09-26perf tools: Fix perf record as non root with kptr_restrict == 1Andi Kleen1-2/+6
2014-08-22perf tools: Add machine__kernel_ip()Adrian Hunter1-3/+3
2014-07-25perf tools: Expose 'addr' functions so they can be reusedAdrian Hunter1-0/+42
2014-07-16perf tools: Fix missing kernel map loadAdrian Hunter1-0/+1
2014-07-16perf script: Display PERF_RECORD_MISC_COMM_EXEC flagAdrian Hunter1-1/+8
2014-06-09Revert "perf: Disable PERF_RECORD_MMAP2 support"Don Zickus1-14/+20
2014-06-09perf tools: Update mmap2 interface with protection and flag bitsDon Zickus1-2/+21
2014-05-12perf tools: Use tid for finding threadNamhyung Kim1-1/+1
2014-04-28perf tools: Allocate thread map_groups's dynamicallyArnaldo Carvalho de Melo1-1/+1
2014-03-18perf tools: Fix memory leak when synthesizing thread recordsNamhyung Kim1-3/+3
2014-03-18perf symbols: Apply all filters to an addr_locationNamhyung Kim1-10/+4
2014-03-18perf symbols: Record the reason for filtering an address_locationNamhyung Kim1-7/+13
2014-03-14perf tools: Speed up thread map generationDon Zickus1-8/+51
2014-03-14perf tools: Fix synthesizing mmaps for threadsDon Zickus1-55/+56
2014-01-31perf record: Get ref_reloc_sym from kernel mapAdrian Hunter1-20/+6
2014-01-31perf tools: Add kallsyms__get_function_start()Adrian Hunter1-3/+15
2014-01-13perf tools: Make perf_event__synthesize_mmap_events globalJiri Olsa1-6/+6
2013-12-23perf tools: Do not synthesize the treads of default guest.Dongsheng Yang1-0/+9
2013-12-23perf tools: Use machine->pid for tgid if machine is guest.Dongsheng Yang1-2/+6
2013-12-23perf tools: Set event->header.misc to PERF_RECORD_MISC_GUEST_USER if machine ...Dongsheng Yang1-1/+4