aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-01perf sched: Avoid union type punning undefined behaviorIan Rogers1-15/+4
2025-07-25perf session: Add accessor for session->header.envIan Rogers1-3/+5
2025-07-17perf sched timehist: decode process names of processes in zombie stateAnubhav Shelat1-0/+5
2025-07-03perf sched: Fix memory leaks in 'perf sched latency'Namhyung Kim1-3/+24
2025-07-03perf sched: Use RC_CHK_EQUAL() to compare pointersNamhyung Kim1-1/+1
2025-07-03perf sched: Fix memory leaks for evsel->priv in timehistNamhyung Kim1-0/+12
2025-07-03perf sched: Fix thread leaks in 'perf sched timehist'Namhyung Kim1-11/+37
2025-07-03perf sched: Fix memory leaks in 'perf sched map'Namhyung Kim1-11/+20
2025-07-03perf sched: Free thread->priv using priv_destructorNamhyung Kim1-0/+2
2025-07-03perf sched: Make sure it frees the usage stringNamhyung Kim1-12/+13
2024-12-09perf cpumap: Reduce transitive dependencies on libperf MAX_NR_CPUSIan Rogers1-0/+1
2024-10-17perf color: Add printf format checking and resolve issuesIan Rogers1-1/+1
2024-10-14perf sched timehist: Add pre-migration wait time optionMadadi Vineeth Reddy1-39/+59
2024-09-26perf sched replay: Remove unused parts of the codeMadadi Vineeth Reddy1-13/+3
2024-09-04libsubcmd: Don't free the usage stringAditya Gupta1-0/+3
2024-09-03perf sched timehist: Add --prio optionYang Jihong1-1/+73
2024-09-03perf sched timehist: Add --show-prio optionYang Jihong1-7/+84
2024-09-03perf sched timehist: Remove redundant BUG_ON in timehist_sched_change_event()Yang Jihong1-2/+0
2024-09-03perf sched timehist: Skip print non-idle task samples when only show idle eventsYang Jihong1-3/+3
2024-08-30perf sched timehist: Fixed timestamp error when unable to confirm event sched...Yang Jihong1-1/+4
2024-08-16perf sched timehist: Fix missing free of session in perf_sched__timehist()Yang Jihong1-1/+2
2024-08-12perf sched: Use perf_tool__init()Ian Rogers1-9/+7
2024-08-12perf tool: Constify tool pointersIan Rogers1-17/+17
2024-07-12perf sched map: Add --fuzzy-name option for fuzzy matching in task namesMadadi Vineeth Reddy1-7/+13
2024-07-12perf sched map: Add support for multiple task names using CSVMadadi Vineeth Reddy1-5/+27
2024-07-12perf sched map: Add task-name option to filter the output mapMadadi Vineeth Reddy1-36/+111
2024-06-28perf sched replay: Fix -r/--repeat command line option for infinityMadadi Vineeth Reddy1-1/+4
2024-06-25perf: Timehist account sch delay for scheduled out runningFernand Sieber1-1/+4
2024-06-15perf: sched map skips redundant lines with cpu filtersFernand Sieber1-6/+6
2024-05-10perf sched: Rename 'switches' column header to 'count' and add usage descript...Madadi Vineeth Reddy1-1/+1
2024-04-03perf evsel: Use evsel__name_is() helperYang Jihong1-2/+2
2024-04-03perf sched timehist: Fix -g/--call-graph option failureYang Jihong1-2/+5
2024-02-09perf sched: Move curr_pid and cpu_last_switched initialization to perf_sched_...Yang Jihong1-33/+61
2024-02-09perf sched: Move curr_thread initialization to perf_sched__map()Yang Jihong1-7/+8
2024-02-09perf sched: Fix memory leak in perf_sched__map()Yang Jihong1-15/+26
2024-02-09perf sched: Move start_work_mutex and work_done_wait_mutex initialization to ...Yang Jihong1-7/+12
2024-01-22perf sched: Commit to evsel__taskstate() to parse task state infoZe Gao1-36/+10
2024-01-22perf sched: Sync state char array with the kernelZe Gao1-12/+1
2023-10-25libperf rc_check: Add RC_CHK_EQUALIan Rogers1-1/+1
2023-06-12perf sched: Avoid large stack allocationsIan Rogers1-4/+22
2023-06-12perf callchain: Use pthread keys for tls callchain_cursorIan Rogers1-3/+11
2023-06-12perf thread: Add reference count checkingIan Rogers1-2/+2
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-0/+2
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-22/+29
2023-06-12perf thread: Remove notion of dead threadsIan Rogers1-22/+1
2023-04-12perf sched: Fix sched latency analysis incorrection when using 'sched:sched_w...Chunxin Zang1-1/+14
2023-04-10perf util: Move input_name to utilIan Rogers1-1/+1
2022-12-02perf tools: Use dedicated non-atomic clear/set bit helpersSean Christopherson1-1/+1
2022-10-04perf sched: Factor out destroy_tasks()Namhyung Kim1-2/+22
2022-10-04perf sched: Fixes for thread safety analysisIan Rogers1-17/+29
2022-10-04perf sched: Update use of pthread mutexIan Rogers1-35/+32
2022-08-27perf sched: Fix memory leaks in __cmd_record detected with -fsanitize=addressIan Rogers1-5/+19
2022-08-10perf sched latency: Fix subcommand matching errorYang Jihong1-1/+1
2022-03-26perf tools: Enhance the matching of sub-commands abbreviationsWei Li1-2/+2
2022-01-12perf cpumap: Give CPUs their own typeIan Rogers1-29/+36
2022-01-12perf cpumap: Move 'has' function to libperfIan Rogers1-3/+3
2021-11-07perf tools: Check vmlinux/kallsyms arguments in all toolsJames Clark1-0/+4
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-2/+2
2021-07-18perf sched: Fix record failure when CONFIG_SCHEDSTATS is not setYang Jihong1-4/+29
2021-07-14perf sched: Cast PTHREAD_STACK_MIN to int as it may turn into sysconf(__SC_TH...Arnaldo Carvalho de Melo1-1/+1
2021-03-23perf tools: Fix various typos in commentsIngo Molnar1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'find' methodsArnaldo Carvalho de Melo1-4/+2
2020-10-13perf sched: Show start of latency as wellJoel Fernandes (Google)1-10/+14
2020-08-21perf sched timehist: Fix use of CPU list with summary optionDavid Ahern1-1/+5
2020-08-13perf sched: Prefer sched_waking event when it existsDavid Ahern1-3/+29
2020-05-05perf sched: Rename perf_evsel__*() operating on 'struct evsel *' to evsel__*()Arnaldo Carvalho de Melo1-9/+8
2020-05-05perf evsel: Rename perf_evsel__{str,int}val() and other tracepoint field mete...Arnaldo Carvalho de Melo1-29/+28
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-2/+2
2020-01-06perf sched timehist: Add support for filtering on CPUDavid Ahern1-0/+13
2019-11-12perf callchain: Use 'struct map_symbol' in 'struct callchain_cursor_node'Arnaldo Carvalho de Melo1-1/+1
2019-09-25perf evsel: Introduce evsel_fprintf.hArnaldo Carvalho de Melo1-0/+1
2019-09-25perf evsel: Remove need for symbol_conf in evsel_fprintf.cArnaldo Carvalho de Melo1-1/+1
2019-09-20perf session: Return error code for perf_session__new() function on failureMamatha Inamdar1-5/+6
2019-09-20perf sched: Add missing event.h include directiveArnaldo Carvalho de Melo1-0/+1
2019-09-20perf env: Remove needless cpumap.h headerArnaldo Carvalho de Melo1-0/+2
2019-08-31perf tools: Remove needless evlist.h include directivesArnaldo Carvalho de Melo1-1/+1
2019-08-29perf tools: Move everything related to sys_perf_event_open() to perf-sys.hArnaldo Carvalho de Melo1-0/+1
2019-08-26libperf: Add PERF_RECORD_LOST 'struct lost_event' to perf/event.hJiri Olsa1-1/+1
2019-07-29libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functionsJiri Olsa1-2/+2
2019-07-29libperf: Include perf_evlist in evlist objectJiri Olsa1-1/+1
2019-07-29libperf: Include perf_evsel in evsel objectJiri Olsa1-1/+1
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-37/+37
2019-07-29perf tools: Rename struct thread_map to struct perf_thread_mapJiri Olsa1-2/+2
2019-07-29perf cpu_map: Rename struct cpu_map to struct perf_cpu_mapJiri Olsa1-4/+4
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-1/+1
2019-06-25tools perf: Move from sane_ctype.h obtained from git to the Linux's originalArnaldo Carvalho de Melo1-1/+1
2019-06-25perf string: Move 'dots' and 'graph_dotted_line' out of sane_ctype.hArnaldo Carvalho de Melo1-0/+1
2019-02-22perf data: Add global path holderJiri Olsa1-10/+6
2019-01-25perf sched: Use cached rbtreesDavidlohr Bueso1-20/+25
2019-01-21perf tools: Replace automatic const char[] variables by staticsRasmus Villemoes1-1/+1
2018-06-05perf sched: Use sched->show_callchain where appropriateArnaldo Carvalho de Melo1-5/+6
2018-06-05perf evsel: Add has_callchain() helper to make code more compact/clearArnaldo Carvalho de Melo1-2/+1
2018-03-07perf sched map: Re-annotate shortname if thread comm changedChangbin Du1-2/+36
2018-03-07perf sched: Move thread::shortname to thread_runtimeChangbin Du1-40/+55
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-30perf tools: Add struct perf_data_fileJiri Olsa1-6/+10
2017-10-30perf tools: Rename struct perf_data_file to perf_dataJiri Olsa1-4/+4
2017-09-13perf sched timehist: Add pid and tid optionsDavid Ahern1-0/+4
2017-06-27perf tools: Replace error() with pr_err()Arnaldo Carvalho de Melo1-1/+1
2017-04-19perf tools: Include errno.h where neededArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Move sane ctype stuff from util.h to sane_ctype.hArnaldo Carvalho de Melo1-0/+2
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-03-27perf tools: Remove unused 'prefix' from builtin functionsArnaldo Carvalho de Melo1-3/+3
2017-03-14perf sched timehist: Add --next optionBrendan Gregg1-5/+20
2017-03-14perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related infoHari Bathini1-0/+1
2017-02-20perf utils: Check verbose flag properlyNamhyung Kim1-6/+6
2017-02-13perf symbols: No need to check if sym->name is NULLArnaldo Carvalho de Melo1-1/+1
2017-01-17perf sched timehist: Show total wait times for summaryNamhyung Kim1-3/+41
2017-01-17perf sched timehist: Add --state optionNamhyung Kim1-4/+34
2017-01-17perf sched timehist: Account thread wait time separatelyNamhyung Kim1-6/+44
2016-12-27perf sched timehist: Show total scheduling timeNamhyung Kim1-3/+14
2016-12-22perf sched timehist: Fix invalid period calculationNamhyung Kim1-1/+1
2016-12-22perf sched timehist: Remove hardcoded 'comm_width' check at print_summaryNamhyung Kim1-3/+0
2016-12-22perf sched timehist: Enlarge default 'comm_width'Namhyung Kim1-1/+1
2016-12-22perf sched timehist: Honour 'comm_width' when aligning the headersNamhyung Kim1-3/+4
2016-12-15perf sched timehist: Show callchains for idle statNamhyung Kim1-0/+86
2016-12-15perf sched timehist: Add -I/--idle-hist optionNamhyung Kim1-5/+41
2016-12-15perf sched timehist: Skip non-idle events when necessaryNamhyung Kim1-7/+18
2016-12-15perf sched timehist: Save callchain when entering idleNamhyung Kim1-0/+30
2016-12-15perf sched timehist: Introduce struct idle_time_dataNamhyung Kim1-4/+33
2016-12-15perf sched timehist: Split is_idle_sample()Namhyung Kim1-19/+20
2016-12-07perf sched timehist: Cleanup idle_max_cpu handlingNamhyung Kim1-5/+4
2016-12-07perf sched timehist: Handle zero sample->tid properlyNamhyung Kim1-1/+3
2016-12-07perf sched: Cleanup option processingNamhyung Kim1-5/+2
2016-12-07perf sched timehist: Improve error message when analyzing wrong fileDavid Ahern1-1/+5
2016-12-01perf sched timehist: Add option to specify time window of interestDavid Ahern1-6/+45
2016-11-25perf sched timehist: Handle cpu migration eventsDavid Ahern1-2/+95
2016-11-25perf sched timehist: Enlarge max stack depth by 2Namhyung Kim1-1/+1
2016-11-25perf sched timehist: Mark schedule function in callchainsNamhyung Kim1-0/+21
2016-11-25perf callchain: Add option to skip ignore symbol when printing callchainsNamhyung Kim1-1/+2
2016-11-23perf sched timehist: Add -V/--cpu-visual optionDavid Ahern1-2/+42
2016-11-23perf sched timehist: Add call graph optionsDavid Ahern1-6/+82
2016-11-23perf sched timehist: Add -w/--wakeups optionDavid Ahern1-4/+54
2016-11-23perf sched timehist: Add summary optionsDavid Ahern1-6/+160
2016-11-23perf sched timehist: Introduce timehist commandDavid Ahern1-5/+589
2016-10-28perf tools: Introduce timestamp__scnprintf_usec()Namhyung Kim1-3/+7
2016-10-25perf sched map: Always show task comm with -vNamhyung Kim1-1/+1
2016-10-25perf sched map: Apply cpu color when there's an activityNamhyung Kim1-1/+1
2016-10-25perf sched: Make common options cascadingNamhyung Kim1-12/+12
2016-08-23perf sched: Use linux/time64.hArnaldo Carvalho de Melo1-18/+19
2016-07-12tools: Introduce str_error_r()Arnaldo Carvalho de Melo1-1/+1
2016-04-13perf sched map: Display only given cpusJiri Olsa1-0/+23
2016-04-13perf sched map: Color given cpusJiri Olsa1-3/+33
2016-04-13perf sched map: Color given pidsJiri Olsa1-4/+73
2016-04-13perf sched: Use color_fprintf for outputJiri Olsa1-8/+10
2016-04-13perf sched: Add compact display optionJiri Olsa1-6/+56
2015-12-17perf subcmd: Create subcmd libraryJosh Poimboeuf1-1/+1
2015-11-05perf sched latency: Fix thread pid reuse issueJiri Olsa1-2/+3
2015-10-27perf tools: Introduce usage_with_options_msg()Namhyung Kim1-2/+2
2015-05-27perf sched: Add option to merge like comms to lat outputJosef Bacik1-5/+72
2015-05-08perf machine: Protect the machine->threads with a rwlockArnaldo Carvalho de Melo1-26/+56
2015-04-08perf sched replay: Use replay_repeat to calculate the runavg of cpu usage ins...Yunlong Song1-4/+4
2015-04-08perf sched replay: Support using -f to override perf.data file ownershipYunlong Song1-0/+1
2015-04-08perf sched replay: Fix the EMFILE error caused by the limitation of the maxim...Yunlong Song1-5/+26
2015-04-08perf sched replay: Handle the dead halt of sem_wait when create_tasks() fails...Yunlong Song1-1/+3
2015-04-08perf sched replay: Fix the segmentation fault problem caused by pr_err in thr...Yunlong Song1-2/+3
2015-04-08perf sched replay: Realloc the memory of pid_to_task stepwise to adapt to the...Yunlong Song1-1/+6
2015-04-08perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to th...Yunlong Song1-2/+9
2015-04-08perf sched replay: Increase the MAX_PID value to fix assertion failure problemYunlong Song1-1/+1
2015-04-08perf sched replay: Use struct task_desc instead of struct task_task for corre...Yunlong Song1-1/+1
2015-03-11perf ordered_events: Shorten function signaturesArnaldo Carvalho de Melo1-1/+1
2015-03-03perf sched: No need to keep the session aroundArnaldo Carvalho de Melo1-16/+8
2015-03-03perf tools: Reference count struct threadArnaldo Carvalho de Melo1-1/+1
2015-02-22perf evlist: Adopt events_stats from perf_sessionArnaldo Carvalho de Melo1-3/+3
2014-10-09perf sched: Stop updating hists stats, not usedArnaldo Carvalho de Melo1-3/+0
2014-08-15perf sched: Use strerror_r instead of strerrorMasami Hiramatsu1-1/+3
2014-08-13perf tools: Check recorded kernel version when finding vmlinuxNamhyung Kim1-1/+1
2014-08-13perf sched: Move call to symbol__init() after creating sessionNamhyung Kim1-1/+2
2014-08-12perf tools: Rename ordered_samples bool to ordered_eventsJiri Olsa1-1/+1
2014-07-18perf tools: Enable close-on-exec flag on perf file descriptorYann Droneaud1-1/+3
2014-07-16perf machine: Fix the value used for unknown pidsAdrian Hunter1-6/+6
2014-06-01perf tools: Introduce hists__inc_nr_samples()Namhyung Kim1-1/+1
2014-05-16perf sched: Cleanup, remove unused variables in map_switch_event()Dongsheng Yang1-4/+2
2014-05-16perf sched: Remove nr_state_machine_bugs in perf latencyDongsheng Yang1-11/+8
2014-05-12perf tools: Remove usage of trace_sched_wakeup(.success)Peter Zijlstra1-6/+1
2014-05-12perf tools: Clarify the output of perf sched map.Dongsheng1-15/+20
2014-05-12perf tools: Adapt the TASK_STATE_TO_CHAR_STR to new value in kernel space.Dongsheng1-1/+1
2014-05-12perf tools: Add missing event for perf sched record.Dongsheng1-0/+1
2014-04-16perf sched: Introduce --list-cmds for use by scriptsRamkumar Ramachandra1-4/+6
2014-03-18perf sched: Fixup header alignment in 'latency' outputRamkumar Ramachandra1-5/+5
2013-12-27perf tools: Use zfree to help detect use after free bugsArnaldo Carvalho de Melo1-1/+1
2013-11-07perf evsel: Ditch evsel->handler.data fieldArnaldo Carvalho de Melo1-2/+2
2013-11-04perf tools: Use an accessor to read thread commFrederic Weisbecker1-8/+8
2013-10-23perf sched: Optimize build timeAdrian Hunter1-1/+4
2013-10-23perf sched: Make struct perf_sched sched a local variableAdrian Hunter1-21/+20
2013-10-21perf tools: Add data object to handle perf data fileJiri Olsa1-1/+5
2013-08-29perf tools: change machine__findnew_thread() to set thread pidAdrian Hunter1-9/+11
2013-08-12perf sched: Remove sched_process_fork tracepointDavid Ahern1-29/+31
2013-08-12perf sched: Remove sched_process_exit tracepointDavid Ahern1-11/+0
2013-08-12perf sched: Remove thread lookup in sample handlerDavid Ahern1-7/+0
2013-08-12perf sched: Simplify arguments to read_eventsDavid Ahern1-7/+9
2013-07-12perf tools: struct thread has a tid not a pidAdrian Hunter1-6/+6
2013-07-12perf sched: Move struct perf_sched definition out of cmd_sched()Namhyung Kim1-20/+21
2013-07-08perf record: Remove -f/--force optionJiri Olsa1-1/+0
2013-04-01Revert "perf sched: Handle PERF_RECORD_EXIT events"Arnaldo Carvalho de Melo1-1/+0
2013-01-24perf session: There is no need for a per session hists instanceArnaldo Carvalho de Melo1-3/+3
2012-10-29perf tools: Add a global variable "const char *input_name"Feng Tang1-3/+2