aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/thread.c
AgeCommit message (Expand)AuthorFilesLines
2025-06-11perf thread: Ensure comm_lock held for comm_listIan Rogers1-4/+22
2025-05-31perf callchain: Always populate the addr_location map when adding IPIan Rogers1-2/+6
2025-05-28Revert "perf thread: Ensure comm_lock held for comm_list"Arnaldo Carvalho de Melo1-13/+4
2025-05-21perf thread: Ensure comm_lock held for comm_listIan Rogers1-4/+13
2025-05-08perf trace: Add missing thread__put() in thread__e_machine()Ian Rogers1-0/+1
2025-03-20perf thread: Add support for reading the e_machine type for a threadIan Rogers1-0/+80
2024-08-08perf callchain: Fix stitch LBR memory leaksIan Rogers1-0/+4
2024-05-09perf thread: Fixes to thread__new() related to initializing commIan Rogers1-9/+5
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-2/+2
2024-03-03perf machine: Move machine's threads into its own abstractionIan Rogers1-1/+1
2024-02-12perf maps: Hide maps internalsIan Rogers1-1/+1
2023-12-20perf maps: Rename clone to copy fromIan Rogers1-1/+1
2023-12-20perf maps: Refactor maps__fixup_overlappings()Ian Rogers1-2/+1
2023-12-18perf thread: Use function to add missing maps lockIan Rogers1-18/+17
2023-12-06perf thread: Add missing RC_CHK_EQUALIan Rogers1-1/+1
2023-07-20perf thread: Allow tools to register a thread->priv destructorArnaldo Carvalho de Melo1-0/+13
2023-06-12perf thread: Add reference count checkingIan Rogers1-7/+13
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-3/+10
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-79/+82
2023-06-12perf thread: Make threads rbtree non-invasiveIan Rogers1-3/+0
2023-06-12perf thread: Remove notion of dead threadsIan Rogers1-24/+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-13/+17
2023-04-04perf maps: Add functions to access mapsIan Rogers1-2/+2
2023-04-04perf maps: Remove rb_node from struct mapIan Rogers1-6/+4
2023-03-15perf top: Fix rare segfault in thread__comm_len()liuwenyu1-6/+19
2022-07-20perf tools: Add guest_cpu to hypervisor threadsAdrian Hunter1-0/+1
2020-04-18perf callchain: Stitch LBR call stackKan Liang1-0/+22
2020-04-18perf thread: Save previous sample for LBR stitching approachKan Liang1-0/+1
2020-04-18perf thread: Add a knob for LBR stitch approachKan Liang1-0/+1
2019-11-26perf thread: Rename thread->mg to thread->mapsArnaldo Carvalho de Melo1-15/+15
2019-11-26perf maps: Merge 'struct maps' with 'struct map_groups'Arnaldo Carvalho de Melo1-13/+11
2019-11-06perf maps: Add for_each_entry()/_safe() iteratorsArnaldo Carvalho de Melo1-1/+1
2019-08-31perf dsos: Move the dsos struct and its methods to separate source filesArnaldo Carvalho de Melo1-0/+1
2019-08-29perf tools: Remove perf.h from source files not needing itArnaldo Carvalho de Melo1-1/+0
2019-08-26libperf: Rename the PERF_RECORD_ structs to have a "perf" suffixArnaldo Carvalho de Melo1-2/+2
2019-08-16perf unwind: Fix libunwind when tid != pidJohn Keeping1-4/+3
2019-08-08perf db-export: Fix thread__exec_comm()Adrian Hunter1-1/+11
2019-07-09perf tools: Use list_del_init() more thorouglyArnaldo Carvalho de Melo1-2/+2
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-1/+1
2019-07-08Merge remote-tracking branch 'tip/perf/core' into perf/urgentArnaldo Carvalho de Melo1-6/+6
2019-07-06perf thread: Allow references to thread objects after machine__exit()Arnaldo Carvalho de Melo1-3/+20
2019-05-28perf tools: Remove const from thread read accessorsNamhyung Kim1-6/+6
2019-05-28perf namespace: Protect reading thread's namespaceNamhyung Kim1-2/+13
2019-05-15perf tools: Speed up report for perf compiled with linwunwindJiri Olsa1-1/+2
2019-03-06perf thread: Generalize function to copy from thread addr space from intel-bt...Andi Kleen1-0/+23
2019-02-06perf tools: Add missing include for symbols.hArnaldo Carvalho de Melo1-0/+1
2018-12-17perf tools: Support 'srccode' outputAndi Kleen1-0/+2
2018-10-31perf tools: Don't clone maps from parent when synthesizing forksDavid Miller1-8/+5
2018-04-27perf symbols: Unify symbol mapsArnaldo Carvalho de Melo1-18/+12
2018-04-26perf thread: Remove addr_type arg from thread__find_cpumode_addr_location()Arnaldo Carvalho de Melo1-3/+2
2018-04-26perf thread: Introduce thread__find_symbol()Arnaldo Carvalho de Melo1-1/+1
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-03perf tools: Lock to protect namespaces and comm listKan Liang1-5/+48
2017-09-21perf tools: Provide mutex wrappers for pthreads rwlocksArnaldo Carvalho de Melo1-2/+2
2017-07-18perf symbols: Find symbols in different mount namespaceKrister Johansen1-0/+3
2017-04-19perf tools: Include errno.h where neededArnaldo 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-03-14perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related infoHari Bathini1-2/+42
2017-03-03perf thread: convert thread.refcnt from atomic_t to refcount_tElena Reshetova1-3/+3
2016-10-03perf tools: Experiment with cppcheckArnaldo Carvalho de Melo1-6/+3
2016-07-04perf unwind: Call unwind__prepare_access for forked threadJiri Olsa1-2/+35
2016-07-04perf unwind: Add initialized arg into unwind__prepare_accessJiri Olsa1-1/+1
2016-06-07perf unwind: Check the target platform before assigning unwind methodsHe Kuang1-1/+1
2016-06-07perf unwind: Move unwind__prepare_access from thread_new into thread__insert_mapHe Kuang1-4/+9
2016-05-30perf thread: Adopt get_main_thread from db-export.cAndi Kleen1-0/+11
2016-04-26perf thread: Introduce method to set comm from /proc/pid/selfArnaldo Carvalho de Melo1-0/+19
2016-04-25perf tools: Remove duplicate const qualifierEric Engestrom1-1/+1
2015-12-14perf thread: Fix reference count initial stateArnaldo Carvalho de Melo1-2/+8
2015-08-19perf tools: Avoid deadlock when map_groups are brokenAdrian Hunter1-0/+6
2015-05-27perf tools: Remove redundant initialization of thread linkage membersArnaldo Carvalho de Melo1-2/+0
2015-05-08perf machine: Protect the machine->threads with a rwlockArnaldo Carvalho de Melo1-2/+8
2015-05-08perf tools: Use atomic_t to implement thread__{get,put} refcntArnaldo Carvalho de Melo1-3/+3
2015-03-12perf tools: Remove superfluous thread->comm_set settingJiri Olsa1-1/+0
2015-03-03perf tools: Reference count struct threadArnaldo Carvalho de Melo1-0/+14
2014-11-19perf tools: Only override the default :tid comm entryAdrian Hunter1-3/+2
2014-11-03perf tools: Add a thread stack for synthesizing call chainsAdrian Hunter1-0/+3
2014-10-29perf tools: A thread's machine can be found via thread->mg->machineArnaldo Carvalho de Melo1-3/+1
2014-10-29perf tools: Set thread->mg.machine in all placesArnaldo Carvalho de Melo1-1/+1
2014-10-29perf callchain: Use global caching provided by libunwindNamhyung Kim1-0/+3
2014-10-15perf callchain: Create an address space per threadNamhyung Kim1-0/+6
2014-08-13perf tools: Identify which comms are from execAdrian Hunter1-5/+19
2014-07-23perf tools: Add cpu to struct threadAdrian Hunter1-0/+1
2014-07-17perf tools: Remove verbose from functions prototypesJiri Olsa1-2/+2
2014-07-17perf thread: Allow deletion of a thread with no map groupsAdrian Hunter1-2/+4
2014-07-16perf machine: Fix the value used for unknown pidsAdrian Hunter1-1/+1
2014-04-28perf tools: Share map_groups among threads of the same groupJiri Olsa1-13/+35
2014-04-28perf tools: Reference count map_groups objectsArnaldo Carvalho de Melo1-1/+1
2014-04-28perf tools: Allocate thread map_groups's dynamicallyArnaldo Carvalho de Melo1-6/+12
2014-03-14perf symbols: Introduce thread__find_cpumode_addr_locationArnaldo Carvalho de Melo1-0/+21
2014-01-16perf tools: Do proper comm override error handlingFrederic Weisbecker1-1/+4
2013-12-13perf tools: Fix inverted error verification bug in thread__forkDavid Ahern1-1/+1
2013-11-19perf tools: Tag thread comm as overridenFrederic Weisbecker1-6/+5
2013-11-04perf tools: Get current comm instead of last oneNamhyung Kim1-3/+3
2013-11-04perf tools: Add new COMM infrastructureFrederic Weisbecker1-24/+68
2013-11-04perf tools: Add time argument on COMM settingFrederic Weisbecker1-2/+4
2013-11-04perf tools: Use an accessor to read thread commFrederic Weisbecker1-1/+6
2013-10-23perf tools: Stop using 'self' in some more placesArnaldo Carvalho de Melo1-36/+36
2013-08-27perf tools: Add pid to struct threadAdrian Hunter1-1/+2
2013-07-12perf tools: struct thread has a tid not a pidAdrian Hunter1-5/+5
2013-05-28perf tools: Save parent pid in thread structDavid Ahern1-0/+4
2012-12-09perf machine: Move more machine methods to machine.cArnaldo Carvalho de Melo1-17/+3
2012-10-24Merge branch 'perf/urgent' into perf/coreIngo Molnar1-1/+0
2012-10-22perf tools: do not flush maps on COMM for perf reportLuigi Semenzato1-1/+0
2012-10-06perf machine: Introduce find_thread methodArnaldo Carvalho de Melo1-40/+1
2011-11-28perf session: Move threads to struct machineArnaldo Carvalho de Melo1-3/+3
2011-01-24perf threads: Move thread_map to separate fileArnaldo Carvalho de Melo1-55/+0
2011-01-04perf tools: Refactor all_tids to hold nr and the mapArnaldo Carvalho de Melo1-14/+29
2010-07-30perf tools: Release thread resources on PERF_RECORD_EXITArnaldo Carvalho de Melo1-0/+7
2010-07-01perf tools: Fix find tids routine by excluding "." and ".."Gui Jianfeng1-1/+10
2010-04-02perf symbols: Move more map_groups methods to map.cArnaldo Carvalho de Melo1-167/+2
2010-03-26perf symbols: Move map related routines to map.cArnaldo Carvalho de Melo1-53/+0
2010-03-18perf events: Change perf parameter --pid to process-wide collection instead o...Zhang, Yanmin1-0/+32
2010-03-10perf report: Print the map table just after samples for which no map was foundArnaldo Carvalho de Melo1-3/+3
2010-03-10perf tools: Don't trow away old map slices not overlapped by new mapsArnaldo Carvalho de Melo1-3/+32
2010-02-26perf tools: Flush maps on COMM eventsDavid S. Miller1-4/+30
2010-02-25perf symbols: Improve debugging information about symtab originsArnaldo Carvalho de Melo1-5/+0
2010-02-21perf tools: Don't use parent comm if not set at fork timeArnaldo Carvalho de Melo1-6/+12
2010-02-04perf symbols: Remove perf_session usage in symbols layerArnaldo Carvalho de Melo1-2/+1
2009-12-14perf session: Move kmaps to perf_sessionArnaldo Carvalho de Melo1-1/+2
2009-12-14perf session: Move the global threads list to perf_sessionArnaldo Carvalho de Melo1-12/+10
2009-12-14perf session: Register the idle thread in perf_session__process_eventsArnaldo Carvalho de Melo1-12/+0
2009-12-12perf symbols: Add missing "Variables" entry to map_type__nameArnaldo Carvalho de Melo1-0/+1
2009-12-12perf symbols: Rename kthreads to kmaps, using another abstraction for itArnaldo Carvalho de Melo1-27/+35
2009-11-27perf tools: Consolidate symbol resolving across all toolsArnaldo Carvalho de Melo1-0/+12
2009-11-27perf symbols: Support multiple symtabs in struct threadArnaldo Carvalho de Melo1-26/+89
2009-11-24perf tools: Introduce zalloc() for the common calloc(1, N) caseArnaldo Carvalho de Melo1-1/+1
2009-10-23perf tools: Unify debug messages mechanismsArnaldo Carvalho de Melo1-3/+3
2009-10-23perf tools: Bind callchains to the first sort dimension columnFrederic Weisbecker1-0/+11
2009-10-13perf tools: Move threads & last_match to threads.cArnaldo Carvalho de Melo1-13/+14
2009-10-08perf tools: Fix thread comm resolution in perf schedFrederic Weisbecker1-25/+7
2009-10-08perf tools: Improve thread comm resolution in perf schedFrederic Weisbecker1-7/+25
2009-10-02perf tools: Rewrite and improve support for kernel modulesArnaldo Carvalho de Melo1-17/+17
2009-09-30perf tools: Use rb_tree for mapsArnaldo Carvalho de Melo1-46/+83
2009-09-16perf sched: Add 'perf sched map' scheduling event map printoutIngo Molnar1-1/+1
2009-09-16perf sched: Make idle thread and comm/pid names more consistentIngo Molnar1-1/+1
2009-08-31perf tools: Unify swapper tasks namingFrederic Weisbecker1-1/+1
2009-08-31perf tools: Librarize idle thread registrationFrederic Weisbecker1-0/+13
2009-08-18perf tools: Save partial non-overlapping mapFrederic Weisbecker1-3/+22
2009-08-15perf tools: Factorize the thread code in a dedicated fileFrederic Weisbecker1-0/+143