aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-06-06 09:57:13 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-13 14:31:41 +0800
commit1793d1aba1941573ba9ebf75dfbb11a8c2b943b1 (patch)
treef5fb556a4e5e654b39d79781c788494b069e4ca2 /tools/perf/scripts/python/export-to-sqlite.py
parentARM: dts: imx7ulp: add crypto support (diff)
downloadlinux-1793d1aba1941573ba9ebf75dfbb11a8c2b943b1.tar.gz
linux-1793d1aba1941573ba9ebf75dfbb11a8c2b943b1.zip
crypto: qat - use struct_size() helper
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct qat_alg_buf_list { ... struct qat_alg_buf bufers[]; } __packed __aligned(64); Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. So, replace the following form: sizeof(struct qat_alg_buf_list) + ((1 + n) * sizeof(struct qat_alg_buf)) with: struct_size(bufl, bufers, n + 1) This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
10-08-05Documentation: Mention that KProbes is supported on MIPSDavid Daney1-0/+1 2010-08-05SAMPLES: kprobe_example: Make it print something on MIPS.David Daney1-0/+9 2010-08-05MIPS: kprobe: Add support.David Daney9-2/+695 2010-08-05MIPS: Add instrunction format for BREAK and SYSCALLDavid Daney1-1/+14 2010-08-05MIPS: kprobes: Define regs_return_value()David Daney1-0/+1 2010-08-05MIPS: Ritually kill stupid printk.Ralf Baechle5-5/+0 2010-08-05MIPS: Octeon: Disallow MSI-X interrupt and fall back to MSI interrupts.Chandrakala Chavva2-0/+33 2010-08-05MIPS: Octeon: Support 256 MSI on PCIeDavid Daney2-118/+178 2010-08-05MIPS: Decode core number for R2 CPUs.David Daney1-0/+3 2010-08-05MIPS: SMTC: Use %p to format pointersKulikov Vasiliy1-2/+1 2010-08-05MIPS: Loongson: Remove unused macro LOONGSON_PERFCNT_IRQWu Zhangjin1-1/+0 2010-08-05MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()Wu Zhangjin3-4/+10 2010-08-05MIPS: Loongson: Remove set_irq_trigger_mode()Wu Zhangjin4-18/+8 2010-08-05WATCHDOG: Add watchdog driver for OCTEON SOCsDavid Daney4-0/+829 2010-08-05MIPS: Define ST0_NMI in asm/mipsregs.hDavid Daney1-0/+1 2010-08-05MIPS: Export __cpu_number_map and __cpu_logical_map.David Daney1-0/+4 2010-08-05MIPS: Octeon: Export prom_putchar().David Daney1-1/+5 2010-08-05MIPS: uasm: Add option to export uasm API.David Daney4-63/+110 2010-08-05MIPS: uasm: Add BBIT0 and BBIT1 instructionsDavid Daney2-1/+25 2010-08-05MIPS: uasm: Add drotr32 and uasm_i_drotr_safe.David Daney2-5/+18 2010-08-05MIPS: Octeon: Implement delays with cycle counter.David Daney4-13/+58 2010-08-05MIPS: JZ4740: Add qi_lb60 board supportLars-Peter Clausen3-0/+477 2010-08-05POWER: Add JZ4740 battery driver.Lars-Peter Clausen4-0/+481 2010-08-05HWMON: Add JZ4740 ADC driverLars-Peter Clausen3-0/+241 2010-08-05USB: Add JZ4740 OHCI supportLars-Peter Clausen3-0/+282 2010-08-05MMC: Add support for the controller on JZ4740 SoCs.Lars-Peter Clausen4-0/+1054 2010-08-05MTD: Nand: Add JZ4740 NAND driverLars-Peter Clausen4-0/+557 2010-08-05FBDEV: JZ4740: Add framebuffer driverLars-Peter Clausen4-0/+924 2010-08-05RTC: Add JZ4740 RTC driverLars-Peter Clausen3-0/+357 2010-08-05MIPS: JZ4740: Add Kbuild filesLars-Peter Clausen5-0/+43 2010-08-05MIPS: JZ4740: Add platform devicesLars-Peter Clausen2-0/+327