summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-03-18 09:03:19 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-18 10:10:17 +0100
commit2c7eea4c62ba090b7f4583c3d7337ea0019be900 (patch)
tree2a85739caeef13035316d47f61cab11f3a91660f /tools/perf/scripts/python/export-to-postgresql.py
parent18aecd362a1c991fbf5f7919ae051a77532ba2f8 (diff)
downloadkernel-2c7eea4c62ba090b7f4583c3d7337ea0019be900.tar.gz
tracing: replace the crude (unsigned) -1 hackery
Impact: cleanup The command line recorder uses (unsigned) -1 to mark non mapped entries in the pid to command line maps. The validity check is completely unintuitive: idx >= SAVED_CMDLINES There is no need for such casting games. Use a constant to mark unmapped entries and check for that constant to make the code readable and understandable. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Steven Rostedt <srostedt@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
ux-6.6.y&id=57b077939287835b9396a1c3b40d35609cf2fcb8'>Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds 2020-08-03virtio: virtio_has_iommu_quirk -> virtio_has_dma_quirkMichael S. Tsirkin 2020-08-03virtio: VIRTIO_F_IOMMU_PLATFORM -> VIRTIO_F_ACCESS_PLATFORMMichael S. Tsirkin 2020-07-16compiler: Remove uninitialized_var() macroKees Cook 2020-06-22tools/virtio: Use tools/include/list.h instead of stubsEugenio Pérez 2020-06-22tools/virtio: Reset index in virtio_test --reset.Eugenio Pérez 2020-06-22tools/virtio: Extract virtqueue initialization in vq_resetEugenio Pérez 2020-06-22tools/virtio: Use __vring_new_virtqueue in virtio_test.cEugenio Pérez 2020-06-22tools/virtio: Add --resetEugenio Pérez 2020-06-22tools/virtio: Add --batch=random optionEugenio Pérez 2020-06-22tools/virtio: Add --batch optionEugenio Pérez 2020-04-17tools/virtio: make asm/barrier.h self containedMichael S. Tsirkin 2020-04-17tools/virtio: define aligned attributeMichael S. Tsirkin 2020-04-16virtio/test: fix up after IOTLB changesMichael S. Tsirkin 2020-04-08Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds 2020-03-25.gitignore: add SPDX License IdentifierMasahiro Yamada 2020-03-23tools/virtio: option to build an out of tree moduleMichael S. Tsirkin