[PATCH v2] Input: applespi - register touchpad device synchronously in probe

2019-07-21 Thread Ronald Tschalär
This allows errors during registration to properly fail the probe function. Doing this requires waiting for a response from the device inside the probe function. While this generally takes about 15ms, in case of errors it could be arbitrarily long, and hence a 3 second timeout is used. This also

[PATCH 2/2] Input: applespi: fix warnings detected by sparse

2019-07-21 Thread Ronald Tschalär
Reported-by: kbuild test robot Signed-off-by: Ronald Tschalär --- drivers/input/keyboard/applespi.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/input/keyboard/applespi.c b/drivers/input/keyboard/applespi.c index d5defdefbc34..00cd8dccd4f5 1006

Re: [PATCH 2/2] Input: applespi: fix warnings detected by sparse

2019-07-21 Thread Dmitry Torokhov
On Sun, Jul 21, 2019 at 12:06:29AM -0700, Ronald Tschalär wrote: > Reported-by: kbuild test robot > Signed-off-by: Ronald Tschalär > --- > drivers/input/keyboard/applespi.c | 18 +++--- > 1 file changed, 11 insertions(+), 7 deletions(-) > > diff --git a/drivers/input/keyboard/apples

upstream boot error: WARNING: workqueue cpumask: online intersect > possible intersect

2019-07-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f1a3b43c Merge branch 'for-linus' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1456d34860 kernel config: https://syzkaller.appspot.com/x/.config?x=19dd7cf81d8c8469 da

Re: [PATCH v2] powerpc: slightly improve cache helpers

2019-07-21 Thread Nathan Chancellor
On Fri, Jul 19, 2019 at 09:04:55AM -0700, Nathan Chancellor wrote: > On Fri, Jul 19, 2019 at 10:23:03AM -0500, Segher Boessenkool wrote: > > On Thu, Jul 18, 2019 at 08:24:56PM -0700, Nathan Chancellor wrote: > > > On Mon, Jul 08, 2019 at 11:49:52PM -0700, Nathan Chancellor wrote: > > > > On Tue, Ju

Re: [PATCH 2/2] Input: applespi: fix warnings detected by sparse

2019-07-21 Thread Life is hard, and then you die
Hi Dmitry, On Sun, Jul 21, 2019 at 10:24:27AM +0300, Dmitry Torokhov wrote: > On Sun, Jul 21, 2019 at 12:06:29AM -0700, Ronald Tschalär wrote: > > Reported-by: kbuild test robot > > Signed-off-by: Ronald Tschalär > > --- > > drivers/input/keyboard/applespi.c | 18 +++--- > > 1 f

[PATCH v2] Input: applespi: fix warnings detected by sparse

2019-07-21 Thread Ronald Tschalär
Reported-by: kbuild test robot Signed-off-by: Ronald Tschalär --- Changes in v2: replaced min_t/max_t with plain min/max since both arguments are now int's and don't need further casting drivers/input/keyboard/applespi.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions

[PATCH] .gitignore: Add compilation database files

