Re: [PATCH] arm64: dts: qcom: sdm845-cheza: add initial cheza dt

2019-05-17 Thread Doug Anderson
Hi, On Thu, May 16, 2019 at 6:53 PM Rob Clark wrote: > > From: Rob Clark > > This is essentialy a squash of a bunch of history of cheza dt updates > from chromium kernel, some of which were themselves squashes of history > from older chromium kernels. > > I don't claim any credit other than

Re: [GIT PULL] s390 patches for the 5.2 merge window #2

2019-05-17 Thread pr-tracker-bot
The pull request you sent on Fri, 17 May 2019 08:58:54 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux tags/s390-5.2-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/80111bfb672d8c04d60c25559243554f732f2848 Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] vfs.git mount followups

2019-05-17 Thread pr-tracker-bot
The pull request you sent on Fri, 17 May 2019 04:11:26 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bf8a9a4755737f6630756f0d87bea9b38f0ed369 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] KVM changes for 5.2 merge window

2019-05-17 Thread pr-tracker-bot
The pull request you sent on Fri, 17 May 2019 05:59:36 +0200: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c011d23ba046826ccf8c4a4a6c1d01c9ccaa1403 Thank you! -- Deet-doot-dot, I am a bot.

Re: binder stress testing

2019-05-17 Thread Todd Kjos
On Fri, May 17, 2019 at 8:55 AM Dmitry Vyukov wrote: > > On Fri, May 17, 2019 at 5:51 PM Dmitry Vyukov wrote: > > > > > > > > > > From: Dmitry Vyukov > > > > > Date: Fri, May 17, 2019 at 3:26 AM > > > > > To: Greg Kroah-Hartman, Arve Hjønnevåg, Todd Kjos, Martijn Coenen, > > > > > Joel

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Linus Torvalds
On Fri, May 17, 2019 at 11:21 AM Sean Christopherson wrote: > > I agree that conceptually EPC is private memory, but because EPC is > managed as a separate memory pool, SGX tags it VM_PFNMAP and manually > inserts PFNs, i.e. EPC effectively it gets classified as IO memory. > > And

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-17 Thread Song Liu
+Alexei, Daniel, and bpf > On May 17, 2019, at 2:10 AM, Peter Zijlstra wrote: > > On Fri, May 17, 2019 at 04:15:39PM +0800, Kairui Song wrote: >> Hi, I think the actual problem is that bpf_get_stackid_tp (and maybe >> some other bfp functions) is now broken, or, strating an unwind >> directly

Re: [PATCH 09/18] soc: qcom: ipa: GSI transactions

