summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-07-21 19:53:41 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-07-23 08:45:30 -0400
commit9528c19507dc9bc3d6cd96f4611d7cb80c5afcde (patch)
treefa3caa2f8e12a4edcf91873bc31a8ed2250907b3 /scripts/stackusage
parent1e3bac71c5053c99d438771fc9fa5082ae5d90aa (diff)
downloadkernel-9528c19507dc9bc3d6cd96f4611d7cb80c5afcde.tar.gz
tracing: Clean up alloc_synth_event()
alloc_synth_event() currently has the following code to initialize the event fields and dynamic_fields: for (i = 0, j = 0; i < n_fields; i++) { event->fields[i] = fields[i]; if (fields[i]->is_dynamic) { event->dynamic_fields[j] = fields[i]; event->dynamic_fields[j]->field_pos = i; event->dynamic_fields[j++] = fields[i]; event->n_dynamic_fields++; } } 1) It would make more sense to have all fields keep track of their field_pos. 2) event->dynmaic_fields[j] is assigned twice for no reason. 3) We can move updating event->n_dynamic_fields outside the loop, and just assign it to j. This combination makes the code much cleaner. Link: https://lkml.kernel.org/r/20210721195341.29bb0f77@oasis.local.home Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman 2017-09-04Merge remote-tracking branches 'regulator/topic/rc5t619' and 'regulator/topic...Mark Brown 2017-08-30regulator: Add support for stm32-vrefbufFabrice Gasnier 2017-08-15regulator: mt6380: Add support for MT6380Chenglin Xu 2017-07-03Merge remote-tracking branches 'regulator/topic/hi6421v530', 'regulator/topic...Mark Brown 2017-06-07regulator: hi6421v530: add driver for hi6421v530 voltage regulatorWang Xiaoyin 2017-05-24regulator: lp87565: Add support for lp87565 PMIC regulatorsKeerthy 2017-04-30Merge remote-tracking branch 'regulator/topic/vctrl' into regulator-nextMark Brown 2017-04-30Merge remote-tracking branches 'regulator/topic/notifier', 'regulator/topic/p...Mark Brown 2017-04-30Merge remote-tracking branches 'regulator/topic/anatop', 'regulator/topic/ari...Mark Brown 2017-04-25regulator: Add ROHM BD9571MWV-M PMIC regulator driverMarek Vasut 2017-04-25regulator: arizona: Split KConfig options for LDO1 and MICSUPP regulatorsRichard Fitzgerald 2017-04-12regulator: tps65132: add regulator driver for TI TPS65132Venkat Reddy Talla 2017-04-10regulator: Add driver for voltage controlled regulatorsMatthias Kaehlcke 2017-02-04regulator: cpcap: Add basic regulator supportTony Lindgren 2016-11-16regulator: twl: split twl6030 logic into its own fileNicolae Rosia 2016-08-16regulator: Add LTC3676 supportTim Harvey 2016-07-18regulator: mt6323: Add support for MT6323 regulatorChen Zhong 2016-05-13Merge remote-tracking branches 'regulator/topic/max77686', 'regulator/topic/m...Mark Brown 2016-05-11regulator: lp873x: Add support for lp873x PMIC regulatorsKeerthy 2016-04-18regulator: pv88080: new regulator driverJames Ban 2016-03-28regulator: Rename files for Maxim PMIC driversJavier Martinez Canillas 2016-03-13Merge remote-tracking branches 'regulator/topic/s5m8767' and 'regulator/topic...Mark Brown 2016-03-13Merge remote-tracking branches 'regulator/topic/ltc3589', 'regulator/topic/ma...Mark Brown 2016-03-13Merge remote-tracking branches 'regulator/topic/discharge', 'regulator/topic/...Mark Brown 2016-02-20regulator: max77620: add regulator driver for max77620/max20024Laxman Dewangan 2016-02-15regulator: vexpress: rename vexpress regulator implementationSudeep Holla 2016-02-15regulator: hi655x: enable regulator for hi655x PMICChen Feng 2016-02-12regulator: Rename files for max77686 and max77802 driversJavier Martinez Canillas 2016-02-05regulator: act8945a: add regulator driver for ACT8945AWenyou Yang 2016-01-12Merge remote-tracking branches 'regulator/topic/pv88090', 'regulator/topic/qc...Mark Brown 2016-01-12Merge remote-tracking branches 'regulator/topic/lp8788', 'regulator/topic/mt6...Mark Brown 2015-12-08regulator: pv88090: new regulator driverJames Ban 2015-11-27regulator: add LM363X driverMilo Kim 2015-11-20regulator: pv88060: new regulator driverJames Ban 2015-11-16regulator: tps65086: Add regulator driver for the TPS65086 PMICAndrew F. Davis