summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorWei Li <liwei391@huawei.com>2020-02-14 15:26:52 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-02-18 10:13:29 -0300
commitc9f2833cb472cf9e0a49b7bcdc210a96017a7bfd (patch)
tree13137d04737ee41be8bcf6a676c6dcd491abe294 /scripts/basic
parent783fed2f35e2a6771c8dc6ee29b8c4b9930783ce (diff)
downloadkernel-c9f2833cb472cf9e0a49b7bcdc210a96017a7bfd.tar.gz
perf cs-etm: Fix endless record after being terminated
In __cmd_record(), when receiving SIGINT(ctrl + c), a 'done' flag will be set and the event list will be disabled by evlist__disable() once. While in auxtrace_record.read_finish(), the related events will be enabled again, if they are continuous, the recording seems to be endless. If the cs_etm event is disabled, we don't enable it again here. Note: This patch is NOT tested since i don't have such a machine with coresight feature, but the code seems buggy same as arm-spe and intel-pt. Tester notes: Thanks for looping, Adrian. Applied this patch and tested with CoreSight on juno board, it works well. Signed-off-by: Wei Li <liwei391@huawei.com> Reviewed-by: Leo Yan <leo.yan@linaro.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Tested-by: Leo Yan <leo.yan@linaro.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Tan Xiaojun <tanxiaojun@huawei.com> Cc: stable@vger.kernel.org # 5.4+ Link: http://lore.kernel.org/lkml/20200214132654.20395-4-adrian.hunter@intel.com [ahunter: removed redundant 'else' after 'return'] Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
href='/distro/kernel/commit/net/netrom?h=linux-6.6.y&id=6ed106549d17474ca17a16057f4c0ed4eba5a7ca'>net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functionsPatrick McHardy ecb97'>staging: vchiq_core: Factor out bulk transfer for blocking modeUmang Jain 2024-09-11staging: vchiq: Factor out bulk transfer for VCHIQ_BULK_MODE_WAITINGUmang Jain 2024-07-01Merge 6.10-rc6 into staging-nextGreg Kroah-Hartman 2024-06-24staging: vc04_services: vchiq_arm: Fix initialisation checkKieran Bingham 2024-06-04staging: vc04_services: Fix kernel-doc param for vchiq_register_chrdevYang Li 2024-05-04staging: vc04_services: Delete unnecessary NULL checkDan Carpenter 2024-04-18staging: vc04_services: Move global g_state to vchiq_stateUmang Jain 2024-04-18staging: vc04_services: Move spinlocks to vchiq_stateUmang Jain 2023-12-09staging: vc04_services: vchiq_dev: Use %p to log pointer addressUmang Jain 2023-12-07staging: vc04_services: Drop vchiq_log_debug() in favour of dev_dbgUmang Jain 2023-12-07staging: vc04_services: Drop vchiq_log_trace() in favour of dev_dbgUmang Jain 2023-12-07staging: vc04_services: Drop vchiq_log_error() in favour of dev_errUmang Jain 2023-11-23staging: vchiq_arm: move state dump to debugfsStefan Wahren 2023-10-25staging: vc04_services: Use %p4cc format modifier to print FourCC codesUmang Jain 2023-10-25staging: vc04: Convert vchiq_log_trace() to use dynamic debugUmang Jain 2023-10-25staging: vc04: Convert(and rename) vchiq_log_info() to use dynamic debugUmang Jain 2023-10-25staging: vc04: Convert vchiq_log_error() to use dynamic debugUmang Jain