2019-05-17 Thread Alex Elder
On 5/17/19 1:33 PM, Arnd Bergmann wrote: > On Fri, May 17, 2019 at 8:08 PM Alex Elder wrote: >> >> On 5/15/19 2:34 AM, Arnd Bergmann wrote: +static void gsi_trans_tre_fill(struct gsi_tre *dest_tre, dma_addr_t addr, + u32 len, bool last_tre, bool bei, +

Re: [PATCH] tracing: silence GCC 9 array bounds warning

2019-05-17 Thread Miguel Ojeda
Hi Steven, On Fri, May 17, 2019 at 6:47 PM Steven Rostedt wrote: > > Hi Miguel, > > Linus mentioned this too. > > > https://lore.kernel.org/lkml/CAHk-=wihyb8w__yqjgyjyzsvniu5ctktcfycmcgdqvg8guj...@mail.gmail.com/T/#u Ah, I didn't see that. We were discussing here [1] backporting to 4.19 some

[PATCH] stacktrace: fix CONFIG_ARCH_STACKWALK stack_trace_save_tsk_reliable return

2019-05-17 Thread Joe Lawrence
Miroslav reported that the livepatch self-tests were failing, specifically a case in which the consistency model ensures that we do not patch a current executing function, "TEST: busy target module". Recent renovations to stack_trace_save_tsk_reliable() left it returning only an -ERRNO success

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Sean Christopherson
On Fri, May 17, 2019 at 11:33:30AM -0700, Linus Torvalds wrote: > On Fri, May 17, 2019 at 11:21 AM Sean Christopherson > wrote: > > > > I agree that conceptually EPC is private memory, but because EPC is > > managed as a separate memory pool, SGX tags it VM_PFNMAP and manually > > inserts PFNs,

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Andy Lutomirski
> On May 17, 2019, at 11:21 AM, Sean Christopherson > wrote: > >> On Fri, May 17, 2019 at 11:04:22AM -0700, Linus Torvalds wrote: >> On Fri, May 17, 2019 at 10:55 AM Sean Christopherson >> wrote: >>> >>> In this snippet, IS_PRIVATE() is true for anon inodes, false for >>> /dev/sgx/enclave.

Re: [PATCH V6 02/15] PCI/PME: Export pcie_pme_disable_msi() & pcie_pme_no_msi() APIs

2019-05-17 Thread Bjorn Helgaas
On Fri, May 17, 2019 at 11:23:36PM +0530, Vidya Sagar wrote: > On 5/17/2019 6:54 PM, Bjorn Helgaas wrote: > > Do you have "lspci -vvxxx" output for the root ports handy? > > > > If there's some clue in the standard config space that would tell us > > that MSI works for some events but not others,

Re: [PATCH] stacktrace: fix CONFIG_ARCH_STACKWALK stack_trace_save_tsk_reliable return

2019-05-17 Thread Joe Lawrence
On Fri, May 17, 2019 at 02:51:17PM -0400, Joe Lawrence wrote: > Miroslav reported that the livepatch self-tests were failing, > specifically a case in which the consistency model ensures that we do > not patch a current executing function, "TEST: busy target module". > > Recent renovations to

Re: [v2 PATCH] RISC-V: Add a PE/COFF compliant Image header.

2019-05-17 Thread Atish Patra
On 5/17/19 10:39 AM, Paul Walmsley wrote: On Wed, 1 May 2019, Atish Patra wrote: Currently, last stage boot loaders such as U-Boot can accept only uImage which is an unnecessary additional step in automating boot flows. Add a PE/COFF compliant image header that boot loaders can parse and

[RFC PATCH 1/4] ftrace: Expose flags used for ftrace_replace_code()

2019-05-17 Thread Naveen N. Rao
Since ftrace_replace_code() is a __weak function and can be overridden, we need to expose the flags that can be set. So, move the flags enum to the header file. Signed-off-by: Naveen N. Rao --- include/linux/ftrace.h | 5 + kernel/trace/ftrace.c | 5 - 2 files changed, 5 insertions(+),

[RFC PATCH 2/4] x86/ftrace: Fix use of flags in ftrace_replace_code()

2019-05-17 Thread Naveen N. Rao
In commit a0572f687fb3c ("ftrace: Allow ftrace_replace_code() to be schedulable), the generic ftrace_replace_code() function was modified to accept a flags argument in place of a single 'enable' flag. However, the x86 version of this function was not updated. Fix the same. Fixes: a0572f687fb3c

[RFC PATCH 0/4] Nop out the preceding mflr with -mprofile-kernel

2019-05-17 Thread Naveen N. Rao
On powerpc64, -mprofile-kernel results in two instructions being emitted: 'mflr r0' and 'bl _mcount'. So far, we were only nop'ing out the branch to _mcount(). This series implements an approach to also nop out the preceding mflr. Patches 1-3 are generic changes. Patch 2 is a fix for x86, but

[RFC PATCH 3/4] ftrace: Expose __ftrace_replace_code()

2019-05-17 Thread Naveen N. Rao
While over-riding ftrace_replace_code(), we still want to reuse the existing __ftrace_replace_code() function. Rename the function and make it available for other kernel code. Signed-off-by: Naveen N. Rao --- include/linux/ftrace.h | 1 + kernel/trace/ftrace.c | 8 2 files changed, 5

[RFC PATCH 4/4] powerpc/ftrace: Additionally nop out the preceding mflr with -mprofile-kernel

2019-05-17 Thread Naveen N. Rao
With -mprofile-kernel, gcc emits 'mflr r0', followed by 'bl _mcount' to enable function tracing and profiling. So far, with dynamic ftrace, we used to only patch out the branch to _mcount(). However, Nick Piggin points out that "mflr is executed by the branch unit that can only execute one per

Re: [PATCH] tracing: silence GCC 9 array bounds warning

2019-05-17 Thread Miguel Ojeda
On Fri, May 17, 2019 at 7:59 PM Linus Torvalds wrote: > > On Fri, May 17, 2019 at 2:25 AM Miguel Ojeda > wrote: > > > > + memset((char *)(iter) + offsetof(struct trace_iterator, seq), 0, > > + sizeof(struct trace_iterator) - > > + offsetof(struct trace_iterator,

Re: [PATCH] stacktrace: fix CONFIG_ARCH_STACKWALK stack_trace_save_tsk_reliable return

2019-05-17 Thread Josh Poimboeuf
On Fri, May 17, 2019 at 02:51:17PM -0400, Joe Lawrence wrote: > Miroslav reported that the livepatch self-tests were failing, > specifically a case in which the consistency model ensures that we do > not patch a current executing function, "TEST: busy target module". > > Recent renovations to

Re: [PATCH] clk: qcom: gdsc: WARN when failing to toggle

2019-05-17 Thread Jeffrey Hugo
On 5/3/2019 6:17 PM, Bjorn Andersson wrote: Failing to toggle a GDSC as the driver core is attaching the power-domain to a device will cause a silent probe deferral. Provide an explicit warning to the developer, in order to reduce the amount of time it take to debug this. Signed-off-by: Bjorn

Re: [PATCH v2] tipc: fix modprobe tipc failed after switch order of device registration

2019-05-17 Thread David Miller
You're working very quickly, and sloppily. I reverted the v1 of this patch from my tree. And I'm going to wait some time before applying this one, it needs review.

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Stephen Smalley
On 5/17/19 2:05 PM, Stephen Smalley wrote: On 5/17/19 1:12 PM, Andy Lutomirski wrote: On May 17, 2019, at 9:37 AM, Stephen Smalley wrote: On 5/17/19 12:20 PM, Stephen Smalley wrote: On 5/17/19 11:09 AM, Sean Christopherson wrote: On Fri, May 17, 2019 at 09:53:06AM -0400, Stephen Smalley

Re: [PATCH 2/3] thermal: sun50i: add thermal driver for h6

2019-05-17 Thread Vasily Khoruzhick
On Sun, May 12, 2019 at 6:39 AM Maxime Ripard wrote: > > Hi, > > Thanks a lot for working on this! > > On Sun, May 12, 2019 at 04:26:13AM -0400, Yangtao Li wrote: > > This patch adds the support for allwinner thermal sensor, within > > allwinner SoC. It will register sensors for thermal framework

Re: KASAN: use-after-free Read in p54u_load_firmware_cb

2019-05-17 Thread Christian Lamparter
On Monday, May 13, 2019 3:28:30 PM CEST Oliver Neukum wrote: > On Mo, 2019-05-13 at 03:23 -0700, syzbot wrote: > > syzbot has found a reproducer for the following crash on: > > > > HEAD commit:43151d6c usb-fuzzer: main usb gadget fuzzer driver > > git tree:

Re: [PATCH] libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead

2019-05-17 Thread Kees Cook
On Fri, May 17, 2019 at 10:28:48AM -0700, Dan Williams wrote: > On Fri, May 17, 2019 at 8:57 AM Kees Cook wrote: > > > > On Fri, May 17, 2019 at 08:08:27AM -0700, Dan Williams wrote: > > > As far as I can see it's mostly check_heap_object() that is the > > > problem, so I'm open to finding a way

ENTREATY

2019-05-17 Thread Aichi Electric Co . Ltd
Good Day, I am establishing contact in respect to administration of financial resources as your qualities match our preferred personality based on your profile from linkedin, you would be responsible for our financial representation by receiving and disbursing financial resources within the

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Sean Christopherson
On Fri, May 17, 2019 at 02:05:39PM -0400, Stephen Smalley wrote: > On 5/17/19 1:12 PM, Andy Lutomirski wrote: > > > >How can that work? Unless the API changes fairly radically, users > >fundamentally need to both write and execute the enclave. Some of it will > >be written only from already

Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-05-17 Thread Borislav Petkov
On Fri, May 17, 2019 at 11:06:07AM -0700, Luck, Tony wrote: > and thus end up with that extra level on indent for the rest > of the function. Ok: --- diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 5bcecadcf4d9..25e501a853cd 100644 ---

[PATCH 01/73] perf annotate: Remove hist__account_cycles() from callback

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Jin Yao The hist__account_cycles() function is executed when the hist_iter__branch_callback() is called. But it looks it's not necessary. In hist__account_cycles, it already walks on all branch entries. This patch moves the hist__account_cycles out of callback, now the data processing

[PATCH 02/73] perf test: Fix spelling mistake "leadking" -> "leaking"

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Colin Ian King There are a couple of spelling mistakes in test assert messages. Fix them. Signed-off-by: Colin King Reviewed-by: Mukesh Ojha Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: kernel-janit...@vger.kernel.org Link:

[PATCH 04/73] tools lib traceevent: Remove hard coded install paths from pkg-config file

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Install directories of header and library files are hard coded in pkg-config template file. They must be configurable, the Makefile should set them on the compilation / install stage. Signed-off-by: Tzvetomir Stoyanov Cc: Jiri Olsa Link:

[PATCH 03/73] csky: Add support for libdw

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Mao Han This patch add support for DWARF register mappings and libdw registers initialization, which is used by perf callchain analyzing when --call-graph=dwarf is given. Here is the elfutils csky backend patch set: https://sourceware.org/ml/elfutils-devel/2019-q2/msg7.html

[PATCH 05/73] perf tools: Speed up report for perf compiled with linwunwind

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa When compiled with libunwind, perf does some preparatory work when processing side-band events. This is not needed when report actually don't unwind dwarf callchains, so it's disabled with dwarf_callchain_users bool. However we could move that check to higher level and shield

[GIT PULL] perf/core improvements and fixes

2019-05-17 Thread Arnaldo Carvalho de Melo
commit 6b89d4c1ae8596a8c9240f169ef108704de373f2: perf/x86/intel: Fix INTEL_FLAGS_EVENT_CONSTRAINT* masking (2019-05-10 08:04:17 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.2-20190517 for you to fetch

[PATCH 06/73] tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To bring in the change made in this cset: b69656fa7ea2 ("x86/uaccess: Fix up the fixup") Silencing this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S' diff -u

[PATCH 08/73] tools x86 uapi asm: Sync the pt_regs.h copy with the kernel sources

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: 878068ea270e ("perf/x86: Support outputting XMM registers") That will be used in a followup patch to allow users to ask for some or all of those registers to be collected in certain contatexts. This silences the following perf build

[PATCH 10/73] perf record: Fix suggestion to get list of registers usable with --user-regs and --intr-regs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ perf record -h -I Usage: perf record [] [] or: perf record [] -- [] -I, --intr-regs[=] sample selected machine registers on interrupt, use -I ? to list register names $ m $ perf record -I ? Workload failed:

[PATCH 15/73] perf scripts python: exported-sql-viewer.py: Add tree level

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter As preparation for adding support for copying to clipboard, keep track of what level each item is in tree items. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190503120828.25326-4-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 07/73] tools arch uapi: Sync the x86 kvm.h copy

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: 59073aaf6de0 ("kvm: x86: Add exception payload fields to kvm_vcpu_events") This silences the following perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at

[PATCH 12/73] perf tools x86: Add support for recording and printing XMM registers

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Icelake and later platforms support collecting XMM registers with PEBS event. Add support for 'perf script' to dump them, and support for the register parser in 'perf record -I=' ... to configure them. For now they are just printed in hex, we could potentially later add other

[PATCH 13/73] perf scripts python: exported-sql-viewer.py: Move view creation

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter As preparation for adding support for copying to clipboard, create view in TreeWindowBase instead of derived classes. Committer testing: Tested using an old .db used to test some older patches: $ python ~acme/libexec/perf-core/scripts/python/exported-sql-viewer.py

[PATCH 09/73] tools pci: Do not delete pcitest.sh in 'make clean'

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When running 'make -C tools clean' I noticed that a revision controlled file was being deleted: $ git diff diff --git a/tools/pci/pcitest.sh b/tools/pci/pcitest.sh deleted file mode 100644 index 75ed48ff2990.. --- a/tools/pci/pcitest.sh +++

[PATCH 11/73] perf parse-regs: Improve error output when faced with unknown register name

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Add quotes around the register name and suggest using 'perf record -I?' to get the list of available registers. Before: # perf record -Idi,xmm20,xmm1 Warning: unknown register xmm20, check man page Usage: perf record [] [] or: perf record [] --

[PATCH 17/73] perf scripts python: exported-sql-viewer.py: Add context menu

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a context menu (right-click) that provides options for copying to clipboard, including, for trees, the ability to copy only the cell under the mouse pointer. Committer testing: $ python ~acme/libexec/perf-core/scripts/python/exported-sql-viewer.py

[PATCH 19/73] perf vendor events intel: Add uncore_upi JSON support

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Kan Liang Perf cannot parse UPI (Intel's "Ultra Path Interconnect" [1]) events. # perf stat -e UPI_DATA_BANDWIDTH_TX event syntax error: 'UPI_DATA_BANDWIDTH_TX' \___ parser error Run 'perf list' for a list of valid events The JSON lists call the box UPI

[PATCH 18/73] perf scripts python: exported-sql-viewer.py: Add 'About' dialog box

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter With support for Python 2 or 3 and PySide 1 or 2 (Qt 4 or 5), it is useful to see what versions are in use. Add an 'About' dialog box that displays Python, PySide, Qt and database server (SQLite or PostgreSQL) version numbers. Committer testing: $ python

[PATCH 20/73] perf machine: Null-terminate version char array upon fgets(/proc/version) error

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Donald Yandt If fgets() fails due to any other error besides end-of-file, the version char array may not even be null-terminated. Signed-off-by: Donald Yandt Cc: Alexander Shishkin Cc: Avi Kivity Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Yanmin Zhang Fixes: a1645ce12adb ("perf: 'perf

[PATCH 16/73] perf scripts python: exported-sql-viewer.py: Add copy to clipboard

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add support for copying to clipboard. Two menu options are added to copy the selected rows / columns with normal spacing, or as comma-separated-values. In the case of trees, only entire rows can be copied. Comitter testing: $ python

[PATCH 14/73] perf scripts python: exported-sql-viewer.py: Fix error when shrinking / enlarging font

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix the following error if shrink / enlarge font is used with the help window. Traceback (most recent call last): File "tools/perf/scripts/python/exported-sql-viewer.py", line 2791, in ShrinkFont ShrinkFont(win.view) AttributeError: 'HelpWindow' object has no

[PATCH 22/73] tools lib traceevent: Add support for man pages with multiple names

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Added support for man pages with multiple names, used to combine the description of several APIs into one page. Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 23/73] tools lib traceevent: Man pages for tep_handler related APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Added 4 new man pages, describing libtraceevent APIs: tep_register_comm(), tep_override_comm(), tep_is_pid_registered(), tep_data_comm_from_pid(), tep_data_pid_from_comm(), tep_cmdline_pid(), tep_alloc(), tep_free(), tep_get_long_size(),

[PATCH 21/73] tools lib traceevent: Introduce man pages

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Initial support for libtraceevent man pages - Documentation directory, templates, configurations, Makefiles. The first man page is also part of the patch - summary of the library and all its APIs. Building of the documentation is integrated into the libtraceevent build

[PATCH 25/73] tools lib traceevent: Man page for get/set cpus APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_get_cpus(), tep_set_cpus() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 24/73] tools lib traceevent: Man page for header_page APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create a man page for libtraceevent APIs: tep_get_header_page_size(), tep_get_header_timestamp_size(), tep_is_old_format() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 29/73] tools lib traceevent: Man page for tep_strerror()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man page for tep_strerror() libtraceevent API. Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 31/73] tools lib traceevent: Man pages for function related libtraceevent APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Added new man pages, describing function related libtraceevent APIs: tep_register_function(), tep_register_print_string(), tep_find_function(), tep_find_function_address(), tep_set_function_resolver(), tep_reset_function_resolver() Signed-off-by: Tzvetomir

[PATCH 30/73] tools lib traceevent: Man pages for event handler APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_register_event_handler() tep_unregister_event_handler() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 28/73] tools lib traceevent: Man page for page size APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_get_page_size() tep_set_page_size() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 27/73] tools lib traceevent: Man page for host endian APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_is_bigendian(), tep_is_local_bigendian(), tep_set_local_bigendian() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 26/73] tools lib traceevent: Man page for file endian APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_is_file_bigendian(), tep_set_file_bigendian() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 35/73] tools lib traceevent: Man page for list events APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man page for libtraceevent APIs: tep_list_events() tep_list_events_copy() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 34/73] tools lib traceevent: Man pages for event find APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_find_event() tep_find_event_by_name() tep_find_event_by_record() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 36/73] tools lib traceevent: Man pages for libtraceevent event get APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_get_event(), tep_get_first_event(), tep_get_events_count() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 37/73] tools lib traceevent: Man pages for find field APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_find_common_field(), tep_find_field() tep_find_any_field() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 32/73] tools lib traceevent: Man pages for registering print function

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_register_print_function() tep_unregister_print_function() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 33/73] tools lib traceevent: Man page for tep_read_number()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man page for tep_read_number() libtraceevent API. Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 38/73] tools lib traceevent: Man pages for get field value APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_get_any_field_val(), tep_get_common_field_val(), tep_get_field_val(), tep_get_field_raw() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org

