aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-01-17 13:09:30 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-01-18 09:24:58 -0300
commitf350ee95498a3fa65c37ed597d9c051c6b2b6974 (patch)
treef6afe1bff5c0fd4725b3967860f94db36aff9595 /tools/perf/scripts/python/bin/stackcollapse-record
parentperf stat: No need to setup affinities when starting a workload (diff)
downloadlinux-f350ee95498a3fa65c37ed597d9c051c6b2b6974.tar.gz
linux-f350ee95498a3fa65c37ed597d9c051c6b2b6974.zip
perf evlist: No need to setup affinities when enabling events for pid targets
When the target is a pid, not started by 'perf stat' we need to enable the events, and in that case there is no need to setup affinities as we use a dummy CPU map, with just one entry set to -1. So stop doing it to avoid this needless call to sched_getaffinity(): # strace -ke sched_getaffinity perf stat -e cycles -p 241957 sleep 1 <SNIP> sched_getaffinity(0, 512, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]) = 8 > /usr/lib64/libc-2.33.so(sched_getaffinity@@GLIBC_2.3.4+0x1a) [0xe6eea] > /var/home/acme/bin/perf(affinity__setup+0x6a) [0x5329ca] > /var/home/acme/bin/perf(__evlist__enable.constprop.0+0x23) [0x4b9693] > /var/home/acme/bin/perf(enable_counters+0x14d) [0x42de5d] > /var/home/acme/bin/perf(cmd_stat+0x2358) [0x4310c8] > /var/home/acme/bin/perf(run_builtin+0x6a) [0x4a2cfa] > /var/home/acme/bin/perf(main+0x612) [0x40f8c2] > /usr/lib64/libc-2.33.so(__libc_start_main+0xd4) [0x27b74] > /var/home/acme/bin/perf(_start+0x2d) [0x40fadd] <SNIP> Acked-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20220117160931.1191712-4-acme@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
rtions'>+1 2011-06-30drm/radeon/kms: increase rom size for atrm methodAlex Deucher1-1/+1 2011-06-30crypto: caam - fix operator precedence in shared descriptor allocationKim Phillips1-3/+3 2011-06-29ahci: change 'masking port_map' printk to KERN_WARNING levelLinus Torvalds1-1/+1 2011-06-29i2c/pca954x: Initialize the mux to disconnected statePetri Gynther1-3/+4 2011-06-29i2c-taos-evm: Fix log messagesJean Delvare1-4/+4 2011-06-29KVM: x86 emulator: fix %rip-relative addressing with immediate source operandAvi Kivity1-5/+7 2011-06-29arch/powerpc: use printk_ratelimited instead of printk_ratelimitChristian Dietrich5-57/+60 2011-06-29powerpc/rtas-rtc: remove sideeffects of printk_ratelimitChristian Dietrich1-12/+17 2011-06-29powerpc/pseries: remove duplicate SCSI_BNX2_ISCSI in pseries_defconfigMichael Neuling1-1/+0 2011-06-28drm/i915: Use chipset-specific irq installersChris Wilson1-2/+2 2011-06-28drm/i915: forcewake fix after resetBen Widawsky1-0/+3 2011-06-28proc: restrict access to /proc/PID/ioVasiliy Kulikov1-2/+5 2011-06-28md: avoid endless recovery loop when waiting for fail device to complete.NeilBrown1-0/+1 2011-06-27Linux 3.0-rc5v3.0-rc5Linus Torvalds1-1/+1 2011-06-27drm/i915: more struct_mutex lockingHugh Dickins2-2/+6 2011-06-27drm/i915: use shmem_truncate_rangeHugh Dickins1-5/+2 2011-06-27drm/i915: use shmem_read_mapping_pageHugh Dickins2-17/+15 2011-06-27drm/ttm: use shmem_read_mapping_pageHugh Dickins1-2/+3 2011-06-27drivers/tty/serial/8250_pci.c: fix warningAndrew Morton1-1/+1 2011-06-27drivers/misc/ioc4.c: fix section mismatch / race conditionRalf Baechle1-1/+1 2011-06-27drivers/leds/leds-lp5523.c: fix section mismatchesRalf Baechle1-2/+2 2011-06-27drivers/leds/leds-lp5521.c: fix section mismatchesRalf Baechle1-2/+2 2011-06-27memcg: fix direct softlimit reclaim to be called in limit pathKAMEZAWA Hiroyuki1-12/+15 2011-06-27taskstats: don't allow duplicate entries in listener modeVasiliy Kulikov1-3/+12 2011-06-27mm: fix assertion mapping->nrpages == 0 in end_writeback()Jan Kara3-0/+13 2011-06-27mm/memory-failure.c: fix spinlock vs mutex orderPeter Zijlstra2-18/+8 2011-06-27drivers/misc/lkdtm.c: fix race when crashpoint is hit multiple times before c...Josh Hunt1-0/+8 2011-06-27include/linux/compat.h: declare compat_sys_sendmmsg()Chris Metcalf1-0/+2 2011-06-27romfs: fix romfs_get_unmapped_area() argument checkBob Liu1-2/+6