aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-02perf capstone: Move capstone functionality into its own fileIan Rogers1-2/+0
2025-10-01perf script: Enable to present DTL entriesAthira Rajeev1-0/+30
2025-10-01perf tools: Fix duplicated words in documentation and commentsMarkus Heidelberg1-1/+1
2025-07-25perf sample: Remove arch notion of sample parsingIan Rogers1-1/+1
2025-07-25perf evlist: Change env variable to sessionIan Rogers1-1/+1
2025-07-25perf session: Add accessor for session->header.envIan Rogers1-6/+8
2025-07-11perf stat: Move metric list from config to evlistIan Rogers1-2/+1
2025-06-20perf tools: display the new PERF_RECORD_BPF_METADATA eventBlake Jones1-2/+13
2025-05-05perf script: Display off-cpu samples correctlyHoward Chu1-2/+2
2025-03-05perf script: Fix output type for dynamically allocated core PMU'sThomas Falcon1-3/+13
2025-03-05perf script: Add not taken event for branch stackLeo Yan1-7/+13
2025-03-05perf script: Make printing flags reliableLeo Yan1-2/+7
2025-02-12perf sample: Make user_regs and intr_regs optionalIan Rogers1-2/+8
2024-12-20perf script: Cache the output typeArnaldo Carvalho de Melo1-42/+49
2024-12-18perf script: Move perf_sample__sprintf_flags to trace-event-scripting.cIan Rogers1-81/+0
2024-12-18perf script: Move script_fetch_insn to trace-event-scripting.cIan Rogers1-14/+1
2024-12-18perf script: Move script_spec code to trace-event-scripting.cIan Rogers1-64/+3
2024-12-18perf stat: Move stat_config into config.cIan Rogers1-1/+0
2024-12-18perf script: Move find_scripts to browser/scripts.cIan Rogers1-171/+0
2024-12-18perf script: Use openat for directory iterationIan Rogers1-27/+60
2024-12-18perf script: Move scripting_max_stack out of builtinIan Rogers1-2/+0
2024-12-09perf evsel: Add/use accessor for tp_formatIan Rogers1-2/+7
2024-11-08perf build: Include libtraceevent headers directly indicated by pkg-configYicong Yang1-1/+1
2024-10-29perf arm-spe: Correctly set sample flagsGraham Woodward1-0/+1
2024-10-17perf stat: Change color to threshold in print_metricIan Rogers1-3/+3
2024-09-11perf env: Find correct branch counter info on hybridKan Liang1-2/+3
2024-09-03perf script: Minimize "not reaching sample" for '-F +brstackinsn'Andi Kleen1-2/+4
2024-08-14perf script: Add branch countersKan Liang1-7/+62
2024-08-12perf script: Use perf_tool__init()Ian Rogers1-35/+30
2024-08-12perf tool: Constify tool pointersIan Rogers1-21/+20
2024-08-12perf script: add --addr2line optionMartin Liška1-0/+2
2024-05-07perf mem-info: Add reference count checkingIan Rogers1-3/+8
2024-05-07perf mem-info: Move mem-info out of mem-events and symbolIan Rogers1-0/+1
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-4/+4
2024-04-08perf script: Consolidate capstone print functionsAdrian Hunter1-15/+28
2024-04-05perf script: Add capstone support for '-F +brstackdisasm'Andi Kleen1-7/+25
2024-04-05perf script: Support 32bit code under 64bit OS with capstoneAndi Kleen1-4/+5
2024-04-03perf evsel: Use evsel__name_is() helperYang Jihong1-1/+1
2024-03-21perf script: Show also errors for --insn-trace optionAdrian Hunter1-1/+1
2024-02-20perf: script: add raw|disasm arguments to --insn-trace optionChangbin Du1-4/+18
2024-02-20perf: script: add field 'disasm' to display mnemonic instructionsChangbin Du1-1/+14
2024-02-20perf: util: use capstone disasm engine to show assembly instructionsChangbin Du1-5/+3
2024-02-08perf tools: Make it possible to see perf's kernel and module memory mappingsAdrian Hunter1-0/+3
2024-02-07perf script: Print source line for each jump in brstackinsnKan Liang1-3/+15
2023-10-17perf: script: fix missing ',' for fields optionChangbin Du1-1/+1
2023-08-08perf script: Print "cgroup" field on the same line as "comm"Ivan Babrou1-11/+11
2023-06-12perf script: Remove some large stack allocationsIan Rogers1-4/+13
2023-06-12perf callchain: Use pthread keys for tls callchain_cursorIan Rogers1-10/+14
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-31/+46
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-10/+10
2023-06-12perf script: Fix allocation of evsel->priv related to per-event dump filesArnaldo Carvalho de Melo1-8/+8
2023-06-01perf script: Increase PID/TID width for outputNamhyung Kim1-3/+3
2023-05-12perf script: Add new output field 'dsoff' to print dso offsetChangbin Du1-36/+24
2023-05-10perf script: Skip aggregation for stat eventsSandipan Das1-0/+7
2023-04-19perf dso: Fix use before NULL check introduced by map__dso() introductionArnaldo Carvalho de Melo1-4/+3
2023-04-06perf map: Add helper for ->map_ip() and ->unmap_ip()Ian Rogers1-1/+1
2023-04-06perf map: Rename map_ip() and unmap_ip()Ian Rogers1-2/+2
2023-04-04perf map: Add accessor for start and endIan Rogers1-1/+1
2023-04-04perf map: Add accessor for dsoIan Rogers1-8/+11
2023-03-20perf intel-pt: Add event type names UINTR and UIRETAdrian Hunter1-1/+1
2023-03-15perf script: Fix Python support when no libtraceeventAdrian Hunter1-1/+1
2023-02-19perf stat: Remove saved_value/runtime_statIan Rogers1-5/+0
2023-02-19perf stat: Hide runtime_statIan Rogers1-4/+2
2023-02-03perf script: Support Retire LatencyKan Liang1-2/+11
2023-02-02perf script: Show branch speculation infoSandipan Das1-2/+3
2023-02-02perf script: Add 'cgroup' field for outputNamhyung Kim1-1/+21
2023-01-23perf: Various spelling fixesDiederik de Haas1-1/+1
2022-12-20perf tools: Fix usage of the verbose variableYang Jihong1-1/+1
2022-12-14perf build: Use libtraceevent from the systemIan Rogers1-4/+15
2022-10-27perf stat: Allocate evsel->stats->aggr properlyNamhyung Kim1-2/+2
2022-10-06perf script: Add missing fields in usage hintRavi Bangoria1-3/+4
2022-10-06perf tools: Remove special handling of system-wide evselNamhyung Kim1-3/+0
2022-10-04perf branch: Extend branch type classificationAnshuman Khandual1-1/+1
2022-09-08perf script: Fix Cannot print 'iregs' field for hybrid systemsZhengjun Xing1-0/+3
2022-08-31perf script: Skip dummy event attr checkJiri Olsa1-0/+2
2022-08-12perf script: Delete repeated word "from"shaomin Deng1-1/+1
2022-07-20perf script: Add machine_pid and vcpuAdrian Hunter1-0/+11
2022-07-20perf script: Add --dump-unsorted-raw-trace optionAdrian Hunter1-0/+8
2022-06-23perf script: Add some missing event dumpsAdrian Hunter1-0/+6
2022-05-23perf script: Add guest_code supportAdrian Hunter1-1/+4
2022-05-17perf script: Print Intel ptwrite value as a string if it is ASCIIAdrian Hunter1-2/+30
2022-04-22perf script: Always allow field 'data_src' for auxtraceLeo Yan1-1/+1
2022-03-26perf tools: Enhance the matching of sub-commands abbreviationsWei Li1-2/+2
2022-03-22perf script: Add 'brstackinsnlen' for branch stacksKan Liang1-12/+32
2022-03-14Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+1
2022-03-07perf script: Output branch sample typeJames Clark1-2/+3
2022-03-07perf script: Refactor branch stack printingJames Clark1-15/+12
2022-02-22perf script: Fix error when printing 'weight' fieldGerman Gomez1-1/+1
2022-02-15perf script: Display new D (Intr Disabled) and t (Intr Toggle) flagsAdrian Hunter1-8/+16
2022-02-15perf script: Display Intel PT iflag synthesized eventAdrian Hunter1-0/+15
2022-02-15perf script: Display Intel PT CFE (Control Flow Event) / EVD (Event Data) syn...Adrian Hunter1-0/+39
2022-01-22perf script: Fix printing 'phys_addr' failure issueYao Jin1-1/+1
2022-01-12perf cpumap: Give CPUs their own typeIan Rogers1-2/+3
2022-01-12perf script: Fix flipped index and cpuIan Rogers1-1/+1
2022-01-12perf script: Use for each cpu to aid readabilityIan Rogers1-4/+3
2022-01-03Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+1
2021-12-28perf script: Fix CPU filtering of a script's switch eventsAdrian Hunter1-1/+1
2021-12-21perf callchain: Enable dwarf_callchain_users on arm64Alexandre Truong1-2/+2
2021-12-21perf script: Use callchain_param_setup() instead of open coded equivalentAlexandre Truong1-10/+1
2021-12-16perf arch: Support register names from all archsGerman Gomez1-8/+10
2021-11-07perf tools: Check vmlinux/kallsyms arguments in all toolsJames Clark1-0/+3
2021-11-01Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-5/+9
2021-10-31perf script: Fix PERF_SAMPLE_WEIGHT_STRUCT supportKan Liang1-1/+1
2021-10-31perf script: Check session->header.env.arch before using itSong Liu1-4/+8
2021-10-28perf script: Support instruction latencyKan Liang1-2/+12
2021-09-18perf script: Fix ip display when type != attr->typeAdrian Hunter1-11/+13
2021-09-03perf script python: Allow reporting the [un]throttle PERF_RECORD_ meta eventStephen Brennan1-0/+13
2021-08-11perf script: Fix unnecessary machine_resolve()Adrian Hunter1-1/+1
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-2/+2
2021-07-15perf script: Fix memory 'threads' and 'cpus' leaks on exitRiccardo Mancini1-0/+7
2021-07-15perf script: Release zstd dataRiccardo Mancini1-0/+1
2021-07-09libperf: Move 'leader' from tools/perf to perf_evsel::leaderJiri Olsa1-4/+5
2021-07-01perf script: Add option to pass arguments to dlfiltersAdrian Hunter1-1/+34
2021-07-01perf script: Add option to list dlfiltersAdrian Hunter1-0/+2
2021-07-01perf script: Add dlfilter__filter_event_early()Adrian Hunter1-8/+18
2021-07-01perf script: Add API for filtering via dynamically loaded shared objectAdrian Hunter1-1/+24
2021-06-22perf script: Share addr_al between functionsAdrian Hunter1-14/+24
2021-06-22perf script: Move filtering before scriptingAdrian Hunter1-6/+6
2021-06-22perf script: Move filter_cpu() earlierAdrian Hunter1-3/+3
2021-06-01perf script: Factor out script_fetch_insn()Adrian Hunter1-2/+8
2021-06-01perf scripting: Add perf_session to scripting_contextAdrian Hunter1-1/+1
2021-05-25perf scripting python: Add auxtrace errorAdrian Hunter1-0/+13
2021-05-25perf script: Factor out perf_sample__sprintf_flags()Adrian Hunter1-10/+18
2021-05-25perf scripting python: Add 'addr_location' for 'addr'Adrian Hunter1-3/+12
2021-05-25perf script: Find script file relative to exec pathAdrian Hunter1-2/+41
2021-03-23perf tools: Fix various typos in commentsIngo Molnar1-2/+2
2021-03-09perf script: Fixup 'struct evsel_script' method prefixArnaldo Carvalho de Melo1-10/+8
2021-02-18perf script: Add branch types for VM-Entry and VM-ExitAdrian Hunter1-0/+2
2021-02-18perf intel-pt: Add PSB eventsAdrian Hunter1-0/+14
2021-02-09perf script: Simplify bool conversionYang Li1-2/+2
2021-02-08perf script: Support filtering by hex addressJin Yao1-0/+2
2021-02-03perf script: Support DSO filter like in other perf toolsJin Yao1-0/+2
2021-01-27Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+17
2021-01-21perf script: Fix overrun issue for dynamically-allocated PMU type numberJin Yao1-1/+17
2021-01-20perf script: Add support for PERF_SAMPLE_CODE_PAGE_SIZEStephane Eranian1-2/+11
2020-12-19perf script: Support data page sizeKan Liang1-2/+15
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' stats methodsArnaldo Carvalho de Melo1-3/+3
2020-09-17perf script: Display negative tid in non-sample eventsAdrian Hunter1-4/+6
2020-08-06perf script: Add 'tod' field to display time of dayJiri Olsa1-33/+98
2020-08-06perf script: Change the 'enum perf_output_field' enumerators to be 64 bitsJiri Olsa1-32/+32
2020-07-10perf script: Show text poke address symbolAdrian Hunter1-2/+2
2020-07-10perf script: Add option --show-text-poke-eventsAdrian Hunter1-0/+19
2020-07-08Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+1
2020-07-06perf intel-pt: Fix displaying PEBS-via-PT with registersAdrian Hunter1-1/+1
2020-06-22perf evlist: Fix the class prefix for 'struct evlist' branch_type methodsArnaldo Carvalho de Melo1-2/+1
2020-06-22perf evlist: Fix the class prefix for 'struct evlist' sample_type methodsArnaldo Carvalho de Melo1-2/+2
2020-06-22perf script: Fixup some evsel/evlist method namesArnaldo Carvalho de Melo1-5/+5
2020-06-17perf script: Initialize zstd_dataMilian Wolff1-0/+3
2020-05-28perf script: Fix --call-trace for Intel PTAdrian Hunter1-4/+15
2020-05-28perf script: Don't force less for non tty output with --xedAndi Kleen1-1/+4
2020-05-28perf tools: Replace zero-length array with flexible-arrayGustavo A. R. Silva1-1/+1
2020-05-28perf script: Enable IP fields for callchainsJiri Olsa1-2/+7
2020-05-28perf callchain: Setup callchain properly in pipe modeJiri Olsa1-2/+12
2020-05-05perf script: Rename perf_evsel__*() operating on 'struct evsel *' to evsel__*()Arnaldo Carvalho de Melo1-34/+19
2020-05-05perf evsel: Rename perf_evsel__is_*() to evsel__is*()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-7/+7
2020-05-05perf evsel: Rename perf_evsel__nr_cpus() to evsel__nr_cpus()Arnaldo Carvalho de Melo1-1/+1
2020-04-30perf script: Remove extraneous newline in perf_sample__fprintf_regs()Stephane Eranian1-2/+0
2020-04-18perf script: Add option to enable the LBR stitching approachKan Liang1-0/+12
2020-04-16perf auxtrace: Add an option to synthesize callchains for regular eventsAdrian Hunter1-1/+1
2020-04-16perf script: Simplify auxiliary event printing functionsAdrian Hunter1-238/+66
2020-04-03perf script: Fix invalid read of directory entry after closedir()Andreas Gerstmayr1-1/+1
2020-04-03perf script: Add --show-cgroup-events optionNamhyung Kim1-0/+41
2020-03-27perf script: Introduce --deltatime optionHagen Paul Pfeifer1-0/+17
2020-03-09perf tools: Add hw_idx in struct branch_stackKan Liang1-33/+37
2019-11-28perf script: Fix invalid LBR/binary mismatch errorAdrian Hunter1-1/+1
2019-11-28perf script: Fix brstackinsn for AUXTRACEAdrian Hunter1-1/+1
2019-11-26perf script: Move map__fprintf_srccode() to near its only userArnaldo Carvalho de Melo1-0/+42
2019-10-15perf script: Fix --reltime with --timeAndi Kleen1-2/+3
2019-10-07perf script: Allow --time with --reltimeAndi Kleen1-5/+0
2019-09-30perf script brstackinsn: Fix recovery from LBR/binary mismatchAndi Kleen1-1/+5
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-2/+4
2019-09-25libperf: Add perf_evlist__first()/last() functionsJiri Olsa1-1/+1
2019-09-25libperf: Move 'system_wide' from 'struct evsel' to 'struct perf_evsel'Jiri Olsa1-1/+1
2019-09-20perf session: Return error code for perf_session__new() function on failureMamatha Inamdar1-4/+5
2019-08-31perf tools: Remove needless evlist.h include directivesArnaldo 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 needless perf.h include directive from headersArnaldo Carvalho de Melo1-0/+1
2019-08-29libperf: Rename the PERF_RECORD_ structs to have a "perf" prefixJiri Olsa1-1/+1
2019-08-28perf evlist: Remove needless util.h from evlist.hArnaldo Carvalho de Melo1-0/+1
2019-08-26perf tool: Rename perf_tool::bpf_event to bpfArnaldo Carvalho de Melo1-2/+2
2019-08-26perf srcline: Add missing srcline.h header to files needing its defsArnaldo Carvalho de Melo1-0/+1
2019-08-26perf record: Move record_opts and other record decls out of perf.hArnaldo Carvalho de Melo1-1/+1
2019-08-22libperf: Add perf_thread_map__nr/perf_thread_map__pid functionsJiri Olsa1-2/+2
2019-08-22perf script: Add missing counts.hArnaldo Carvalho de Melo1-0/+1
2019-08-15perf evswitch: Introduce init() method to set the on/off evsels from the comm...Arnaldo Carvalho de Melo1-18/+3
2019-08-15perf evswitch: Introduce OPTS_EVSWITCH() for cmd line processingArnaldo Carvalho de Melo1-6/+1
2019-08-15perf evswitch: Add the names of on/off eventsArnaldo Carvalho de Melo1-10/+8
2019-08-15perf evswitch: Move switch logic to use in other toolsArnaldo Carvalho de Melo1-21/+2
2019-08-15perf evswitch: Move struct to a separate header to use in other toolsArnaldo Carvalho de Melo1-7/+1
2019-08-15perf script: Allow specifying event to switch off processing of other eventsArnaldo Carvalho de Melo1-3/+28
2019-08-15perf script: Allow showing the --switch-on eventArnaldo Carvalho de Melo1-0/+6
2019-08-15perf script: Allow specifying event to switch on processing of other eventsArnaldo Carvalho de Melo1-0/+26
2019-07-29libperf: Move nr_members from perf's evsel to libperf's perf_evselJiri Olsa1-1/+1
2019-07-29libperf: Add perf_evlist__set_maps() functionJiri Olsa1-1/+2
2019-07-29libperf: Add threads to struct perf_evselJiri Olsa1-2/+2
2019-07-29libperf: Add cpus to struct perf_evselJiri Olsa1-1/+1
2019-07-29libperf: Move perf_event_attr field from perf's evsel to libperf's perf_evselJiri Olsa1-26/+26