[PATCH 41/73] tools lib traceevent: Man pages for event fields APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_event_common_fields(), tep_event_fields() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 39/73] tools lib traceevent: Man pages for print field APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_print_field(), tep_print_fields(), tep_print_num_field(), tep_print_func_field() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 40/73] tools lib traceevent: Man page for tep_read_number_field()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man page for libtraceevent API tep_read_number_field(). Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 42/73] tools lib traceevent: Man pages for event filter APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Added new man pages, describing libtraceevent event filter APIs: tep_filter_alloc() tep_filter_free() tep_filter_reset() tep_filter_add_filter_str() tep_filter_strerror() tep_event_filtered() tep_filter_remove_event() tep_filter_match()

[PATCH 43/73] tools lib traceevent: Man pages for parse event APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_parse_event(), tep_parse_format() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 45/73] tools lib traceevent: Man pages for APIs used to extract common fields from a record

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for libtraceevent APIs: tep_data_type(), tep_data_pid(), tep_data_preempt_count(), tep_data_flags() Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 44/73] tools lib traceevent: Man page for tep_parse_header_page()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man page for tep_parse_header_page() libtraceevent API. Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-trace-de...@vger.kernel.org Link:

[PATCH 49/73] perf record: Implement COMPRESSED event record and its attributes

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Implemented PERF_RECORD_COMPRESSED event, related data types, header feature and functions to write, read and print feature attributes from the trace header section. comp_mmap_len preserves the size of mmaped kernel buffer that was used during collection. comp_mmap_len

