Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1217104

Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include

From Arnaldo Carvalho de Melo <acme@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include
Date 2015-09-01 23:50 +0200
Message-ID <q41Bf-21v-7@gated-at.bofh.it> (permalink)
References <q2FWa-7Rj-5@gated-at.bofh.it> <q2FWa-7Rj-17@gated-at.bofh.it> <q3ZJ7-7Mw-3@gated-at.bofh.it> <q418e-1tL-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Wed, Sep 02, 2015 at 05:08:27AM +0800, pi3orama escreveu:
> 发自我的 iPhone
> > 在 2015年9月2日,上午3:39,Arnaldo Carvalho de Melo <acme@redhat.com> 写道:

> > Em Sat, Aug 29, 2015 at 04:21:55AM +0000, Wang Nan escreveu:
> >> From: He Kuang <hekuang@huawei.com>
> >> This patch moves filter.h from include/linux/kernel.h to

> > I said that before: this is not moving anything, it is copying :-)

> >> tools/include/linux/filter.h to enable other libraries use macros in
> >> it, like libbpf which will be introduced by further patches. Currenty,
> >> the moved filter.h only contains the useful macros needed by libbpf
> >> for not introducing too much dependence.

> >> MANIFEST is also updated for 'make perf-*-src-pkg'.

> > So, I did a:
> > 
> > $ diff -u include/linux/filter.h tools/include/linux/filter.h
> > 
> > And noticed these:
> > 
> > -/* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
> > +/* Endianness conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
> > 
> > -/* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */
> > +/* Short form of mov based on type,
> > + * BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32
> > + */
> > 
> > -/* Conditional jumps against registers, if (dst_reg 'op' src_reg) goto pc + off16 */
> > +/* Conditional jumps against registers,
> > + * if (dst_reg 'op' src_reg) goto pc + off16
> > + */
> > 
> > -/* Conditional jumps against immediates, if (dst_reg 'op' imm32) goto pc + off16 */
> > +/* Conditional jumps against immediates,
> > + * if (dst_reg 'op' imm32) goto pc + off16
> > + */
> > 
> > ------------------------------------------------------------------
> > 
> 
> I think these changes are made after we made this patch.

Don't think so, for instance, this one:

/* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */

[acme@zoo linux]$ git log -p include/linux/filter.h | grep 'Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32'
 /* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */
 /* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */
 /* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */
+/* Short form of mov based on type, BPF_X: dst_reg = src_reg, BPF_K: dst_reg = imm32 */
[acme@zoo linux]$

Was introduced, in just one line, and never again touched, just appearing as context in
subsequent patches.

I bet this was related to checkpatch.pl complaining it has more than 80 lines ;-\

Ditto for:

[acme@zoo linux]$ git log -p include/linux/filter.h | grep 'Endiann\?ess conversion'
 /* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
 /* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
+/* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
[acme@zoo linux]$
 
> Thank you for checking it.

np.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 21/31] perf tools: Move linux/filter.h to tools/include Wang Nan <wangnan0@huawei.com> - 2015-08-29 06:30 +0200
  Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include Arnaldo Carvalho de Melo <acme@redhat.com> - 2015-08-31 22:40 +0200
  Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include Arnaldo Carvalho de Melo <acme@redhat.com> - 2015-09-01 21:50 +0200
    Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include Arnaldo Carvalho de Melo <acme@redhat.com> - 2015-09-01 21:50 +0200
    Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include pi3orama <pi3orama@163.com> - 2015-09-01 23:20 +0200
      Re: [PATCH 21/31] perf tools: Move linux/filter.h to tools/include Arnaldo Carvalho de Melo <acme@redhat.com> - 2015-09-01 23:50 +0200

csiph-web