aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJan Höppner <hoeppner@linux.ibm.com>2023-09-15 15:10:00 +0200
committerJens Axboe <axboe@kernel.dk>2023-10-04 08:04:08 -0600
commitf5f43aae6f336ae436759144a31879375e65ed28 (patch)
tree34f5311fe8ad7137444c7a68e36813b6f37d318d /tools/perf/scripts/python/export-to-postgresql.py
parentpartitions/ibm: Remove unnecessary memset (diff)
downloadlinux-f5f43aae6f336ae436759144a31879375e65ed28.tar.gz
linux-f5f43aae6f336ae436759144a31879375e65ed28.zip
partitions/ibm: Replace strncpy() and improve readability
strncpy() is deprecated and needs to be replaced. The volume label information strings are not nul-terminated and strncpy() can simply be replaced with memcpy(). To enhance the readability of find_label() alongside this change, the following improvements are made: - Introduce the array dasd_vollabels[] containing all information necessary for the label detection. - Provide a helper function to obtain an index value corresponding to a volume label type. This allows the use of a switch statement to reduce indentation levels. - The 'temp' variable is used to check against valid volume label types. In the good case, this variable already contains the volume label type making it unnecessary to copy the information again from e.g. label->vol.vollbl. Remove the 'temp' variable and the second copy as all information are already provided. - Remove the 'found' variable and replace it with early returns Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Stefan Haberland <sth@linux.ibm.com> Link: https://lore.kernel.org/r/20230915131001.697070-3-sth@linux.ibm.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
title='2016-05-01 17:05:08 -0700'>2016-05-01i40e/i40evf: fix I40E_MASK signed shift overflow warningsJacob Keller2-2/+2 2016-05-01i40e/i40evf : Bump driver version from 1.5.5 to 1.5.10Harshitha Ramamurthy2-2/+2 2016-05-01i40e: Update device ids for X722Catherine Sullivan1-0/+1 2016-05-01i40e: Drop extra copy of functionJesse Brandeburg1-18/+0 2016-05-01i40e: Use consistent type for vf_idJesse Brandeburg3-9/+10 2016-05-01i40e: PTP - avoid aggregate return warningsJesse Brandeburg1-1/+2 2016-05-01i40e: Fix uninitialized variableCatherine Sullivan1-5/+1 2016-05-01i40evf: RSS Hash Option parametersCarolyn Wyborny1-199/+2 2016-05-01i40e: Remove HMC AQ API implementationNeerav Parikh5-88/+0 2016-05-01i40e: Prevent falling to promiscuous if the VF is not trustedAnjali Singhai Jain1-0/+6 2016-05-01i40e: Limit the number of MAC and VLAN addresses that can be added for VFsAnjali Singhai Jain2-2/+26 2016-05-01tipc: set 'active' state correctly for first established linkJon Paul Maloy1-0/+1 2016-05-01of: of_mdio: Check if MDIO bus controller is availableFlorian Fainelli1-0/+4 2016-05-01i40e: Change the default for VFs to be not privilegedAnjali Singhai Jain1-10/+10 2016-04-29net/mlx5e: Enabling aRFS mechanismMaor Gottlieb4-2/+127 2016-04-29net/mlx5e: Add accelerated RFS supportMaor Gottlieb2-1/+436 2016-04-29net/mlx5e: Create aRFS flow tablesMaor Gottlieb6-14/+313 2016-04-29net/mlx5: Initializing CPU reverse mappingMaor Gottlieb3-0/+24 2016-04-29net/mlx5e: Split the main flow steering tableMaor Gottlieb4-563/+462 2016-04-29net/mlx5e: Refactor mlx5e flow steering structsMaor Gottlieb5-154/+160 2016-04-29net/mlx5: Support different attributes for priorities in namespaceMaor Gottlieb1-12/+19 2016-04-29net/mlx5: Add user chosen levels when allocating flow tablesMaor Gottlieb6-40/+70 2016-04-29net/mlx5: Set number of allowed levels in priorityMaor Gottlieb2-30/+33 2016-04-29net/mlx5: Introduce modify flow rule destinationMaor Gottlieb2-2/+5 2016-04-29net/mlx5e: Direct TIR per RQTariq Toukan4-138/+191 2016-04-29net/mlx5e: Call vxlan_get_rx_port() with rtnl lockMatthew Finlay1-1/+4 2016-04-29net: ethernet: enc28j60: add device tree supportMichael Heimpold2-3/+76 2016-04-29net: ethernet: enc28j60: support half-duplex SPI controllersMichael Heimpold1-5/+9 2016-04-29net: constify is_skb_forwardable's argumentsNikolay Aleksandrov2-2/+3 2016-04-29ppp: add rtnetlink device creation supportGuillaume Nault2-3/+120 2016-04-29ppp: define reusable device creation functionsGuillaume Nault1-88/+118 2016-04-29net: ethernet: stmmac: update MDIO support for GMAC4Alexandre TORGUE1-4/+98 2016-04-29vxlan: fix initialization with custom link parametersJiri Benc1-4/+4 2016-04-29samples/bpf: like LLC also verify and allow redefining CLANG commandJesper Dangaard Brouer2-14/+17 2016-04-29samples/bpf: allow make to be run from samples/bpf/ directoryJesper Dangaard Brouer2-0/+11