[PATCH 46/73] tools lib traceevent: Man pages for trace sequences APIs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov Create man pages for trace sequences libtraceevent APIs: trace_seq_init(), trace_seq_destroy(), trace_seq_reset(), trace_seq_terminate(), trace_seq_putc(), trace_seq_puts(), trace_seq_printf(), trace_seq_vprintf(), trace_seq_do_fprintf(),

[PATCH 47/73] perf build tests: Add NO_LIBZSTD=1 to make_minimal

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can test the ifdef parts for this feature. Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: https://lkml.kernel.org/n/tip-7o65mfl10wlvm8v3f0omb...@git.kernel.org

[PATCH 48/73] perf session: Define 'bytes_transferred' and 'bytes_compressed' metrics

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Define 'bytes_transferred' and 'bytes_compressed' metrics to calculate ratio in the end of the data collection: compression ratio = bytes_transferred / bytes_compressed The 'bytes_transferred' metric accumulates the amount of bytes that was extracted from the

[PATCH 55/73] perf record: Implement -z,--compression_level[=] option

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Implemented -z,--compression_level[=] option that enables compression of mmaped kernel data buffers content in runtime during perf record mode collection. Default option value is 1 (fastest compression). Compression overhead has been measured for serial and AIO streaming

[PATCH 51/73] perf tools: Introduce Zstd streaming based compression API

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Implemented functions are based on Zstd streaming compression API. The functions are used in runtime to compress data that come from mmaped kernel buffer. zstd_init(), zstd_fini() are used for initialization and finalization to allocate and deallocate internal zstd

