aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
AgeCommit message (Expand)AuthorFilesLines
13 daysperf trace: Skip internal syscall argumentsNamhyung Kim1-0/+21
2025-10-19perf trace: Don't synthesize mmaps unless callchains are enabledIan Rogers1-1/+3
2025-09-19perf trace: Fix IS_ERR() vs NULL check bugFushuai Wang1-2/+2
2025-09-19perf trace: Add --max-summary optionNamhyung Kim1-1/+9
2025-07-25perf trace: Avoid global perf_env with evsel__envIan Rogers1-9/+3
2025-07-25perf machine: Explicitly pass in host perf_envIan Rogers1-7/+17
2025-07-25perf session: Add accessor for session->header.envIan Rogers1-1/+1
2025-06-26perf trace: Split BPF skel code to util/bpf_trace_augment.cNamhyung Kim1-139/+48
2025-06-24perf trace: Add missed freeing of ordered events and threadIan Rogers1-5/+5
2025-06-24perf trace: Show zero value in STRARRAYNamhyung Kim1-2/+4
2025-06-09perf target: Remove uid from targetIan Rogers1-1/+0
2025-06-09perf trace: Switch user option to use BPF filterIan Rogers1-9/+17
2025-05-29perf trace: Set errpid to false for rseq and set_robust_listAnubhav Shelat1-2/+2
2025-05-28perf trace: Always print return value for syscalls returning a pidAnubhav Shelat1-1/+1
2025-05-13perf trace: Support --summary-mode=cgroupNamhyung Kim1-1/+9
2025-05-08perf trace: Fix leaks of 'struct thread' in set_filter_loop_pids()Namhyung Kim1-0/+3
2025-05-08perf trace: Fix leaks of 'struct thread' in fprintf_sys_enter()Namhyung Kim1-1/+1
2025-05-08perf trace: Free the files.max entry in files->tableIan Rogers1-1/+2
2025-04-28perf trace: Implement syscall summary in BPFNamhyung Kim1-12/+42
2025-03-24perf trace: Fix wrong size to bpf_map__update_elem callThomas Richter1-2/+4
2025-03-20perf trace: Fix evlist memory leakIan Rogers1-2/+6
2025-03-20perf trace: Fix BTF memory leakIan Rogers1-0/+4
2025-03-20perf trace: Make syscall table stableIan Rogers1-34/+53
2025-03-20perf thread: Add support for reading the e_machine type for a threadIan Rogers1-21/+22
2025-03-20perf syscalltbl: Remove struct syscalltblIan Rogers1-42/+64
2025-03-20perf trace: Reorganize syscallsIan Rogers1-65/+132
2025-02-27perf trace: Add missing perf_tool__init()Athira Rajeev1-0/+1
2025-02-12perf sample: Make user_regs and intr_regs optionalIan Rogers1-1/+4
2025-02-12perf trace: Add --summary-mode optionNamhyung Kim1-19/+110
2025-02-12perf trace: Convert syscall_stats to hashmapNamhyung Kim1-29/+86
2025-02-12perf trace: Allocate syscall stats only if summary is onNamhyung Kim1-10/+11
2025-02-05Merge tag 'v6.14-rc1' into perf-tools-nextNamhyung Kim1-1/+5
2025-01-28perf trace: Fix runtime error of index out of boundsHoward Chu1-1/+5
2025-01-24perf trace: Fix return value of trace__fprintf_tp_fieldsBenjamin Peterson1-1/+1
2025-01-10perf trace: Fix unaligned access for augmented argsNamhyung Kim1-4/+17
2025-01-10perf tools: Remove dependency on libauditCharlie Jenkins1-30/+0
2024-12-18perf env: Move arch errno function to only use in envIan Rogers1-1/+0
2024-12-09perf evsel: Add/use accessor for tp_formatIan Rogers1-23/+56
2024-11-14perf trace: Avoid garbage when not printing a syscall's argumentsBenjamin Peterson1-2/+3
2024-11-14perf trace: Do not lose last events in a raceBenjamin Peterson1-7/+2
2024-11-14perf trace: Fix tracing itself, creating feedback loopsHoward Chu1-0/+3
2024-11-08perf build: Include libtraceevent headers directly indicated by pkg-configYicong Yang1-1/+1
2024-11-05perf trace: avoid garbage when not printing a trace event's argumentsBenjamin Peterson1-1/+1
2024-11-03Merge 'origin/master' into perf-tools-nextNamhyung Kim1-1/+1
2024-10-17perf color: Add printf format checking and resolve issuesIan Rogers1-1/+1
2024-10-17perf trace: The return from 'write' isn't a pidArnaldo Carvalho de Melo1-1/+1
2024-10-02perf trace: Keep exited threads for summaryMichael Petlan1-0/+4
2024-09-11perf trace: Mark the 'head' arg in the set_robust_list syscall as coming from...perf-tools-for-v6.12-1-2024-09-19Arnaldo Carvalho de Melo1-0/+2
2024-09-11perf trace: Mark the 'rseq' arg in the rseq syscall as coming from user spaceArnaldo Carvalho de Melo1-0/+2
2024-09-11perf trace: If a syscall arg is marked as 'const', assume it is coming _from_...Arnaldo Carvalho de Melo1-1/+4
2024-09-10perf trace: Mark the rlim arg in the prlimit64 and setrlimit syscalls as comi...Arnaldo Carvalho de Melo1-2/+4
2024-09-10perf trace: Support collecting 'union's with the BPF augmenterArnaldo Carvalho de Melo1-8/+10
2024-09-10perf trace: Add --force-btf for debuggingHoward Chu1-1/+6
2024-09-10perf trace: Pretty print buffer dataHoward Chu1-0/+33
2024-09-10perf trace: Pretty print struct dataHoward Chu1-5/+60
2024-09-10perf trace: Add trace__bpf_sys_enter_beauty_map() to prepare for fetching dat...Howard Chu1-0/+110
2024-09-10perf trace: Mark bpf's attr as from_userArnaldo Carvalho de Melo1-1/+2
2024-09-09perf trace: Introduce SCA_TIMESPEC_FROM_USER() to set .from_user = trueArnaldo Carvalho de Melo1-2/+2
2024-09-09perf trace: Introduce SCA_SOCKADDR_FROM_USER() to set .from_user = trueArnaldo Carvalho de Melo1-3/+3
2024-09-09perf trace: Introduce SCA_PERF_ATTR_FROM_USER() to set .from_user = trueArnaldo Carvalho de Melo1-1/+1
2024-09-09perf trace: Mark which syscall arguments go from user space to kernel spaceArnaldo Carvalho de Melo1-14/+27
2024-08-28perf trace: Pass the richer 'struct syscall_arg' pointer to trace__btf_scnpri...Arnaldo Carvalho de Melo1-4/+6
2024-08-12perf tool: Constify tool pointersIan Rogers1-2/+2
2024-08-01perf bpf-filter: Pass 'target' to perf_bpf_filter__prepare()Namhyung Kim1-1/+1
2024-07-31perf trace: Remove arg_fmt->is_enum, we can get that from the BTF typeArnaldo Carvalho de Melo1-46/+55
2024-07-31perf trace: Introduce trace__btf_scnprintf()Arnaldo Carvalho de Melo1-22/+27
2024-07-31perf trace: Filter enum arguments with enum namesHoward Chu1-6/+56
2024-07-31perf trace: Augment non-syscall tracepoints with enum arguments with BTFHoward Chu1-7/+22
2024-07-31perf trace: BTF-based enum pretty printing for syscall argsHoward Chu1-4/+106
2024-07-12perf trace: Fix iteration of syscall ids in syscalltbl->entriesHoward Chu1-7/+7
2024-07-02Merge remote-tracking branch 'perf-tools' into perf-tools-nextNamhyung Kim1-1/+1
2024-05-29perf trace beauty: Always show mmap prot even though PROT_NONEChangbin Du1-3/+3
2024-05-29perf trace beauty: Always show param if show_zero is setChangbin Du1-22/+7
2024-05-27tools headers UAPI: Sync fcntl.h with the kernel sources to pick F_DUPFD_QUERYArnaldo Carvalho de Melo1-1/+1
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-1/+1
2024-05-04perf trace: Disable syscall augmentation with recordIan Rogers1-0/+5
2024-04-03perf evsel: Use evsel__name_is() helperYang Jihong1-2/+2
2024-03-21perf trace: Fix 'newfstatat'/'fstatat' argument pretty printingArnaldo Carvalho de Melo1-3/+4
2024-03-21perf trace: Beautify the 'flags' arg of unlinkatArnaldo Carvalho de Melo1-1/+3
2024-03-21perf beauty: Introduce faccessat2 flags scnprintf routineArnaldo Carvalho de Melo1-0/+9
2024-03-21perf beauty: Introduce scrape script for various fs syscalls 'flags' argumentsArnaldo Carvalho de Melo1-1/+1
2024-03-21perf trace: Collect sys_nanosleep first argumentArnaldo Carvalho de Melo1-0/+2
2024-03-03perf trace: Ignore thread hashing in summaryIan Rogers1-18/+23
2023-12-04perf env: Introduce perf_env__arch_strerrno()Arnaldo Carvalho de Melo1-4/+2
2023-08-18perf trace: Use heuristic when deciding if a syscall tracepoint "const char *...Arnaldo Carvalho de Melo1-0/+13
2023-08-18perf trace: Use the augmented_raw_syscall BPF skel only for tracing syscallsArnaldo Carvalho de Melo1-2/+6
2023-08-15perf trace: Migrate BPF augmentation to use a skeletonIan Rogers1-64/+95
2023-08-15perf parse-events: Remove BPF event supportIan Rogers1-145/+1
2023-07-20perf trace: Free thread_trace->files tableArnaldo Carvalho de Melo1-0/+14
2023-07-20perf trace: Really free the evsel->priv areaArnaldo Carvalho de Melo1-7/+2
2023-07-20perf trace: Register a thread priv destructorArnaldo Carvalho de Melo1-0/+15
2023-06-12perf callchain: Use pthread keys for tls callchain_cursorIan Rogers1-7/+13
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-3/+7
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-10/+16
2023-06-12perf thread: Make threads rbtree non-invasiveIan Rogers1-1/+1
2023-05-28perf trace: Make some large static arrays const to move it to .data.rel.roIan Rogers1-14/+19
2023-05-15perf parse-events: Add pmu filterIan Rogers1-1/+4
2023-04-12perf trace: Use zfree() to reduce chances of use after freeArnaldo Carvalho de Melo1-4/+4
2023-04-04perf map: Add accessor for dsoIan Rogers1-1/+1
2023-03-13perf record: Reuse target::initial_delayChangbin Du1-4/+4
2023-01-19perf trace: Reduce #ifdefs for TEP_FIELD_IS_RELATIVEIan Rogers1-3/+1
2023-01-19perf tools: Remove HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVEIan Rogers1-1/+1
2023-01-10perf build: Properly guard libbpf includesIan Rogers1-0/+2
2022-12-14perf tools: Use "grep -E" instead of "egrep"Tiezhu Yang1-1/+1
2022-12-14perf tools: Check if libtracevent has TEP_FIELD_IS_RELATIVEArnaldo Carvalho de Melo1-0/+2
2022-12-14perf build: Use libtraceevent from the systemIan Rogers1-1/+4
2022-11-23perf trace: Remove unused bpf map 'syscalls'Leo Yan1-101/+0
2022-11-23perf trace: Handle failure when trace point folder is missedLeo Yan1-7/+10
2022-11-23perf trace: Return error if a system call doesn't existLeo Yan1-2/+2
2022-11-23perf trace: Use macro RAW_SYSCALL_ARGS_NUM to replace numberLeo Yan1-4/+7
2022-11-16perf thread_map: Reduce exposure of libperf internal APIIan Rogers1-2/+2
2022-11-10perf trace: Add augmenter for clock_gettime's rqtp timespec argArnaldo Carvalho de Melo1-0/+2
2022-11-07perf trace: Add BPF augmenter to perf_event_open()'s 'struct perf_event_attr'...Arnaldo Carvalho de Melo1-1/+2
2022-11-03perf trace: Use sig_atomic_t to avoid undefined behaviour in a signal handlerIan Rogers1-2/+2
2022-10-04perf trace: Fix incorrectly parsed hexadecimal value for flags in filterChen Zhongjin1-5/+2
2022-10-04perf trace: Fix show_arg_names not working for tp arg namesChen Zhongjin1-5/+1
2022-10-04perf trace: Use zalloc() to save initialization of syscall_statsShang XiaoJing1-4/+1
2022-08-12perf trace: Fix double word in commentsshaomin Deng1-1/+1
2022-08-02perf parse-events: Break out tracepoint and printingIan Rogers1-0/+1
2022-07-17perf trace: Fix SIGSEGV when processing syscall argsNaveen N. Rao1-0/+2
2022-02-17Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-5/+18
2022-02-16perf trace: Avoid early exit due SIGCHLD from non-workload processesChangbin Du1-5/+18
2022-02-10perf report: Output data file name in raw trace dumpAlexey Bayduraev1-1/+1
2022-01-18Merge tag 'perf-tools-for-v5.17-2022-01-16' of git://git.kernel.org/pub/scm/l...Linus Torvalds1-0/+3
2022-01-16Merge tag 'trace-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds1-0/+2
2022-01-13Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+12
2022-01-10Merge tag '5.17-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-1/+12
2022-01-10Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+1
2022-01-07perf trace: Avoid early exit due to running SIGCHLD handler before it makes s...Jiri Olsa1-1/+1
2021-12-14tools/perf: Stop using bpf_object__find_program_by_title API.Kui-Feng Lee1-1/+12
2021-12-07perf trace: Enable ignore_missing_thread for traceGang Li1-0/+3
2021-12-06tools/perf: Add '__rel_loc' event field parsing supportMasami Hiramatsu1-0/+2
2021-11-12perf trace: Beautify the 'level' argument of setsockoptArnaldo Carvalho de Melo1-0/+2
2021-11-12perf trace: Beautify the 'level' argument of getsockoptArnaldo Carvalho de Melo1-0/+2
2021-11-07perf parse-event: Add init and exit to parse_event_errorIan Rogers1-10/+7
2021-11-07perf parse-events: Rename parse_events_error functionsIan Rogers1-1/+1
2021-09-17perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events durin...Namhyung Kim1-2/+2
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-1/+1
2021-08-02perf trace: Update cmd string table to decode sys_bpf first argWei Li1-1/+9
2021-07-15perf trace: Free strings in trace__parse_events_option()Riccardo Mancini1-0/+3
2021-07-15perf trace: Free syscall tp fields in evsel->privRiccardo Mancini1-1/+16
2021-07-15perf trace: Free syscall->arg_fmtRiccardo Mancini1-1/+15
2021-07-15perf trace: Free malloc'd trace fields on exitRiccardo Mancini1-1/+10
2021-03-06perf trace: Fix race in signal handlingMichael Petlan1-3/+2
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-1/+1
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' sample id lookup methodsArnaldo Carvalho de Melo1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'find' methodsArnaldo Carvalho de Melo1-9/+5
2020-11-30perf evlist: Use the right prefix for 'struct evlist' sample parsing methodsArnaldo Carvalho de Melo1-3/+2
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'filter' methodsArnaldo Carvalho de Melo1-4/+4
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'workload' methodsArnaldo Carvalho de Melo1-4/+3
2020-11-03perf trace: Fix segfault when trying to trace events by cgroupStanislav Ivanichkin1-6/+9
2020-10-13perf trace: Fix off by ones in memset() after realloc() in arches using libauditJiri Slaby1-1/+5
2020-08-04perf record: Extend -D,--delay option with -1 valueAlexey Budankov1-1/+1
2020-06-22perf evlist: Fix the class prefix for 'struct evlist' strerror methodsArnaldo Carvalho de Melo1-2/+2
2020-06-22perf evlist: Fix the class prefix for 'struct evlist' 'add' evsel methodsArnaldo Carvalho de Melo1-2/+1
2020-05-29perf trace: Grow the syscall table as needed when using libauditArnaldo Carvalho de Melo1-1/+27
2020-05-28perf trace: Fix compilation error for make NO_LIBBPF=1 DEBUG=1Jiri Olsa1-20/+34
2020-05-28perf evsel: Rename perf_evsel__new*() to evsel__new*()Arnaldo Carvalho de Melo1-5/+5
2020-05-05perf trace: Rename perf_evsel__*() operating on 'struct evsel *' to evsel__*()Arnaldo Carvalho de Melo1-29/+25
2020-05-05perf evsel: Rename perf_evsel__env() to evsel__env()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename perf_evsel__is_*() to evsel__is*()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename perf_evsel__{str,int}val() and other tracepoint field mete...Arnaldo Carvalho de Melo1-10/+10
2020-05-05perf evsel: Rename perf_evsel__*filter*() to evsel__*filter*()Arnaldo Carvalho de Melo1-4/+3
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-11/+11
2020-05-05perf evsel: Rename perf_evsel__config*() to evsel__config*()Arnaldo Carvalho de Melo1-4/+4
2020-02-11perf trace: Resolve prctl's 'option' arg strings to numbersArnaldo Carvalho de Melo1-1/+3
2019-11-18perf parse: Report initial event parsing errorIan Rogers1-4/+12
2019-10-19perf trace: Use STUL_STRARRAY_FLAGS with mmapArnaldo Carvalho de Melo1-1/+3
2019-10-19perf trace: Wire up strarray__strtoul_flags()Arnaldo Carvalho de Melo1-0/+6
2019-10-19libbeauty: Introduce strarray__strtoul_flags()Arnaldo Carvalho de Melo1-1/+44
2019-10-19perf trace: Use strtoul for the fcntl 'cmd' argumentArnaldo Carvalho de Melo1-1/+2
2019-10-19libbeauty: Introduce syscall_arg__strtoul_strarrays()Arnaldo Carvalho de Melo1-0/+5
2019-10-19perf trace: Pass a syscall_arg to syscall_arg_fmt->strtoul()Arnaldo Carvalho de Melo1-1/+5
2019-10-18perf trace: Honour --max-events in processing syscalls:sys_enter_*Arnaldo Carvalho de Melo1-6/+7
2019-10-18libbeauty: Introduce syscall_arg__strtoul_strarray()Arnaldo Carvalho de Melo1-0/+6
2019-10-18perf trace: Initialize evsel_trace->fmt for syscalls:sys_enter_* tracepointsArnaldo Carvalho de Melo1-0/+23
2019-10-17perf trace: Introduce 'struct evsel__trace' for evsel->priv needsArnaldo Carvalho de Melo1-6/+48
2019-10-17perf trace: Hide evsel->access further, simplify codeArnaldo Carvalho de Melo1-26/+31
2019-10-17perf trace: Introduce accessors to trace specific evsel->privArnaldo Carvalho de Melo1-11/+32
2019-10-17perf trace: Show error message when not finding a field used in a filter expr...Arnaldo Carvalho de Melo1-2/+2
2019-10-15perf trace: Hook the 'vec' tracepoint argument with the x86 IRQ vectors scnpr...Arnaldo Carvalho de Melo1-1/+2
2019-10-15libbeauty: Add a strarray__scnprintf_suffix() methodArnaldo Carvalho de Melo1-0/+14
2019-10-15perf trace: Support tracepoint dynamic char arraysArnaldo Carvalho de Melo1-5/+14
2019-10-15perf trace: Filter own pid to avoid a feedback look in 'perf trace record -a'Arnaldo Carvalho de Melo1-8/+16
2019-10-15perf trace: Introduce --errno-summaryArnaldo Carvalho de Melo1-4/+47
2019-10-15perf trace: Add syscall failure stats to -s/--summary and -S/--with-summaryArnaldo Carvalho de Melo1-24/+34
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-09perf beauty: Introduce strtoul() for x86 MSRsArnaldo Carvalho de Melo1-1/+1
2019-10-09perf trace: Expand strings in filters to integersArnaldo Carvalho de Melo1-0/+130
2019-10-09perf trace: Introduce a strtoul() method for 'struct strarrays'Arnaldo Carvalho de Melo1-0/+28
2019-10-09perf trace: Add a strtoul() method to 'struct syscall_arg_fmt'Arnaldo Carvalho de Melo1-1/+7
2019-10-09perf trace: Introduce --filter for tracepoint eventsArnaldo Carvalho de Melo1-3/+5
2019-10-09perf trace: Associate the "msr" tracepoint arg name with x86_MSR__scnprintf()Arnaldo Carvalho de Melo1-0/+1
2019-10-09perf trace: Allow associating scnprintf routines with well known arg namesArnaldo Carvalho de Melo1-0/+26
2019-10-07perf trace: Allow choosing how to augment the tracepoint argumentsArnaldo Carvalho de Melo1-3/+80