2019-07-21 Thread Toru Komatsu
This file is used by clangd to use language server protocol. It can be generated at each compile using scripts/gen_compile_commands.py. Therefore it is different depending on the environment and should be ignored. Signed-off-by: Toru Komatsu --- .gitignore | 3 +++ 1 file changed, 3 insertions(+

Re: [Question] orphan platform data header

2019-07-21 Thread Arnd Bergmann
On Sun, Jul 21, 2019 at 5:45 AM Masahiro Yamada wrote: > On Sat, Jul 20, 2019 at 10:55 PM Arnd Bergmann wrote: > > On Sat, Jul 20, 2019 at 5:26 AM Masahiro Yamada > > wrote: > > > So, what shall we do? > > > > > > Drop the board-file support? Or, keep it > > > in case somebody is still using th

Re: [PATCH] rat_cs: Remove duplicate code

2019-07-21 Thread Stefano Brivio
On Sat, 20 Jul 2019 23:16:47 +0530 Hariprasad Kelam wrote: > Code is same if translate is true/false in case invalid packet is > received.So remove else part. > > Issue identified with coccicheck > > Signed-off-by: Hariprasad Kelam > --- > drivers/net/wireless/ray_cs.c | 29 --

Re: [PATCH] staging/wlan-ng: Fixing "line over 80 characters" warnings.

2019-07-21 Thread Greg Kroah-Hartman
On Sun, Jul 21, 2019 at 11:13:26AM +0200, Hennie Muller wrote: > Reindent multiline function calls to be tab aligned, instead of open brace > aligned. This fixes multiple "WARNING: line over 80 characters" generated > by checkpatch. > > Signed-off-by: Hennie Muller > --- > drivers/staging/wlan-n

[PATCH] percpu: Fix a typo

2019-07-21 Thread Christophe JAILLET
s/perpcu/percpu/ Signed-off-by: Christophe JAILLET --- mm/percpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index 9821241fdede..febf7c7c888e 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -2220,7 +2220,7 @@ static void pcpu_dump_alloc_info(cons

[PATCH] staging/wlan-ng: Fixing "line over 80 characters" warnings.

2019-07-21 Thread Hennie Muller
Reindent multiline function calls to be tab aligned, instead of open brace aligned. This fixes multiple "WARNING: line over 80 characters" generated by checkpatch. Signed-off-by: Hennie Muller --- drivers/staging/wlan-ng/cfg80211.c| 55 ++--- drivers/staging/wlan-ng/hfa384x_usb.c | 282

Re: WARNING in __mmdrop

2019-07-21 Thread Michael S. Tsirkin
On Sat, Jul 20, 2019 at 03:08:00AM -0700, syzbot wrote: > syzbot has bisected this bug to: > > commit 7f466032dc9e5a61217f22ea34b2df932786bbfc > Author: Jason Wang > Date: Fri May 24 08:12:18 2019 + > > vhost: access vq metadata through kernel virtual address > > bisection log: https

Kernel 4.19.42 and newer have broke my Bluetooth keyboard/mouse support

2019-07-21 Thread CIJOML CIJOMLovic
Hello guys, I own a very old Logitech diNovo media set with Keyboard, Mouse MX1000 for Bluetooth and Mediapad. Since 4.19.41 I was able to use it without problem, but kernel 4.19.42 introduced two patches which one of them problably broke my Bluetooth setup support. According to the changelog thos

Re: [PATCH] staging/wlan-ng: Fixing "line over 80 characters" warnings.

2019-07-21 Thread Hennie Muller
On Sun, Jul 21, 2019 at 11:29:19AM +0200, Greg Kroah-Hartman wrote: > On Sun, Jul 21, 2019 at 11:13:26AM +0200, Hennie Muller wrote: > > Reindent multiline function calls to be tab aligned, instead of open brace > > aligned. This fixes multiple "WARNING: line over 80 characters" generated > > by ch

[PATCH] ALSA: line6: Fix a typo

2019-07-21 Thread Christophe JAILLET
s/Vairax/Variax/ Signed-off-by: Christophe JAILLET --- sound/usb/line6/variax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/line6/variax.c b/sound/usb/line6/variax.c index 0d24c72c155f..ed158f04de80 100644 --- a/sound/usb/line6/variax.c +++ b/sound/usb/line6/var

Re: [PATCH 1/3] mt76: fix checkpatch warnings and errors

2019-07-21 Thread Kalle Valo
Ryder Lee writes: > Fix warnings and errors as much as possible. > > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/agg-rx.c | 21 + > drivers/net/wireless/mediatek/mt76/dma.c | 2 +- > drivers/net/wireless/mediatek/mt76/mac80211.c | 30 ++-- > drive

Re: [PATCH 01/10] drm/mxsfb: Update mxsfb to support a bridge

2019-07-21 Thread Guido Günther
Hi Robert, On Wed, Jun 26, 2019 at 04:32:09PM +0300, Robert Chiras wrote: > Currently, the MXSFB DRM driver only supports a panel. But, its output > display signal can also be redirected to another encoder, like a DSI > controller. In this case, that DSI controller may act like a drm_bridge. > In o

Re: [PATCH 3/3] mt76: mt7615: add cwmin/cwmax initial values

2019-07-21 Thread Kalle Valo
Ryder Lee writes: > Add initial values in mt7615_mcu_set_wmm() to cleanup setup flow. > > Signed-off-by: Ryder Lee [...] > -#define WMM_AIFS_SET BIT(0) > -#define WMM_CW_MIN_SET BIT(1) > -#define WMM_CW_MAX_SET BIT(2) > -#define WMM_TXOP_SET BIT(3) > +#define WMM_PARAM_SETG

[PATCH] tipc: Fix a typo

2019-07-21 Thread Christophe JAILLET
s/tipc_toprsv_listener_data_ready/tipc_topsrv_listener_data_ready/ (r and s switched in topsrv) Signed-off-by: Christophe JAILLET --- The function name could also be removed from the comment. It does not bring any useful information IMHO. --- net/tipc/topsrv.c | 2 +- 1 file changed, 1 insertion

Hospedagem de site - R$ 2,99 por mês

2019-07-21 Thread Hospedagem de sites
Veja nossas opções de hospedagem e outros serviços: - Sobek Host 01 5 Domí­nios 5.000 GB Espaço em SSD Ilimitado Tráfego cPanel Painel de Controle Ilimitadas Contas de E-mail Ilimitadas Base de Dados Grátis Certificado SSL Garantia de Uptime d

[PATCH] iio: light: apds9960: Fix a typo

2019-07-21 Thread Christophe JAILLET
s/ADPS9960/APDS9960/ (P and D switched) Signed-off-by: Christophe JAILLET --- drivers/iio/light/apds9960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index b09b8b60bd83..c5dfb9a6b5a1 100644 --- a/drivers/iio/lig

[PATCH] jfs: Change return type of txLog

2019-07-21 Thread Hariprasad Kelam
As txLog always returns 0 change return type from int to void. fix below issue reported by coccicheck /fs/jfs/jfs_txnmgr.c:1370:5-7: Unneeded variable: "rc". Return "0" on line 1417 Signed-off-by: Hariprasad Kelam --- fs/jfs/jfs_txnmgr.c | 12 1 file changed, 4 insertions(+), 8 d

[PATCH] iio: sca3000: Fix a typo

2019-07-21 Thread Christophe JAILLET
All #define are about SCA3000_... except the last one. Make it consistent. s/SAC3000/SCA3000/ This #define is apparently unused up to now. Signed-off-by: Christophe JAILLET --- drivers/iio/accel/sca3000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/sca

[PATCH] fs/omfs: make use of kmemdup

2019-07-21 Thread Hariprasad Kelam
kmalloc + memcpy can be replaced with kmemdup. fix below issue reported by coccicheck ./fs/omfs/inode.c:366:9-16: WARNING opportunity for kmemdup Signed-off-by: Hariprasad Kelam --- fs/omfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/i

[PATCH 01/79] perf tools: Move loaded out of struct perf_counts_values

2019-07-21 Thread Jiri Olsa
Because we will make struct perf_counts_values public in following patches and 'loaded' is implementation related. No functional change is expected. Link: http://lkml.kernel.org/n/tip-418j9zovp8k4t71dqkng6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 4 ++-- tools

[RFC 00/79] perf tools: Initial libperf separation

2019-07-21 Thread Jiri Olsa
hi, we have long term goal to separate some of the perf functionality into library. This patchset is initial effort on separating some of the interface. Currently only the basic counting interface is exported, it allows to: - create cpu/threads maps - create evlist/evsel objects - add evsel

[PATCH 02/79] perf tools: Rename struct cpu_map to struct perf_cpu_map

2019-07-21 Thread Jiri Olsa
Renaming struct cpu_map to struct perf_cpu_map, so it could be part of libperf. Link: http://lkml.kernel.org/n/tip-isi1dlub7s0kf5wacvgpo...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/arch/x86/util/intel-bts.c | 2 +- to

[PATCH 03/79] perf tools: Rename struct thread_map to struct perf_thread_map

2019-07-21 Thread Jiri Olsa
Renaming struct thread_map to struct perf_thread_map, so it could be part of libperf. Link: http://lkml.kernel.org/n/tip-9cgc4auwc7ifg8zycnd67...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/builtin-record.c | 2

[PATCH 08/79] perf tools: Rename perf_evlist__new to evlist__new

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__new to evlist__new, so we don't have a name clash when we add perf_evlist__new in libperf. Link: http://lkml.kernel.org/n/tip-6trhnvxytm6m433qdjdzm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/powerpc/util/kvm-stat.c | 2 +- tools/perf/arch/x86/tests/

[PATCH 14/79] perf tools: Rename perf_evsel__open to evsel__open

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__open to evsel__open, so we don't have a name clash when we add perf_evsel__open in libperf. Link: http://lkml.kernel.org/n/tip-tdrno85i5s3d7kusfpl3t...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c| 2 +- tools/perf/builtin-top.c

[PATCH 07/79] perf tools: Rename perf_evlist__init to evlist__init

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__init to evlist__init, so we don't have a name clash when we add perf_evlist__init in libperf. Link: http://lkml.kernel.org/n/tip-6trhnvxytm6m433qdjdzm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evlist.c | 6 +++--- tools/perf/util/evlist.h | 4 ++-- tool

[PATCH 09/79] perf tools: Rename perf_evlist__delete to evlist__delete

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__delete to evlist__delete, so we don't have a name clash when we add perf_evlist__delete in libperf. Link: http://lkml.kernel.org/n/tip-od8hw47ixzd08wma85his...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/intel-cqm.c| 2 +- tools/perf/arch/

[PATCH 11/79] perf tools: Rename perf_evsel__new to evsel__new

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__new to evsel__new, so we don't have a name clash when we add perf_evsel__new in libperf. Link: http://lkml.kernel.org/n/tip-iej45vzu76gv69qaxod2p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-trace.c | 2 +- tools/perf/tests/sw-clock.c| 2 +- tool

[PATCH 06/79] perf tools: Rename perf_evsel__init to evsel__init

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__init to evsel__init, so we don't have a name clash when we add perf_evsel__init in libperf. Link: http://lkml.kernel.org/n/tip-ek9h0ywy7egemq42g34l7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.c | 8 tools/perf/util/evsel.h | 3 +-- tools/

[PATCH 10/79] perf tools: Rename perf_evsel__delete to evsel__delete

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__delete to evsel__delete, so we don't have a name clash when we add perf_evsel__delete in libperf. Also renaming perf_evsel__delete_priv to evsel__delete_priv. Link: http://lkml.kernel.org/n/tip-1idhej8393hqd36n1yy7r...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/

[PATCH 12/79] perf tools: Rename perf_evlist__add to evlist__add

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__add to evlist__add, so we don't have a name clash when we add perf_evlist__add in libperf. Link: http://lkml.kernel.org/n/tip-cjaidjrd4uae9t6ms1q5e...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-trace.c | 12 ++-- tools/perf/tests

[PATCH 13/79] perf tools: Rename perf_evlist__remove to evlist__remove

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__remove to evlist__remove, so we don't have a name clash when we add perf_evlist__remove in libperf. Link: http://lkml.kernel.org/n/tip-xgzjnysc47nshnxecize1...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-inject.c | 4 ++-- tools/perf/util/evlist.c| 2

[PATCH 15/79] perf tools: Rename perf_evsel__enable to evsel__enable

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__enable to evsel__enable, so we don't have a name clash when we add perf_evsel__enable in libperf. Link: http://lkml.kernel.org/n/tip-mgss0xfbhprdvdai1deob...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/arm/util/cs-etm.c| 2 +- tools/perf/arch/x86/util/int

[PATCH 16/79] perf tools: Rename perf_evsel__disable to evsel__disable

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__disable to evsel__disable, so we don't have a name clash when we add perf_evsel__disable in libperf. Link: http://lkml.kernel.org/n/tip-39471ej79lohwjen50um9...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/arm/util/cs-etm.c| 2 +- tools/perf/arch/x86/util/

[PATCH 18/79] perf tools: Rename perf_evsel__cpus to evsel__cpus

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__cpus to evsel__cpus, so we don't have a name clash when we add perf_evsel__cpus in libperf. Link: http://lkml.kernel.org/n/tip-3udl12g7x61nlxgasskcc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.h| 4 ++-- tools/perf/util/stat-display.c | 6 +++

[PATCH 17/79] perf tools: Rename perf_evsel__apply_filter to evsel__apply_filter

2019-07-21 Thread Jiri Olsa
Renaming perf_evsel__apply_filter to evsel__apply_filter, so we don't have a name clash when we add perf_evsel__apply_filter in libperf. Link: http://lkml.kernel.org/n/tip-39471ej79lohwjen50um9...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evlist.c | 2 +- tools/perf/util/evsel.

[PATCH 20/79] perf tools: Rename perf_evlist__close to evlist__close

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__close to evlist__close, so we don't have a name clash when we add perf_evlist__close in libperf. Link: http://lkml.kernel.org/n/tip-m1udn077bkmjdmaak6qhq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-kvm.c | 2 +- tools/perf/builtin-stat.c | 4 ++-- too

[PATCH 22/79] perf tools: Rename perf_evlist__disable to evlist__disable

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__disable to evlist__disable, so we don't have a name clash when we add perf_evlist__disable in libperf. Link: http://lkml.kernel.org/n/tip-vn0lz359acxl89cq6fm54...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/bui

[PATCH 23/79] libperf: Make libperf.a part of the build

2019-07-21 Thread Jiri Olsa
Adding empty libperf.a under toos/perf/lib and linking it with perf. It can also be built separately with: $ cd tools/perf/lib && make CC core.o LD libperf-in.o AR libperf.a LINK libperf.so Link: http://lkml.kernel.org/n/tip-lzrlfu3hutepbeqyntjks...@git.ke

[PATCH 19/79] perf tools: Rename perf_evlist__open to evlist__open

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__open to evlist__open, so we don't have a name clash when we add perf_evlist__open in libperf. Link: http://lkml.kernel.org/n/tip-7b8seckx0anm4xgqhglae...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/builtin-kvm.

[PATCH 21/79] perf tools: Rename perf_evlist__enable to evlist__enable

2019-07-21 Thread Jiri Olsa
Renaming perf_evlist__enable to evlist__enable, so we don't have a name clash when we add perf_evlist__enable in libperf. Link: http://lkml.kernel.org/n/tip-9q67kqgxx9dv4rkhy8uxp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- tools/perf/builti

[PATCH 26/79] libperf: Add perf/core.h header

2019-07-21 Thread Jiri Olsa
Adding perf/core.h header to be used in header files coming in following patches. Link: http://lkml.kernel.org/n/tip-4gcruaobuhxfyaa88j2gx...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/core.h | 9 + 1 file changed, 9 insertions(+) create mode 100644 tools/pe

[PATCH 25/79] libperf: Add libperf in python.so compilation

2019-07-21 Thread Jiri Olsa
Link libperf.a with python.so. Link: http://lkml.kernel.org/n/tip-kxsfxvj7e2noz2kzhyf2i...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Makefile.perf | 1 + tools/perf/util/setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/

[PATCH 24/79] libperf: Add build version support

2019-07-21 Thread Jiri Olsa
Adding shared library version, generating following files: $ ll toos/perf/lib/libperf.so* libperf.so -> libperf.so.0.0.1 libperf.so.0 -> libperf.so.0.0.1 libperf.so.0.0.1 Link: http://lkml.kernel.org/n/tip-d2cnt8qoqc5nxiibvzvuw...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/l

[PATCH 33/79] libperf: Add perf_thread_map__get/perf_thread_map__put

2019-07-21 Thread Jiri Olsa
Moving following functions: thread_map__get thread_map__put thread_map__comm under libperf with following names: perf_thread_map__get perf_thread_map__put perf_thread_map__comm Adding perf_thread_map__comm function for it to work/compile. Link: http://lkml.kernel.org/n/tip-2mhocgjehl

[PATCH 29/79] libperf: Add perf_cpu_map__dummy_new function

2019-07-21 Thread Jiri Olsa
Moving cpu_map__dummy_new into libperf as perf_cpu_map__dummy_new function. Link: http://lkml.kernel.org/n/tip-9j9jt4qht42mcd2p2vxsu...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/cpumap.c | 13 + tools/perf/lib/include/perf/cpumap.h | 4 tools/perf/

[PATCH 30/79] libperf: Add perf_cpu_map__get/perf_cpu_map__put

2019-07-21 Thread Jiri Olsa
Moving following functions: cpu_map__get cpu_map__put under libperf with following names: perf_cpu_map__get perf_cpu_map__put Link: http://lkml.kernel.org/n/tip-st4waeqceup3onlzpnu4h...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-ftrace.c| 2 +- tools

[PATCH 28/79] libperf: Add perf_cpu_map struct

2019-07-21 Thread Jiri Olsa
Adding perf_cpu_map struct into libperf. It's added as a declaration into into: include/perf/cpumap.h which will be included by users. The perf_cpu_map struct definition is added into: include/internal/cpumap.h which is not to be included by users, but shared within perf and libperf. We tri

[PATCH 34/79] libperf: Add perf_evlist and perf_evsel structs

2019-07-21 Thread Jiri Olsa
Adding perf_evlist and perf_evsel structs into libperf. It's added as a declarations into into: include/perf/evlist.h include/perf/evsel.h which will be included by users. The definitions are added into: include/internal/evlist.h include/internal/evsel.h which is not to be included by u

[PATCH 36/79] libperf: Include perf_evlist in evlist object

2019-07-21 Thread Jiri Olsa
Including perf_evlist in evlist object, will continue to move other generic things into libperf evlist. Link: http://lkml.kernel.org/n/tip-eb54iy0z3sb2543few205...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c| 4 ++-- tools/perf/builtin-sched.c | 2 +- tools/

[PATCH 27/79] libperf: Add debug output support

2019-07-21 Thread Jiri Olsa
Adding perf_set_print function allowing to set output function for warn/info/debug messages. Link: http://lkml.kernel.org/n/tip-2tf4pywtnzctbcgkgdhf0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/core.c | 34 ++ tools/perf/lib/include/perf

[PATCH 31/79] libperf: Add perf_thread_map struct

2019-07-21 Thread Jiri Olsa
Adding perf_thread_map struct into libperf. It's added as a declaration into into: include/perf/threadmap.h which will be included by users. The perf_thread_map struct definition is added into: include/internal/threadmap.h which is not to be included by users, but shared within perf and libp

[PATCH 35/79] libperf: Include perf_evsel in evsel object

2019-07-21 Thread Jiri Olsa
Including perf_evsel in evsel object, will continue to move other generic things into libperf evsel. Link: http://lkml.kernel.org/n/tip-5hwrt780h6bkry7pxvqpr...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-sched.c | 2 +- tools/perf/builtin-trace.c | 2 +- too

[PATCH 32/79] libperf: Add perf_thread_map__new_dummy function

2019-07-21 Thread Jiri Olsa
Moving following functions: thread_map__new_dummy thread_map__realloc thread_map__set_pid under libperf with following names: perf_thread_map__new_dummy perf_thread_map__realloc perf_thread_map__set_pid the other 2 functions are dependencies of the perf_thread_map__new_dummy function.

[PATCH 38/79] libperf: Add perf_evlist__init function

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__init function to initialize perf_evlist struct. Link: http://lkml.kernel.org/n/tip-uhs894b98iiydutjgr1z5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 5 + tools/perf/lib/include/perf/evlist.h | 4 tools/perf/lib/libperf.map

[PATCH 40/79] libperf: Add perf_evlist__remove function

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__remove function to remove perf_evsel from perf_evlist struct. Link: http://lkml.kernel.org/n/tip-7teqwbvjj0ju80vf62245...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 6 ++ tools/perf/lib/include/perf/evlist.h | 2 ++ tools/perf/lib/l

[PATCH 43/79] libperf: Add perf_cpu_map__new/perf_cpu_map__read functions

2019-07-21 Thread Jiri Olsa
Moving following functions: cpu_map__new cpu_map__read under libperf with following names: perf_cpu_map__new perf_cpu_map__read Link: http://lkml.kernel.org/n/tip-0qht8kirnnrewttpwvh1n...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 3 +-

[PATCH 39/79] libperf: Add perf_evlist__add function

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__add function to add perf_evsel in perf_evlist struct. Link: http://lkml.kernel.org/n/tip-pnfovrqcgxquioroelzfz...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 7 +++ tools/perf/lib/include/perf/evlist.h | 3 +++ tools/perf/lib/libperf

[PATCH 41/79] libperf: Add nr_entries to perf_evlist

2019-07-21 Thread Jiri Olsa
Moving nr_entries count into perf_evlist struct. Link: http://lkml.kernel.org/n/tip-63egghkoun3fyvbqcar3s...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c | 4 +- tools/perf/builtin-stat.c| 4 +- tools/perf/builtin-top.c |

[PATCH 37/79] libperf: Add perf_evsel__init function

2019-07-21 Thread Jiri Olsa
Adding perf_evsel__init function to initialize perf_evsel struct. Link: http://lkml.kernel.org/n/tip-nr0r23hdi4ifk7a487jdt...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c | 5 + tools/perf/lib/include/perf/evsel.h | 4 tools/perf/lib/libperf.map

[PATCH 44/79] libperf: Move zalloc.o into libperf

2019-07-21 Thread Jiri Olsa
We need it in both perf and libperf, thus moving it to libperf. Link: http://lkml.kernel.org/n/tip-tx94jf7u0cu45tjzl1xt1...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/Build | 5 + tools/perf/util/Build | 5 - tools/perf/util/python-ext-sources |

[PATCH 55/79] libperf: Add threads to struct perf_evlist

2019-07-21 Thread Jiri Olsa
Moving threads from evlist into perf_evlist struct. Link: http://lkml.kernel.org/n/tip-w959dr22jjbwti6b54zqk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-ftrace.c | 4 +-- tools/perf/builtin-kvm.c| 2 +- tools/perf/builtin-record.c

[PATCH 51/79] libperf: Add own_cpus to struct perf_evsel

2019-07-21 Thread Jiri Olsa
Moving own_cpus from evsel into perf_evsel struct. Link: http://lkml.kernel.org/n/tip-0wpynm56w2v1w8faidl04...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/internal/evsel.h | 1 + tools/perf/tests/event_update.c | 4 ++-- tools/perf/util/evlist.c|

[PATCH 56/79] libperf: Add perf_evlist__set_maps function

2019-07-21 Thread Jiri Olsa
Moving evlist__set_maps function under libperf. Link: http://lkml.kernel.org/n/tip-y5d2tm0l5cw0q1ts301uk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 3 +- tools/perf/builtin-script.c | 3 +- tools/perf/builtin-stat.c

[PATCH 46/79] libperf: Add perf_evsel__new function

2019-07-21 Thread Jiri Olsa
Adding perf_evsel__new function to create and init perf_evsel struct dynamicaly. Link: http://lkml.kernel.org/n/tip-usi0zxyxmai1ld94nrbum...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c | 11 +++ tools/perf/lib/include/perf/evsel.h | 1 + tools/perf/li

[PATCH 52/79] libperf: Add threads to struct perf_evsel

2019-07-21 Thread Jiri Olsa
Moving threads from evsel into perf_evsel struct. Link: http://lkml.kernel.org/n/tip-6wd4ajwminx747la2aelh...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c| 2 +- tools/perf/builtin-script.c| 4 ++-- tools/perf/lib

[PATCH 49/79] libperf: Add perf_evsel__delete function

2019-07-21 Thread Jiri Olsa
Adding perf_evsel__delete function to delete perf_evsel struct. Link: http://lkml.kernel.org/n/tip-07kg7phaj38n8uglrtua...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c | 6 ++ tools/perf/lib/include/perf/evsel.h | 1 + tools/perf/lib/libperf.map |

[PATCH 53/79] libperf: Add has_user_cpus to struct perf_evlist

2019-07-21 Thread Jiri Olsa
Moving has_user_cpus from evlist into perf_evlist struct. Link: http://lkml.kernel.org/n/tip-5xa3xakotbq9aphsyhte8...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/internal/evlist.h | 1 + tools/perf/util/evlist.c | 4 ++-- tools/perf/util/evlist.h

[PATCH 45/79] libperf: Add perf_evlist__new function

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__new function to create and init perf_evlist struct dynamicaly. Link: http://lkml.kernel.org/n/tip-3iqf213i8kiuvy05wuxat...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 11 +++ tools/perf/lib/include/perf/evlist.h | 1 + tools/per

[PATCH 48/79] libperf: Add perf_evlist__delete function

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__delete function to delete perf_evlist struct. Link: http://lkml.kernel.org/n/tip-l0bn8sv18gjt7cv44zvie...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 6 ++ tools/perf/lib/include/perf/evlist.h | 1 + tools/perf/lib/libperf.map

[PATCH 54/79] libperf: Add cpus to struct perf_evlist

2019-07-21 Thread Jiri Olsa
Moving cpus from evlist into perf_evlist struct. Link: http://lkml.kernel.org/n/tip-ds5cpk70kzmpiiut210n2...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/x86/util/intel-bts.c | 2 +- tools/perf/arch/x86/util/intel-pt.c | 4 +-- tools/perf/builtin-ftrace.c |

[PATCH 50/79] libperf: Add cpus to struct perf_evsel

2019-07-21 Thread Jiri Olsa
Moving cpus from evsel into perf_evsel struct. Link: http://lkml.kernel.org/n/tip-thply1bxow2zmjs48on3l...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-record.c| 2 +- tools/perf/builtin-script.c| 2 +- tools/perf/lib/include/in

[PATCH 47/79] libperf: Add perf_evlist__for_each_evsel macro

2019-07-21 Thread Jiri Olsa
Adding perf_evlist__for_each_evsel macro to iterate perf_evsel objects in evlist. Adding perf_evlist__next function to do that. Link: http://lkml.kernel.org/n/tip-usi0zxyxmai1ld94nrbum...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evlist.c | 20

[PATCH 61/79] libperf: Add perf_evsel__alloc_fd function

2019-07-21 Thread Jiri Olsa
Moving perf_evsel__alloc_fd function into libperf. It's not exported. Link: http://lkml.kernel.org/n/tip-wwik9ermjsd3kr9d107in...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c | 21 + tools/perf/lib/include/internal/evsel.h | 2 ++ tools

[PATCH 60/79] libperf: Add readn/writen function

2019-07-21 Thread Jiri Olsa
Moving readn/writen functions into libperf. Keeping the name because they will be shared only between perf and libperf. These are not exported functions. Link: http://lkml.kernel.org/n/tip-my4n8qzlt98b0xjxbljsc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/Build

[PATCH 63/79] libperf: Add perf_evsel__close function

2019-07-21 Thread Jiri Olsa
Adding perf_evsel__close function into libperf and keeping evsel__close to free ids. Link: http://lkml.kernel.org/n/tip-suelj76p0b7qxsjbgxvh0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-trace.c | 2 +- tools/perf/lib/evsel.c | 26 +++

[PATCH 58/79] libperf: Add fd array to struct perf_evsel

2019-07-21 Thread Jiri Olsa
Moving fd array from evsel into perf_evsel struct. Link: http://lkml.kernel.org/n/tip-1seqb25x5pqzr2s1dl4if...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/internal/evsel.h | 1 + tools/perf/util/bpf-loader.c| 2 +- tools/perf/util/evlist.c| 10

[PATCH 66/79] libperf: Add perf_cpu_map__for_each_cpu macro

2019-07-21 Thread Jiri Olsa
Adding following macro to libperf: perf_cpu_map__for_each_cpu And its related functions: perf_cpu_map__cpu perf_cpu_map__nr Link: http://lkml.kernel.org/n/tip-gi0e8h1qqrvh0enk43gp7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/cpumap.c | 13 + tool

[PATCH 65/79] libperf: Add perf_evsel__enable/disable/apply_filter functions

2019-07-21 Thread Jiri Olsa
Moving following functions: evsel__enable evsel__disable evsel__apply_filter under libperf with following names: perf_evsel__enable perf_evsel__disable perf_evsel__apply_filter Exporting only perf_evsel__enable/disable, keeping the perf_evsel__apply_filter private for the moment. Lin

[PATCH 57/79] libperf: Add xyarray object

2019-07-21 Thread Jiri Olsa
Moving xyarray object from perf to libperf, because it's going to be used in both. Link: http://lkml.kernel.org/n/tip-y9609h8rl7kegpc3pdll9...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-top.c | 1 - tools/perf/lib/Build | 1 + tools/per

[PATCH 64/79] libperf: Add perf_evsel__read function

2019-07-21 Thread Jiri Olsa
Move perf_evsel__read function into libperf as a public interface together with struct perf_counts_values for passing the counter values to the user. Link: http://lkml.kernel.org/n/tip-1c012lnj5ksqtgtlol3iq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c |

[PATCH 67/79] libperf: Add perf_evsel__cpus/threads functions

2019-07-21 Thread Jiri Olsa
Adding following functions: perf_evsel__cpus perf_evsel__threads to access evsel's cpus and threads objects Link: http://lkml.kernel.org/n/tip-av17t1gqrv3nc2rwkiq03...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/evsel.c | 10 ++ tools/perf/lib/include/per

[PATCH 62/79] libperf: Add perf_evsel__open function

2019-07-21 Thread Jiri Olsa
Adding perf_evsel__open function into libperf. It's a simplified version of evsel__open without fallback stuff. We can try to merge it in the future to libperf, but it has many glitches. Link: http://lkml.kernel.org/n/tip-l21dawds9vj61pbtqhcna...@git.kernel.org Signed-off-by: Jiri Olsa --- tool

[PATCH 59/79] libperf: Add nr_members to struct perf_evsel

2019-07-21 Thread Jiri Olsa
Moving nr_members from evsel into perf_evsel struct. Link: http://lkml.kernel.org/n/tip-my4n8qzlt98b0xjxbljsc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-report.c | 2 +- tools/perf/builtin-script.c | 2 +- tools/perf/builtin-stat.c |

[PATCH 75/79] libperf: Add perf_evlist test

2019-07-21 Thread Jiri Olsa
Add 2 simple perf_evlist tests to test counters reading interface through the struct evlist object. Link: http://lkml.kernel.org/n/tip-3jce1txwckrsaf7un68r1...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/Makefile | 2 +- tools/perf/lib/tests/test-evlist.c | 123 ++

[PATCH 76/79] libperf: Add perf_evsel tests

2019-07-21 Thread Jiri Olsa
Add 2 simple perf_evsel tests to test counters reading interface through the struct evsel object. Link: http://lkml.kernel.org/n/tip-0u2226ojf8zpb4jbvdz10...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/Makefile | 2 +- tools/perf/lib/tests/test-evsel.c | 82

[PATCH 73/79] libperf: Add perf_cpu_map test

2019-07-21 Thread Jiri Olsa
Add simple perf_cpu_map tests. Link: http://lkml.kernel.org/n/tip-143x51wped4tlsb06sapb...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/Makefile | 2 +- tools/perf/lib/tests/test-cpumap.c | 21 + 2 files changed, 22 insertions(+), 1 deletion(-) crea

[PATCH 79/79] libperf: Initial documentation

2019-07-21 Thread Jiri Olsa
Adding initial drafts of documentation files, hugely unfinished. Link: http://lkml.kernel.org/n/tip-aabha27sybyctxfpbdjwy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/Documentation/Makefile | 7 + tools/perf/lib/Documentation/man/libperf.rst | 102 +++ ...

[PATCH 78/79] libperf: Add perf_evsel__enable/disable test

2019-07-21 Thread Jiri Olsa
Add simple perf_evsel enable/disable test together with evsel counter reading interface. Link: http://lkml.kernel.org/n/tip-fsqjctyzhrzw5e085h3bv...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/test-evsel.c | 43 +++ 1 file changed, 43 insertions(+

[PATCH 74/79] libperf: Add perf_thread_map test

2019-07-21 Thread Jiri Olsa
Add simple perf_thread_map tests. Link: http://lkml.kernel.org/n/tip-ls4qrx9w9h446wnr8ftmy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/Makefile | 2 +- tools/perf/lib/tests/test-threadmap.c | 21 + 2 files changed, 22 insertions(+), 1 deletion

[PATCH 68/79] libperf: Add perf_evlist__open/close functions

2019-07-21 Thread Jiri Olsa
Adding following functions: perf_evlist__open perf_evlist__close It's a simplified version of evlist__open without sampling id index calculations. We can try to merge it in the future when these are moved to libperf. Also adding some helper evlist traversing macros. In future we can remove th

[PATCH 77/79] libperf: Add perf_evlist__enable/disable test

2019-07-21 Thread Jiri Olsa
Add simple perf_evlist enable/disable test together with evlist counter reading interface. Link: http://lkml.kernel.org/n/tip-6hfivpokxx49knjdtg1hc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/tests/test-evlist.c | 63 ++ 1 file changed, 63 insertions

[PATCH 72/79] libperf: Add tests support

2019-07-21 Thread Jiri Olsa
Adding simple test framework, now empty. Link: http://lkml.kernel.org/n/tip-62jm3ylb5o3d5tq8scbuk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/Makefile | 7 - tools/perf/lib/include/internal/tests.h | 19 + tools/perf/lib/tests/Makefile

  1   2   3   4   >