[PATCH 54/73] perf report: Add stub processing of compressed events for -D

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Committer note: Split from a larger patch, this only dumps PERF_RECORD_COMPRESSED as unhandled, so that when we introduce the record part in the next patch, we don't see unhandled events when using 'perf record -D'. Changed it so that we dump the event if the handler is

[PATCH 50/73] perf mmap: Implement dedicated memory buffer for data compression

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Implemented mmap data buffer that is used as the memory to operate on when compressing data in case of serial trace streaming. Signed-off-by: Alexey Budankov Reviewed-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 52/73] perf record: Implement compression for serial trace streaming

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Compression is implemented using the functions from zstd.c. As the memory to operate on the compression uses mmap->data buffer. If Zstd streaming compression API fails for some reason the data to be compressed are just copied into the memory buffers using plain memcpy().

[PATCH 53/73] perf record: Implement compression for AIO trace streaming

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Compression is implemented using the functions from zstd.c. As the memory to operate on the compression uses mmap->aio.data[] buffers. If Zstd streaming compression API fails for some reason the data to be compressed are just copied into the memory buffers using plain

[PATCH 57/73] perf inject: Enable COMPRESSED record decompression

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Initialized decompression part of Zstd based API so COMPRESSED records would be decompressed into the resulting output data file. Signed-off-by: Alexey Budankov Reviewed-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 61/73] perf vendor events arm64: Remove [[:xdigit:]] wildcard

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Florian Fainelli ARM64's implementation of get_cpuidr_str() masks out the revision bits [3:0] while reading the CPU identifier, there is no need for the [[:xdigit:]] wildcard. Signed-off-by: Florian Fainelli Cc: Alexander Shishkin Cc: Catalin Marinas Cc: Ganapatrao Kulkarni Cc: Jiri

