aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-15perf top: Use evlist__new_default when no events specifiedIan Rogers1-3/+5
2025-07-25perf sort: Use perf_env to set arch sort keys and headerIan Rogers1-11/+11
2025-07-25perf top: Make perf_env locally scopedIan Rogers1-13/+28
2025-07-25perf evlist: Change env variable to sessionIan Rogers1-1/+1
2025-07-25perf session: Add accessor for session->header.envIan Rogers1-2/+3
2025-06-26perf top: populate PMU capabilities data in perf_envThomas Falcon1-0/+8
2025-06-09perf top: Switch user option to use BPF filterIan Rogers1-10/+12
2025-05-14perf evlist: Make uniquifying counter names consistentIan Rogers1-1/+6
2025-04-25perf hist: Remove formats in hierarchy when cancel childrenNamhyung Kim1-1/+1
2025-03-13perf annotate: Pass hist_entry to annotate functionsNamhyung Kim1-1/+1
2025-03-02perf tools: Skip BPF sideband event for userspace profilingNamhyung Kim1-0/+3
2025-02-12perf sample: Make user_regs and intr_regs optionalIan Rogers1-2/+6
2025-01-18perf annotate: Prefer passing evsel to evsel->core.idxIan Rogers1-2/+2
2025-01-08perf top: Don't complain about lack of vmlinux when not resolving some kernel...Arnaldo Carvalho de Melo1-1/+1
2024-08-19perf map: API clean upIan Rogers1-1/+1
2024-08-14perf annotate: Save branch counters for each blockKan Liang1-2/+2
2024-08-12perf tool: Constify tool pointersIan Rogers1-1/+1
2024-08-01perf bpf-filter: Pass 'target' to perf_bpf_filter__prepare()Namhyung Kim1-1/+1
2024-05-30perf top: Allow filters on eventsIan Rogers1-0/+9
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-2/+2
2024-02-12Merge branch 'perf-tools' into perf-tools-nextNamhyung Kim1-1/+1
2024-01-26perf top: Remove needless malloc(0) call that triggers -Walloc-sizeSun Haiyong1-1/+1
2024-01-25perf tools: Add -H short option for --hierarchyNamhyung Kim1-1/+1
2023-12-14perf top: Uniform the event name for the hybrid machineKan Liang1-0/+1
2023-12-14perf top: Use evsel's cpus to replace user_requested_cpusKan Liang1-2/+2
2023-12-07perf annotate: Ensure init/exit for global optionsNamhyung Kim1-4/+4
2023-12-07perf ui/browser/annotate: Use global annotation_optionsNamhyung Kim1-2/+1
2023-12-07perf annotate: Use global annotation_optionsNamhyung Kim1-2/+2
2023-12-07perf top: Convert to the global annotation_optionsNamhyung Kim1-22/+22
2023-12-06perf evsel: Fallback to "task-clock" when not system wideIan Rogers1-1/+1
2023-08-17perf top: Don't pass an ERR_PTR() directly to perf_session__delete()Arnaldo Carvalho de Melo1-0/+1
2023-06-20perf annotation: Switch lock from a mutex to a sharded_mutexIan Rogers1-7/+7
2023-06-12perf top: Add exit routine for main threadIan Rogers1-1/+10
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-2/+4
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-1/+1
2023-05-27perf evlist: Remove __evlist__add_defaultIan Rogers1-4/+6
2023-05-15perf parse-events: Add pmu filterIan Rogers1-1/+4
2023-04-19perf map: Add set_ methods for map->{start,end,pgoff,pgoff,reloc,erange_warne...Arnaldo Carvalho de Melo1-2/+2
2023-04-12perf top: Expand the range of multithreaded phaseHangliang Lai1-2/+2
2023-04-06tools: Rename __fallthrough to fallthroughLiam Howlett1-1/+1
2023-04-04perf map: Add accessor for start and endIan Rogers1-1/+1
2023-04-04perf map: Add accessor for dsoIan Rogers1-4/+7
2023-04-04perf top: Add --branch-history optionAdrian Hunter1-0/+17
2023-04-04perf symbol: Add command line support for addr2line pathIan Rogers1-2/+8
2023-04-04perf annotate: Own objdump_path and disassembler_style stringsIan Rogers1-2/+15
2023-04-04perf annotate: Add init/exit to annotation_options remove defaultIan Rogers1-1/+3
2022-12-14perf evlist: Remove group option.Ian Rogers1-2/+0
2022-11-03perf top: Use sig_atomic_t to avoid undefined behaviour in a signal handlerIan Rogers1-2/+2
2022-10-04perf top: Fix error code in cmd_top()Shang XiaoJing1-0/+3
2022-10-04perf top: Fixes for thread safety analysisIan Rogers1-2/+3
2022-10-04perf top: Update use of pthread mutexIan Rogers1-9/+9
2022-10-04perf annotate: Update use of pthread mutexIan Rogers1-7/+7
2022-10-04perf hist: Update use of pthread mutexIan Rogers1-4/+4
2022-04-01perf evlist: Rename cpus to user_requested_cpusIan Rogers1-1/+1
2022-02-16perf top: Remove redundant 'err' variabletangmeng1-3/+1
2022-02-15perf tui: Only support --tui with slangIan Rogers1-0/+4
2022-02-10perf report: Output data file name in raw trace dumpAlexey Bayduraev1-1/+1
2021-11-07perf tools: Check vmlinux/kallsyms arguments in all toolsJames Clark1-0/+4
2021-09-17perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events durin...Namhyung Kim1-1/+1
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-1/+1
2021-07-09libperf: Move 'leader' from tools/perf to perf_evsel::leaderJiri Olsa1-1/+1
2021-07-09libperf: Move 'idx' from tools/perf to perf_evsel::idxJiri Olsa1-4/+4
2021-06-24perf top: Add cgroup support for perf top (-G)Joshua Martinez1-0/+8
2021-04-29perf top: Use evlist->events_stat to count eventsNamhyung Kim1-12/+8
2021-03-23perf tools: Fix various typos in commentsIngo Molnar1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' mmap pages parsing methodArnaldo Carvalho de Melo1-2/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' event attribute config ...Arnaldo Carvalho de Melo1-2/+2
2020-11-30perf evlist: Use the right prefix for 'struct evlist' create maps methodsArnaldo Carvalho de Melo1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' browser methodsArnaldo Carvalho de Melo1-6/+3
2020-11-30perf evlist: Use the right prefix for 'struct evlist' sample id lookup methodsArnaldo Carvalho de Melo1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' sample parsing methodsArnaldo Carvalho de Melo1-2/+2
2020-11-30perf evlist: Use the right prefix for 'struct evlist' sideband thread methodsArnaldo Carvalho de Melo1-2/+2
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'toggle' methodsArnaldo Carvalho de Melo1-3/+3
2020-08-21perf top: Skip side-band event setup if HAVE_LIBBPF_SUPPORT is not setTiezhu Yang1-0/+2
2020-06-22perf evlist: Fix the class prefix for 'struct evlist' 'add' evsel methodsArnaldo Carvalho de Melo1-1/+1
2020-05-29perf tools: Add optional support for libpfm4Stephane Eranian1-0/+6
2020-05-28perf evsel: Rename *perf_evsel__get_config_term() & friends to evsel__env()Arnaldo Carvalho de Melo1-2/+2
2020-05-28perf evsel: Rename perf_evsel__resort*() to evsel__resort*()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename perf_evsel__group_idx() to evsel__group_idx()Arnaldo Carvalho de Melo1-2/+1
2020-05-05perf evsel: Rename perf_evsel__fallback() to evsel__fallback()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename perf_evsel__is_*() to evsel__is*()Arnaldo Carvalho de Melo1-2/+1
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-4/+4
2020-05-05perf bpf: Decouple creating the evlist from adding the SB eventArnaldo Carvalho de Melo1-2/+13
2020-05-05perf top: Move sb_evlist to 'struct perf_top'Arnaldo Carvalho de Melo1-4/+3
2020-04-18perf top: Add option to enable the LBR stitching approachKan Liang1-0/+11
2020-04-03perf top: Support hotkey to change sort orderJin Yao1-2/+9
2020-04-03perf top: Support --group-sort-idx to change the sort orderJin Yao1-0/+4
2020-04-03perf top: Add --all-cgroups optionNamhyung Kim1-0/+15
2020-03-06perf top: Fix stdio interface input handling with glibc 2.28+Tommi Rantala1-1/+3
2020-02-27perf annotate: Remove privsize from symbol__annotate() argsRavi Bangoria1-1/+1
2020-02-27perf annotate: Make perf config effectiveRavi Bangoria1-1/+1
2020-01-14perf tools: Support --prefix/--prefix-stripAndi Kleen1-0/+7
2019-12-11perf top: Do not bail out when perf_env__read_cpuid() returns ENOSYSArnaldo Carvalho de Melo1-3/+7
2019-11-12perf annotate: Pass a 'map_symbol' in places receiving a pair of 'map' and 's...Arnaldo Carvalho de Melo1-3/+3
2019-11-07perf hist: Count the total cycles of all samplesJin Yao1-1/+2
2019-10-10libperf: Adopt perf_mmap__read_event() from tools/perfJiri Olsa1-1/+1
2019-10-10libperf: Adopt perf_mmap__read_done() from tools/perfJiri Olsa1-1/+1
2019-10-10libperf: Adopt perf_mmap__read_init() from tools/perfJiri Olsa1-1/+1
2019-10-10libperf: Adopt perf_mmap__consume() function from tools/perfJiri Olsa1-1/+2
2019-10-07perf top: Initialize perf_env->cpuid, needed by the per arch annotation init ...Arnaldo Carvalho de Melo1-0/+11
2019-09-25perf evsel: Move config terms to a separate headerArnaldo Carvalho de Melo1-0/+1
2019-09-25libperf: Add perf_evlist__poll() functionJiri Olsa1-2/+2
2019-09-25libperf: Add perf_evlist__first()/last() functionsJiri Olsa1-5/+5
2019-09-25libperf: Move 'nr_mmaps' from 'struct evlist' to 'struct perf_evlist'Jiri Olsa1-1/+1
2019-09-25perf evlist: Adopt backwards ring buffer state enumArnaldo Carvalho de Melo1-0/+1
2019-09-25perf tools: Rename perf_evlist__mmap() to evlist__mmap()Jiri Olsa1-1/+1
2019-09-25perf tools: Rename 'struct perf_mmap' to 'struct mmap'Jiri Olsa1-1/+1
2019-09-20perf session: Return error code for perf_session__new() function on failureMamatha Inamdar1-2/+3
2019-09-20perf tools: Move event synthesizing routines to separate headerArnaldo Carvalho de Melo1-0/+1
2019-08-31perf tools: Remove needless thread_map.h include directivesArnaldo Carvalho de Melo1-1/+0
2019-08-31perf tools: Remove needless thread.h include directivesArnaldo Carvalho de Melo1-1/+0
2019-08-31perf tools: Remove needless sort.h include directivesArnaldo Carvalho de Melo1-0/+1
2019-08-31perf dsos: Move the dsos struct and its methods to separate source filesArnaldo Carvalho de Melo1-0/+1
2019-08-31perf debug: Remove needless include directives from debug.hArnaldo Carvalho de Melo1-0/+1
2019-08-28perf top: Fix event group with more than two eventsNamhyung Kim1-0/+6
2019-08-28perf top: Decay all events in the evlistNamhyung Kim1-25/+13
2019-08-28perf evlist: Remove needless util.h from evlist.hArnaldo Carvalho de Melo1-0/+1
2019-08-28perf tools: Warn that perf_event_paranoid can restrict kernel symbolsIgor Lubashev1-1/+1
2019-08-15perf top: Add --switch-on/--switch-off eventsArnaldo Carvalho de Melo1-1/+9
2019-08-12perf top: Collapse and resort all evsels in a groupArnaldo Carvalho de Melo1-4/+26
2019-08-12perf top: Set display thread COMM to help with debuggingArnaldo Carvalho de Melo1-0/+4
2019-07-29libperf: Adopt xyarray class from perfJiri Olsa1-1/+0
2019-07-29libperf: Add threads to struct perf_evlistJiri Olsa1-2/+2
2019-07-29libperf: Add cpus to struct perf_evlistJiri Olsa1-1/+1
2019-07-29libperf: Move perf_event_attr field from perf's evsel to libperf's perf_evselJiri Olsa1-1/+1
2019-07-29libperf: Add nr_entries to struct perf_evlistJiri Olsa1-6/+6
2019-07-29perf evlist: Rename perf_evlist__enable() to evlist__enable()Jiri Olsa1-1/+1
2019-07-29perf evsel: Rename perf_evsel__open() to evsel__open()Jiri Olsa1-1/+1
2019-07-29perf evlist: Rename perf_evlist__delete() to evlist__delete()Jiri Olsa1-1/+1
2019-07-29perf evlist: Rename perf_evlist__new() to evlist__new()Jiri Olsa1-1/+1
2019-07-29perf evlist: Rename struct perf_evlist to struct evlistJiri Olsa1-7/+7
2019-07-29perf evsel: Rename struct perf_evsel to struct evselJiri Olsa1-15/+15
2019-07-09perf top: Fix potential NULL pointer dereference detected by the smatch toolLeo Yan1-2/+6
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-06-17Merge branch 'x86/cpu' into perf/core, to pick up dependent changesIngo Molnar1-2/+1
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 251Thomas Gleixner1-2/+1
2019-05-28perf top: Lower message level for failure on synthesizing events for pre-exis...Arnaldo Carvalho de Melo1-1/+1
2019-05-28perf top: Add --namespaces optionNamhyung Kim1-0/+5
2019-04-16perf top: Always sample time to satisfy needs of use of ordered queuingJiri Olsa1-0/+1
2019-03-21perf tools: Save bpf_prog_info and BTF of new BPF programsSong Liu1-0/+3
2019-03-21perf evlist: Introduce side band threadSong Liu1-0/+9
2019-03-19perf top: Add option --no-bpf-eventSong Liu1-0/+1
2019-03-19perf bpf: Make synthesize_bpf_events() receive perf_session pointer instead o...Song Liu1-1/+1
2019-03-19perf top: Fix error handling in cmd_top()Changbin Du1-2/+3
2019-03-19perf top: Delete the evlist before perf_session, fixing heap-use-after-free i...Changbin Du1-23/+19
2019-02-06perf pmu: Remove set_drv_config APIMathieu Poirier1-13/+0
2019-02-06pref tools: Add missing map.h includesArnaldo Carvalho de Melo1-0/+1
2019-01-25perf hist: Use cached rbtreesDavidlohr Bueso1-1/+1
2019-01-21perf top: Synthesize BPF events for pre-existing loaded BPF programsArnaldo Carvalho de Melo1-0/+7
2019-01-08perf top: Lift restriction on using callchains without "sym" in --sortArnaldo Carvalho de Melo1-6/+1
2018-12-17perf top: Move perf_top__reset_sample_counters() to after counts displayJiri Olsa1-4/+0
2018-12-17perf top: Display slow reader warning when droping samplesJiri Olsa1-1/+1
2018-12-17perf top: Save and display the drop count statsJiri Olsa1-1/+4
2018-12-17perf top: Drop samples which are behind the refresh rateJiri Olsa1-3/+22
2018-12-17perf top: Set the 'session_done' volatile variable when exitingJiri Olsa1-3/+9
2018-12-17perf top: Use cond variable instead of a lockJiri Olsa1-7/+17
2018-12-17perf top: Add processing threadJiri Olsa1-61/+141
2018-12-17perf top: Move lost events warning to helplineJiri Olsa1-11/+5
2018-12-17perf top: Save and display the lost count statsJiri Olsa1-0/+27
2018-12-17perf tools: Allow specifying proc-map-timeout in config fileMark Drayton1-3/+1
2018-12-17perf tools: Fix diverse comment typosIngo Molnar1-1/+1
2018-12-17perf top: Allow passing a kallsyms fileArnaldo Carvalho de Melo1-0/+2
2018-11-05perf top: Display the LBR stats in callchain entryJin Yao1-0/+3
2018-10-31perf top: Start display thread earlierDavid Miller1-5/+5
2018-10-31perf top: Do not use overwrite mode by defaultArnaldo Carvalho de Melo1-2/+9
2018-10-30perf top: Allow disabling the overwrite modeArnaldo Carvalho de Melo1-0/+2
2018-07-24perf hists: Clarify callchain disabling when availableArnaldo Carvalho de Melo1-1/+1
2018-06-04perf annotate: Move objdump_path to struct annotation_optionsArnaldo Carvalho de Melo1-3/+4
2018-06-04perf hists browser: Pass annotation_options from tool to browserArnaldo Carvalho de Melo1-1/+2
2018-06-04perf annotate: Move disassembler_style global to annotation_optionsArnaldo Carvalho de Melo1-1/+1
2018-06-04perf annotate: Adopt anotation options from symbol_confArnaldo Carvalho de Melo1-2/+2
2018-06-04perf annotate: Pass annotation_options to symbol__annotate()Arnaldo Carvalho de Melo1-1/+1
2018-06-04perf annotate stdio: Use annotation_options consistentlyArnaldo Carvalho de Melo1-6/+8
2018-06-04perf tools: Ditch the symbol_conf.nr_events globalArnaldo Carvalho de Melo1-2/+0
2018-06-04perf annotate: Replace symbol__alloc_hists() with symbol__hists()Arnaldo Carvalho de Melo1-7/+1
2018-06-04perf annotate: Pass perf_evsel instead of just evsel->idxArnaldo Carvalho de Melo1-3/+3
2018-05-17perf tools: No need to unconditionally read the max_stack sysctlsArnaldo Carvalho de Melo1-1/+1
2018-04-26perf map: Introduce map__has_symbols()Arnaldo Carvalho de Melo1-3/+2
2018-04-26perf dso: Add dso__has_symbols() methodArnaldo Carvalho de Melo1-2/+2
2018-04-26perf top: Use __map__is_kernel()Arnaldo Carvalho de Melo1-2/+2
2018-03-21perf annotate: Move the default annotate options to the libraryArnaldo Carvalho de Melo1-0/+2
2018-03-16perf top: Fix top.call-graph config option readingYisheng Xie1-2/+4
2018-03-08perf mmap: Simplify perf_mmap__read_init()Kan Liang1-2/+1
2018-03-08perf mmap: Simplify perf_mmap__read_event()Kan Liang1-1/+1
2018-03-08perf mmap: Simplify perf_mmap__consume()Kan Liang1-1/+1
2018-03-05perf top: Allow asking for the maximum allowed sample rateArnaldo Carvalho de Melo1-1/+3
2018-02-26perf top: Fix annoying fallback message on older kernelsKan Liang1-1/+1
2018-02-15perf top: Check the latency of perf_top__mmap_read()Kan Liang1-0/+9
2018-02-15perf top: Switch default mode to overwrite modeKan Liang1-9/+25
2018-02-15perf top: Remove lost events checkingKan Liang1-3/+5
2018-02-15perf hists browser: Add parameter to disable lost event warningKan Liang1-1/+1
2018-02-15perf top: Add overwrite fall backKan Liang1-0/+36
2018-02-15perf top: Check per-event overwrite termKan Liang1-0/+73
2017-12-27perf annotate: Get the cpuid from evsel->evlist->env in symbol__annotate()Arnaldo Carvalho de Melo1-1/+1
2017-12-05perf evlist: Remove 'overwrite' parameter from perf_evlist__mmapWang Nan1-1/+1
2017-11-17perf top: Fix crash when annotating symbolJiri Olsa1-1/+2
2017-11-17perf top: Use signal interface for SIGWINCH handlerJiri Olsa1-12/+3
2017-11-17perf top: Fix window dimensions change handlingJiri Olsa1-3/+12
2017-11-16perf top: Ignore kptr_restrict when not sampling the kernelArnaldo Carvalho de Melo1-3/+5