Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1565814
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() |
| Date | 2017-01-24 13:20 +0100 |
| Message-ID | <t38eR-4bB-21@gated-at.bofh.it> (permalink) |
| References | <t26oN-62y-7@gated-at.bofh.it> <t2IaJ-44k-1@gated-at.bofh.it> <t2KFA-5GZ-19@gated-at.bofh.it> <t2N0J-71T-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>> Would you like to check run time consequences >> for the shown error code settings once more? > > Sure, lets for now ignore the fact that the performance of an error path > does not matter most of the time. I am concerned that extra error code settings within the “success path” could influence the run time behaviour in unwanted ways. > After tree building and optimization your change should not matter at all > regarding performance for a decent compiler. I find your optimism interesting. > The compiler can and will do much more complex transformations than this. This technology is often fine. > Since you have send several patches that trigger compile time warnings or > errors, let me do this exercise for you and let us check what your patch > changes in terms of run time consequences. > > > $ git checkout v4.10-rc4 > HEAD is now at 49def18... Linux 4.10-rc4 > > $ make arch/s390/kvm/kvm-s390.o > [..] Thanks for your build demonstration. > $ objdump -d arch/s390/kvm/kvm-s390.o | md5sum > 55c1e081f55cef90b3ffcc06a13721c1 - > > $ git am ~/code/elfring/[PATCH] KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log().eml > Applying: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() > > $ make arch/s390/kvm/kvm-s390.o > [..] > > $ objdump -d arch/s390/kvm/kvm-s390.o | md5sum > 55c1e081f55cef90b3ffcc06a13721c1 - > > As you can see the binary is identical, The hashes became the same with the selected tool. > so I can make an educated guess, that there is no performance improvement > due to your patch. How much does such a software generation result fit really to expectations? Should the two shown implementation variants for a function like "kvm_vm_ioctl_get_dirty_log" usually lead to different object code files? Regards, Markus
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-21 17:10 +0100
Re: [PATCH] KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Christian Borntraeger <borntraeger@de.ibm.com> - 2017-01-23 09:30 +0100
Re: [PATCH] KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Paolo Bonzini <pbonzini@redhat.com> - 2017-01-23 10:30 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-23 12:10 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Dan Carpenter <dan.carpenter@oracle.com> - 2017-01-23 13:30 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-23 14:30 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Dan Carpenter <dan.carpenter@oracle.com> - 2017-01-23 14:40 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Christian Borntraeger <borntraeger@de.ibm.com> - 2017-01-23 14:40 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Paolo Bonzini <pbonzini@redhat.com> - 2017-01-24 13:20 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() Christian Borntraeger <borntraeger@de.ibm.com> - 2017-01-24 13:40 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-24 13:50 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-24 13:40 +0100
Re: KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-01-24 13:20 +0100
csiph-web