[PATCH 56/73] perf report: Implement perf.data record decompression

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov zstd_init(, comp_level = 0) initializes decompression part of API only hat now consists of zstd_decompress_stream() function. The perf.data PERF_RECORD_COMPRESSED records are decompressed using zstd_decompress_stream() function into a linked list of mmaped memory regions

[PATCH 62/73] perf vendor events arm64: Map Brahma-B53 CPUID to cortex-a53 events

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Florian Fainelli Broadcom's Brahma-B53 CPUs support the same type of events that the Cortex-A53 supports, recognize its CPUID and map it to the cortex-a53 events. Signed-off-by: Florian Fainelli Acked-by: Will Deacon Cc: Alexander Shishkin Cc: Catalin Marinas Cc: Ganapatrao Kulkarni

[PATCH 58/73] perf tests: Implement Zstd comp/decomp integration test

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Introduce a basic integration test for Zstd based record compression/decompression using 'perf record' and 'perf report'. Committer notes: Reduce a bit the freq (from 25 kHz to 5 kHz) and the number of /dev/null records read (from 1000 to 500), reducing the time it takes

[PATCH 60/73] perf jevents: Remove unused variable

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Zenghui Yu Address gcc warning: pmu-events/jevents.c: In function ‘save_arch_std_events’: pmu-events/jevents.c:417:15: warning: unused variable ‘sb’ [-Wunused-variable] struct stat *sb = data; ^~ Signed-off-by: Zenghui Yu Cc: Alexander Shishkin Cc: Jiri Olsa

