aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench
AgeCommit message (Expand)AuthorFilesLines
11 daysperf build: Move BPF skeleton generation out of Makefile.perfIan Rogers3-1/+46
11 daysperf event: Fix size of synthesized sample with branch stacksIan Rogers1-3/+6
2026-04-08perf tools: Use calloc() where applicableArnaldo Carvalho de Melo2-10/+5
2026-04-08perf tools: Make more global variables staticIan Rogers4-5/+5
2026-02-26perf bench: Add -t/--threads option to perf bench mem mmapNamhyung Kim1-21/+88
2026-01-14perf tools: Switch printf("...%s", strerror(errno)) to printf("...%m")Ian Rogers1-1/+1
2025-11-26perf tools: Don't read build-ids from non-regular filesJames Clark1-1/+1
2025-11-13perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependenciesIan Rogers4-0/+4
2025-10-11Merge tag 'x86_cleanups_for_v6.18_rc1' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+1
2025-10-02perf bench futex: Add missing stdbool.hIan Rogers1-0/+1
2025-09-19perf bench mem: Add mmap() workloadsAnkur Arora2-0/+97
2025-09-19perf bench mem: Refactor mem_optionsAnkur Arora1-6/+13
2025-09-19perf bench mem: Allow chunking on a memory regionAnkur Arora1-2/+18
2025-09-19perf bench mem: Allow mapping of hugepagesAnkur Arora1-4/+29
2025-09-19perf bench mem: Switch from zalloc() to mmap()Ankur Arora1-5/+22
2025-09-19perf bench mem: Pull out init/fini logicAnkur Arora5-34/+81
2025-09-19perf bench mem: Move mem op parameters into a structureAnkur Arora1-28/+34
2025-09-19perf bench mem: Defer type munging of size to floatAnkur Arora1-7/+7
2025-09-19perf bench mem: Remove repetition around time measurementAnkur Arora1-64/+46
2025-09-08x86/asm: Remove code depending on __GCC_ASM_FLAG_OUTPUTS__Uros Bizjak1-1/+1
2025-08-25perf symbol: Add blocking argument to filename__read_build_idIan Rogers1-1/+1
2025-08-01Merge tag 'perf-tools-for-v6.17-2025-08-01' of git://git.kernel.org/pub/scm/l...Linus Torvalds3-24/+41
2025-07-25perf bench synthesize: Avoid use of global perf_envIan Rogers1-8/+19
2025-07-25perf build-id: Ensure struct build_id is empty before useIan Rogers1-1/+1
2025-07-11perf bench futex: Remove support for IMMUTABLESebastian Andrzej Siewior7-22/+5
2025-06-22Merge tag 'v6.16-rc3' into perf-tools-nextNamhyung Kim2-2/+8
2025-06-17perf bench futex: Fix prctl include in musl libcArnaldo Carvalho de Melo2-2/+8
2025-06-09perf bench evlist-open-close: Switch user option to use BPF filterIan Rogers1-15/+21
2025-06-03Merge tag 'perf-tools-for-v6.16-1-2025-06-03' of git://git.kernel.org/pub/scm...Linus Torvalds1-19/+23
2025-05-21tools headers: Synchronize prctl.h ABI headerSebastian Andrzej Siewior1-1/+3
2025-05-03tools/perf: Allow to select the number of hash bucketsSebastian Andrzej Siewior8-1/+101
2025-04-25perf bench evlist-open-close: Reduce scope of 2 variablesIan Rogers1-19/+23
2025-03-23perf bench sched pipe: fix enforced blocking reads in worker_threadDirk Gouders1-11/+4
2025-03-05perf bench: Fix perf bench syscall loop countThomas Richter1-9/+13
2025-01-18perf bench: Fix undefined behavior in cmpworker()Kuan-Wei Chiu1-1/+6
2024-12-18perf bench: Remove reference to cmd_injectIan Rogers1-6/+7
2024-11-16perf header: Move is_cpu_online to numa benchIan Rogers1-0/+53
2024-10-21perf tools: sched-pipe bench: add (-n) nonblocking benchmarkBrian Geffon1-7/+36
2024-08-12perf tool: Constify tool pointersIan Rogers1-1/+1
2024-06-26perf bench: Make bench its own libraryIan Rogers1-23/+23
2024-06-13tools/perf: Fix timing issue with parallel threads in perf bench wake-up-para...Athira Rajeev1-1/+1
2024-06-13tools/perf: Fix perf bench epoll to enable the run when some CPU's are offlineAthira Rajeev2-2/+2
2024-06-13tools/perf: Fix perf bench futex to enable the run when some CPU's are offlineAthira Rajeev5-5/+5
2024-05-07perf bench internals inject-build-id: Fix trap divide when collecting just on...He Zhe1-1/+1
2024-04-12perf bench uprobe: Add uretprobe variant of uprobe benchmarksIan Rogers2-3/+19
2024-04-12perf bench uprobe: Remove lib64 from libc.so.6 binary pathIan Rogers1-1/+1
2023-12-12libperf cpumap: Replace usage of perf_cpu_map__new(NULL) with perf_cpu_map__n...Ian Rogers7-7/+7
2023-12-05perf bench sched-seccomp-notify: Fix spelling mistake "synchronious" -> "sync...Colin Ian King1-1/+1
2023-10-25perf bench sched pipe: Add -G/--cgroups optionNamhyung Kim1-4/+128
2023-10-12perf bench uprobe: Fix potential use of memory after freeIan Rogers1-0/+1
2023-10-10Merge tag 'perf-tools-fixes-for-v6.6-1-2023-09-25' into perf-tools-nextArnaldo Carvalho de Melo1-1/+1
2023-09-26perf bench messaging: Kill child processes when exit abnormally in process modeYang Jihong1-3/+20
2023-09-26perf bench messaging: Store chlid process pid when creating worker for proces...Yang Jihong1-20/+27
2023-09-26perf bench messaging: Factor out create_worker()Yang Jihong1-24/+26
2023-09-26perf bench messaging: Fix coding style issues for sched-messagingYang Jihong1-5/+5
2023-09-13perf bench sched-seccomp-notify: Use the tools copy of seccomp.h UAPIArnaldo Carvalho de Melo1-1/+1
2023-09-09Merge tag 'perf-tools-for-v6.6-1-2023-09-05' of git://git.kernel.org/pub/scm/...Linus Torvalds5-9/+225
2023-08-24perf pmu: Abstract alias/event structIan Rogers1-6/+2
2023-08-23perf bench breakpoint: Skip run if no breakpoints availableKajol Jain1-3/+21
2023-07-20perf bench uprobe trace_printk: Add entry attaching an BPF program that does ...Arnaldo Carvalho de Melo2-11/+29
2023-07-20perf bench uprobe empty: Add entry attaching an empty BPF programArnaldo Carvalho de Melo2-3/+73
2023-07-20perf bench uprobe: Show diff to previousArnaldo Carvalho de Melo1-5/+16
2023-07-20perf bench uprobe: Print diff to baselineArnaldo Carvalho de Melo1-3/+24
2023-07-20perf bench uprobe: Add benchmark to test uprobe overheadArnaldo Carvalho de Melo3-0/+82
2023-07-17perf/benchmark: add a new benchmark for seccom_unotifyAndrei Vagin3-0/+180
2023-06-12perf bench sched messaging: Free contexts on exitIan Rogers1-1/+17
2023-06-12perf bench futex: Avoid memory leaks from pthread_attrIan Rogers4-26/+29
2023-06-12perf bench epoll: Fix missing frees/puts on the exit pathIan Rogers2-0/+10
2023-05-27perf pmus: Allow just core PMU scanningIan Rogers1-19/+27
2023-05-27perf pmu: Separate pmu and pmusIan Rogers1-5/+5
2023-05-27perf pmus: Prefer perf_pmu__scan over perf_pmus__for_each_pmuIan Rogers1-4/+2
2023-05-17tools headers: Update the copy of x86's mem{cpy,set}_64.S used in 'perf bench'Arnaldo Carvalho de Melo4-10/+2
2023-04-12perf bench inject-buildid: Use zfree() to reduce chances of use after freeArnaldo Carvalho de Melo1-1/+2
2023-04-04perf bench: Add pmu-scan benchmarkNamhyung Kim3-0/+186
2023-04-04perf bench numa: Fix type of loop iterator in do_work, it should be 'long'Andreas Herrmann1-1/+1
2023-04-04perf bench: Avoid NDEBUG warningIan Rogers1-2/+6
2023-04-04perf bench syscall: Add fork syscall benchmarkTiezhu Yang2-0/+36
2023-02-02perf bench syscall: Add execve syscall benchmarkTiezhu Yang2-0/+37
2023-02-02perf bench syscall: Add getpgid syscall benchmarkTiezhu Yang2-0/+12
2023-02-02perf bench syscall: Introduce bench_syscall_common()Tiezhu Yang1-4/+25
2022-12-20Merge tag 'parisc-for-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-12/+0
2022-12-17parisc: Align parisc MADV_XXX constants with all other architecturesHelge Deller1-12/+0
2022-12-05perf tools: Use dedicated non-atomic clear/set bit helpersSean Christopherson1-1/+1
2022-10-31perf tools: Move 'struct perf_sample' to a separate header file to disentangl...Arnaldo Carvalho de Melo1-1/+1
2022-10-27perf tools: Make quiet mode consistent between toolsJames Clark1-4/+5
2022-10-04perf bench: Update use of pthread mutex/condIan Rogers8-171/+153
2022-05-23Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-1/+1
2022-05-21perf bench numa: Address compiler error on s390Thomas Richter1-1/+1
2022-05-16perf bench breakpoint: Fix build on 32-bit archesArnaldo Carvalho de Melo1-1/+1
2022-05-16Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-0/+2
2022-05-13perf bench: Add breakpoint benchmarksDmitry Vyukov3-0/+247
2022-05-08perf bench: Fix two numa NDEBUG warningsIan Rogers1-0/+2
2022-04-14perf bench: Fix numa bench to fix usage of affinity for machines with #CPUs > 1KAthira Rajeev1-33/+95
2022-04-14perf bench: Fix numa testcase to check if CPU used to bind task is onlineAthira Rajeev1-2/+6
2022-04-09perf bench: Fix epoll bench to correct usage of affinity for machines with #C...Athira Rajeev2-12/+38
2022-04-09perf bench: Fix futex bench to correct usage of affinity for machines with #C...Athira Rajeev5-28/+83
2022-04-01perf evlist: Rename cpus to user_requested_cpusIan Rogers1-1/+1
2022-03-12perf bench: Fix NULL check against wrong variableWeiguo Li1-1/+1
2022-01-22perf cpumap: Migrate to libperf cpumap apiIan Rogers8-9/+9
2022-01-12perf cpumap: Give CPUs their own typeIan Rogers7-7/+7
2021-12-06Revert "perf bench: Fix two memory leaks detected with ASan"Jiri Olsa1-4/+0
2021-11-18perf bench: Fix two memory leaks detected with ASanSohaib Mohamed1-0/+4
2021-11-13perf bench futex: Fix memory leak of perf_cpu_map__new()Sohaib Mohamed4-0/+4
2021-11-07perf parse-event: Add init and exit to parse_event_errorIan Rogers1-2/+4
2021-11-07perf parse-events: Rename parse_events_error functionsIan Rogers1-1/+1
2021-11-01Revert "perf bench futex: Add support for 32-bit systems with 64-bit time_t"Arnaldo Carvalho de Melo1-40/+3
2021-10-27perf bench futex: Add support for 32-bit systems with 64-bit time_tAlistair Francis1-3/+40
2021-10-27perf bench futex: Call the futex syscall from a functionAlistair Francis1-17/+26
2021-10-08perf test evlist-open-close: Use inline func to convert timeval to usecRiccardo Mancini1-1/+6
2021-09-17perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events durin...Namhyung Kim1-2/+2
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-09-08tools: rename bitmap_alloc() to bitmap_zalloc()Andy Shevchenko1-1/+1
2021-08-30perf bench evlist-open-close: Use PRIu64 with u64 to fix build on 32-bit arch...Arnaldo Carvalho de Melo1-1/+2
2021-08-30perf bench inject-buildid: Handle writen() errorsArnaldo Carvalho de Melo1-22/+30
2021-08-10perf bench: Add benchmark for evlist open/close operationsRiccardo Mancini3-0/+259
2021-08-09perf bench futex, requeue: Add --pi parameterDavidlohr Bueso2-25/+110
2021-08-09perf bench futex, requeue: Robustify futex_wait() handlingDavidlohr Bueso1-1/+14
2021-08-09perf bench futex, requeue: Add --broadcast optionDavidlohr Bueso2-0/+5
2021-08-09perf bench futex: Add --mlockall parameterDavidlohr Bueso6-0/+38
2021-08-09perf bench futex: Remove bogus backslash from commentDavidlohr Bueso1-1/+1
2021-08-09perf bench futex: Group test parameters cleanupDavidlohr Bueso6-137/+162
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-2/+2
2021-03-23perf tools: Fix various typos in commentsIngo Molnar2-3/+3
2021-03-08Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo4-19/+35
2021-03-06perf bench numa: Fix the condition checks for max number of NUMA nodesAthira Rajeev1-13/+29
2021-03-06perf tools: Cast (struct timeval).tv_sec when printingPierre Gondois3-6/+6
2021-03-06perf bench: Fix misspellings using codespellXiong Zhenwu1-1/+1
2021-02-12perf env: Remove unneeded internal/cpumap inclusionsIan Rogers7-7/+0
2020-11-12tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench ...Arnaldo Carvalho de Melo2-0/+6
2020-10-17Merge tag 'perf-tools-for-v5.10-2020-10-15' of git://git.kernel.org/pub/scm/l...Linus Torvalds4-21/+524
2020-10-14perf bench: Use condition variables in numa.Ian Rogers1-21/+46
2020-10-14perf tools: Pass build_id object to filename__read_build_id()Jiri Olsa1-1/+1
2020-10-14perf tools: Use build_id object in dsoJiri Olsa1-2/+2
2020-10-13perf bench: Run inject-build-id with --buildid-all option tooNamhyung Kim1-19/+35
2020-10-13perf bench: Add build-id injection benchmarkNamhyung Kim3-0/+462
2020-10-12Merge tag 'ras_updates_for_v5.10' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds2-25/+0
2020-10-06x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()Dan Williams2-25/+0
2020-09-14perf bench: Fix 2 memory sanitizer warningsIan Rogers1-2/+2
2020-09-03perf bench: The do_run_multi_threaded() function must use IS_ERR(perf_session...YueHaibing1-2/+2
2020-08-14perf bench numa: Remove dead code in parse_nodes_opt()Peng Fan1-2/+0
2020-08-13perf bench numa: Use numa_node_to_cpus() to bind tasks to nodesAlexander Gordeev1-17/+16
2020-08-13perf bench numa: Fix cpumask memory leak in node_has_cpus()Alexander Gordeev1-4/+9
2020-08-13perf bench mem: Always memset source before memcpyVincent Whitchurch1-10/+11
2020-08-12perf bench: Fix a couple of spelling mistakes in options textColin Ian King1-2/+2
2020-08-12perf bench numa: Fix benchmark namesAlexander Gordeev1-18/+17
2020-08-12perf bench numa: Fix number of processes in "2x3-convergence" testAlexander Gordeev1-1/+1
2020-07-31perf bench: Add benchmark of find_next_bitIan Rogers3-0/+137
2020-07-28perf bench: Add basic syscall benchmarkDavidlohr Bueso3-0/+83
2020-05-28perf tools: Replace zero-length array with flexible-arrayGustavo A. R. Silva1-1/+1
2020-05-28tools feature: Rename HAVE_EVENTFD to HAVE_EVENTFD_SUPPORTArnaldo Carvalho de Melo2-4/+4
2020-05-05perf bench: Add kallsyms parsingIan Rogers3-0/+77
2020-04-30perf bench: Add a multi-threaded synthesize benchmarkIan Rogers1-25/+186
2020-04-22perf bench: Fix div-by-zero if runtime is zeroTommi Rantala3-3/+6
2020-04-16perf bench: Add event synthesis benchmarkIan Rogers3-2/+103
2020-03-06perf bench: Clear struct sigaction before sigaction() syscallTommi Rantala7-0/+7
2020-03-06perf bench futex-wake: Restore thread count default to online CPU countTommi Rantala1-2/+2
2020-03-03perf bench: Share some global variables to fix build with gcc 10Arnaldo Carvalho de Melo5-22/+23
2019-09-20perf env: Remove needless cpumap.h headerArnaldo Carvalho de Melo7-7/+8
2019-09-20perf tools: Remove util.h from where it is not neededArnaldo Carvalho de Melo2-2/+0
2019-09-20perf tools: Remove needless builtin.h include directivesArnaldo Carvalho de Melo3-3/+0
2019-08-29perf tools: Remove perf.h from source files not needing itArnaldo Carvalho de Melo3-3/+0
2019-08-29perf tools: Move everything related to sys_perf_event_open() to perf-sys.hArnaldo Carvalho de Melo3-1/+4
2019-08-12Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-2/+4
2019-08-01perf bench numa: Fix cpu0 bindingJiri Olsa1-2/+4
2019-07-29libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functionsJiri Olsa7-7/+13
2019-07-29perf cpu_map: Rename struct cpu_map to struct perf_cpu_mapJiri Olsa7-13/+13
2019-07-09perf tools: Use zfree() where applicableArnaldo Carvalho de Melo2-2/+4
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo2-2/+2
2019-05-02perf bench numa: Add define for RUSAGE_THREAD if not presentArnaldo Carvalho de Melo1-0/+4
2019-03-22Merge tag 'perf-core-for-mingo-5.1-20190321' of git://git.kernel.org/pub/scm/...Thomas Gleixner2-2/+2
2019-03-19perf tools: Fix errors under optimization level '-Og'Changbin Du2-2/+2
2019-03-05tools/: replace open encodings for NUMA_NO_NODEStephen Rothwell1-3/+4
2018-11-21perf bench: Add epoll_ctl(2) benchmarkDavidlohr Bueso3-0/+415
2018-11-21perf bench: Add epoll parallel epoll_wait benchmarkDavidlohr Bueso3-0/+544
2018-11-21perf bench: Move HAVE_PTHREAD_ATTR_SETAFFINITY_NP into bench.hDavidlohr Bueso2-12/+11
2018-07-30tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'Arnaldo Carvalho de Melo3-0/+26
2018-06-25perf bench: Fix numa report output codeJiri Olsa1-2/+3
2018-05-07perf bench numa: Fix typo in optionsYisheng Xie1-1/+1
2017-12-27perf perf: Remove duplicate includesPravin Shedge1-1/+0
2017-12-05perf bench futex: Sync waker threadsJames Yang1-2/+20
2017-11-30perf bench futex: Use cpumapsDavidlohr Bueso5-41/+65
2017-11-28perf bench numa: Fixup discontiguous/sparse numa nodesSatheesh Rajendran1-5/+51
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman17-0/+17
2017-06-19perf tools: Use __maybe_unused consistentlyArnaldo Carvalho de Melo1-1/+1
2017-04-19perf tools: Move extra string util functions to util/string2.hArnaldo Carvalho de Melo1-0/+1
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 Melo10-26/+20
2017-03-06perf bench numa: Add more comment for -c optionJiri Olsa1-1/+2
2017-03-03perf bench futex: Fix build on musl + clangArnaldo Carvalho de Melo5-0/+5
2017-03-03perf bench futex: Use __maybe_unusedArnaldo Carvalho de Melo1-6/+4
2017-02-14perf bench numa: Make sure dprintf() is not definedArnaldo Carvalho de Melo1-0/+1
2017-02-14Revert "perf bench futex: Sanitize numeric parameters"Arnaldo Carvalho de Melo6-20/+0
2017-02-09perf bench numa: Avoid possible truncation when using snprintf()Arnaldo Carvalho de Melo1-3/+3
2016-12-20perf bench futex: Fix lock-pi help stringDavidlohr Bueso1-1/+1
2016-10-25perf bench futex: Sanitize numeric parametersDavidlohr Bueso6-0/+20
2016-10-25perf bench futex: Avoid worker cacheline bouncingDavidlohr Bueso2-7/+8
2016-10-24perf bench futex: Cache align the worker structSebastian Andrzej Siewior1-1/+4
2016-10-24perf bench mem: Move boilerplate memory allocation to the infrastructureArnaldo Carvalho de Melo1-47/+30
2016-08-23perf bench futex: Use NSEC_PER_USECArnaldo Carvalho de Melo3-6/+9