Thread (17 messages) 17 messages, 3 authors, 2018-03-22

Re: [PATCH v3 bpf-next 01/10] treewide: remove struct-pass-by-value from tracepoints arguments

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2018-03-22 20:52:35

On Thu, Mar 22, 2018 at 1:48 PM, Steven Rostedt [off-list ref] wrote:
OK, but instead of changing it to pass by reference, why not just pass
the value. That is:

 static void xen_set_pte_atomic(pte_t *ptep, pte_t pte)
 {
-       trace_xen_mmu_set_pte_atomic(ptep, pte);
+       trace_xen_mmu_set_pte_atomic(ptep, native_pte_val(pte));
        set_64bit((u64 *)ptep, native_pte_val(pte));
 }
That looks simple and clean, and makes sense since the function itself
then uses that value anyway.

Certainly simpler than my monster define.

           Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help