[PATCH 59/73] perf test zstd: Fixup verbose mode output

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The shell tests should not redirect useful output to /dev/null, as that is done automatically by 'perf test' in non verbose mode, so remove that from the zstd comp/decomp test, fixing up verbose mode. Before: $ perf test zstd 68: Zstd perf.data

[PATCH 63/73] perf vendor events arm64: Add Cortex-A57 and Cortex-A72 events

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Florian Fainelli The Cortex-A57 and Cortex-A72 both support all ARMv8 recommended events up to the RC_ST_SPEC (0x91) event with the exception of: - L1D_CACHE_REFILL_INNER (0x44) - L1D_CACHE_REFILL_OUTER (0x45) - L1D_TLB_RD (0x4E) - L1D_TLB_WR (0x4F) - L2D_TLB_REFILL_RD (0x5C) -

[PATCH 65/73] perf parse-regs: Add generic support for arch__intr/user_reg_mask()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Kan Liang There may be different register mask for use with intr or user on some platforms, e.g. Icelake. Add weak functions arch__intr_reg_mask() and arch__user_reg_mask() to return intr and user register mask respectively. Check mask before printing or comparing the register name.

[PATCH 64/73] perf parse-regs: Split parse_regs

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Kan Liang The available registers for --int-regs and --user-regs may be different, e.g. XMM registers. Split parse_regs into two dedicated functions for --int-regs and --user-regs respectively. Modify the warning message. "--user-regs=?" should be applied to show the available registers

[PATCH 66/73] perf regs x86: Add X86 specific arch__intr_reg_mask()

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Kan Liang XMM registers can be collected on Icelake and later platforms. Add specific arch__intr_reg_mask(), which creating an event to check if the kernel and hardware can collect XMM registers. Test on Skylake which doesn't support XMM registers collection. There is nothing changed.

[PATCH 70/73] perf docs: Add description for stderr

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Thomas Richter 'perf report' displays recorded data on the screen and emits warnings and debug messages in the status line (last one on screen). perf also supports the possibility to write all debug messages to stderr (instead of writing them to the status line). This is achieved with

[PATCH 69/73] perf intel-pt: Fix sample timestamp wrt non-taken branches

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The sample timestamp is updated to ensure that the timestamp represents the time of the sample and not a branch that the decoder is still walking towards. The sample timestamp is updated when the decoder returns, but the decoder does not return for non-taken branches. Update

<    1   2   3   4   5   6   7   >