[PATCH] snd_hda_intel for F/S T4210

2007-08-29 Thread Thomas Richter
Hi folks, the patch below, to be applied to sound/pci/hda/patch_sigmatel.c fixes the audio output on the Fujiutsu/Siemens lifebook T4210 (and probably on others). It is suitable for the kernel 2.6.23-rc4 (and probably others). Without the patch, audio fails and the hda driver fails to load with

[PATCH] joydev.c: Digital joysticks on analog ports

2005-07-07 Thread Thomas Richter
ioctl JSIOCSDIGITAL for joydev allows to adjusts this on the running driver. Greetings, Thomas Richter Patch for drivers/input/joydev.c: /* snip */ --- ../linux-2.4.31/drivers/input/joydev.c 2003-06-13 16:51:34.0 +0200 +++ drivers/input/joydev.c 2005-07-06 22:37

Re: Fw: [Bugme-new] [Bug 4334] New: kernel support for netmos 9835/9735 crippled since 2.6.9

2005-03-14 Thread Thomas Richter
Hi Andrew, I'm inclined to simply revert that change. In case the mentioned lines do cause problems, please do not hesitate to remove them. As the comments indicate, the patch was completely untested as I haven't had the cards available. However, please ensure that the parallel port remains

i835GM flicker on panning

2013-09-22 Thread Thomas Richter
Hi folks, hi Daniel, there is still an issue with flicker on panning with the 835GM chipset. As already explained, the flicker only appears if the panning position satisfies certain alignment constraints, in specific. As long as the plane pointer is aligned to 64 byte boundaries, everything

Re: i835GM flicker on panning

2013-09-22 Thread Thomas Richter
On 22.09.2013 22:03, Daniel Vetter wrote: Hm, that sounds a bit more like the ddx is having fun with rendering. Have you tried switching the backed from to either SNA or UXA? Also adding relevant mailing lists ... No, whether I use uxa or sna makes no difference, same problem. I don't think

Re: i835GM flicker on panning

2013-09-23 Thread Thomas Richter
Hi Daniel, hi others, On 22.09.2013 22:03, Daniel Vetter wrote: Hm, that sounds a bit more like the ddx is having fun with rendering. Have you tried switching the backed from to either SNA or UXA? Also adding relevant mailing lists ... No, whether I use uxa or sna makes no difference, same

Re: i835GM flicker on panning

2013-09-23 Thread Thomas Richter
Hi folks, Can you please test with Option LinearFramebuffer true? Thanks, Daniel Tested again. Yes, indeed, LinearFramebuffer does make a difference. Without it, panning to the right causes flicker, with it, moving the mouse to the right - panning right (thus scrolling the screen

[HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-09 Thread Thomas Richter
Hi Alan, hi Dominik, maybe you want me to help out a bit - I'm having trouble getting a Delock PCMCIA to USB-2 adapter to work under linux, with strange behavior in some situations. The trouble is that while I can *read* via fast (usb 2.0) transfers from the port, an ehci-triggered write just

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-09 Thread Thomas Richter
On 09.08.2013 19:46, Alan Stern wrote: On Fri, 9 Aug 2013, Thomas Richter wrote: Hi Alan, hi Dominik, maybe you want me to help out a bit - I'm having trouble getting a Delock PCMCIA to USB-2 adapter to work under linux, with strange behavior in some situations. The trouble is that while I

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
On 10.08.2013 03:07, Alan Stern wrote: Nope. udevd refuses to start and says that it requires at least 2.6.32, which means that apparently something changed in the kernel-userland interface in 2.6.32. Thus, my conclusion that there's probably something nasty going on in userland with udev.

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
Hi Alan, later... ok, bisected this even more. 2.6.31.14 kernel, old udev works fine. Then removed /etc/rcS.d/S02udev to be sure the 2.6.32 kernel would not pull the new udev. Rebuild 2.6.32.1 with *identical* kernel configuration, booted up, manually started the *old* udev as in 2.6.31.14,

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
On 10.08.2013 14:04, Alan Stern wrote: On Sat, 10 Aug 2013, Thomas Richter wrote: What about other usb modules? I would probably need a short recap on through which modules the user data flows before the write is triggered, and which modules are involved in the configuration of the NEC

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
Hi Josep, Have you tried to wait for 5 minutes? It could also be related to it what happens to my kernel 3.11.0-rc4 (and rc3) and USB I plug the drive. Only after 5 minutes of high-speed of USb bus, it mounts. No, currently I don't even depend on gnome mounting it. I don't run a desktop. I

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
On 10.08.2013 22:03, Josep Lladonosa wrote: I add that some usb pendrives mount immediately and some others don't... Nope, all the same here... None works. Pen drive, hard disk, does not matter. Greetings, Thomas -- To unsubscribe from this list: send the line unsubscribe

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-10 Thread Thomas Richter
Hi Josep, Perhaps both cases are related, and if you waited after those 5 minutes of resets, your pen would work fine... Have you checked your /var/log/messages after insertion of pen? My automount is under XFCE, not Gnome... ;) Unclear. Messages I get seem to make sense. First, it detects

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-11 Thread Thomas Richter
On 11.08.2013 03:46, Alan Stern wrote: On Sat, 10 Aug 2013, Thomas Richter wrote: Sorry, need to look further. I replaced ehci-pci from 2.6.31.14, and yenta_socket as well. No changes were necessary. Also replaced ehci-hcd, Do you mean that you took the source code for ehci-hcd from

Re: [HANG] Trouble with NEC-based USB adapter in PCMCIA slot on E7110

2013-08-11 Thread Thomas Richter
On 11.08.2013 03:46, Alan Stern wrote: On Sat, 10 Aug 2013, Thomas Richter wrote: Sorry, need to look further. I replaced ehci-pci from 2.6.31.14, and yenta_socket as well. No changes were necessary. Also replaced ehci-hcd, Do you mean that you took the source code for ehci-hcd from

[PCMCIA] Solved: No USB 2.0 (ehci) in PCMCIA slot on E7110

2013-08-11 Thread Thomas Richter
Dear Alan, Josep, David, dear PCMCIA maintainers, this is on followup of a hang I reported earlier when using a delock (NEC-based) PCMCIA card in a O2Micro slot of an oldish E7110 Fujitsu laptop. The phenomenon is that read accesses through the ehci interface of the USB host adapter are

Kernel OOPS when reloading i915 after resume from suspend

2014-06-29 Thread Thomas Richter
Hi Ville, hi Daniel, still experimenting with the resume from suspend on the Fujitsu S6010. I can, however, still create a kernel oops. The kernel source comes from alm_fixes5, kernel 3.15.0-rc7+. For that, do the following: 1) Shut down X, 2) Unbind the consoles: echo 0

Re: Kernel OOPS when reloading i915 after resume from suspend

2014-07-03 Thread Thomas Richter
Am 02.07.2014 23:22, schrieb Pavel Machek: Hi! still experimenting with the resume from suspend on the Fujitsu S6010. I can, however, still create a kernel oops. The kernel source comes from alm_fixes5, kernel 3.15.0-rc7+. For that, do the following: 1) Shut down X, 2) Unbind the consoles:

[PATCH] bpf: fix selftest/bpf/test_pkt_md_access on s390x

2017-08-04 Thread Thomas Richter
next_id->fd) 0 nsec test_bpf_obj_id:PASS:check total map id found by get_next_id 0 nsec test_pkt_md_access:PASS: 277 nsec Summary: 30 PASSED, 0 FAILED [root@s8360046 bpf]# Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/testing/selftests/bpf/test_pkt_md_access.c | 11 +++ 1

[PATCH] tools: fix compile error of freq-step.c

2017-08-16 Thread Thomas Richter
[root@s8360046 timers]# ./freq-step CLOCK_MONOTONIC_RAW+CLOCK_MONOTONIC precision: 348 ns [SKIP] 1..0 # Skipped: [SKIP] [root@s8360046 timers]# Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/testing/selftests/timers/freq-step.c | 2 +- 1 file changed, 1 insertion

[PATCHv3] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-15 Thread Thomas Richter
: BPF prologue generation : Ok 38.4: BPF relocation checker : Ok [root@s8360046 perf]# Signed-off-by: Wang Nan <wangn...@huawei.com> Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/tests/bpf-script-test-prologue.c | 4 ++-

Re: [PATCH 15/15] perf tests attr: Fix task term values

2017-08-10 Thread Thomas Richter
On Wed, Aug 09, 2017 at 05:00:49PM +0200, Jiri Olsa wrote: > On Mon, Jul 03, 2017 at 04:50:30PM +0200, Jiri Olsa wrote: > > The perf_event_attr::task is 1 by default for first (tracking) > > event in the session. Setting task=1 as default and adding > > task=0 for cases that need it. > > hm,

[PATCHv2] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-14 Thread Thomas Richter
: BPF prologue generation : Ok 38.4: BPF relocation checker : Ok [root@s8360046 perf]# Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Signed-off-by: Wang Nan <wangn...@huawei.com> Acked-by: Wang Nan <wangn...@huawei.com> Tested-b

[PATCH] [PATCH v2] perf test: add platform dependency to test 15

2017-06-22 Thread Thomas Richter
[s390x] './tests/attr//test-stat-C1' <--- new The test is skipped with return code 0. Suggested-by: Jiri Olsa <jo...@redhat.com> Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Jiri Olsa <jo...@redhat.com> Reviwed-by: Arnaldo Carvalho de Melo <a...@ker

[PATCH] perf: fix perf test case 14 result reporting

2017-06-01 Thread Thomas Richter
. This value is given as parameter to the exit() function which can only handle values 0-0xff. The child process terminates with exit value of 0 and the parent does not detect any error. This patch corrects the error reporting and prints the correct test result. Signed-off-by: Thomas Richter <t

[PATCH] perf test: Fix test 21 for s390x

2017-11-24 Thread Thomas Richter
to a value well below the sysctl kernel.perf_event_max_sample_rate value. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/tests/task-exit.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/per

[PATCH] perf annotate: Fix unnecessary memory allocation for s390x

2017-11-24 Thread Thomas Richter
tions entered into the array is 56 which is sensible. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/arch/s390/annotate/instructions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[PATCH] perf annotate: Fix objdump comment parsing for Intel mov dissassembly

2017-11-27 Thread Thomas Richter
to function comment__symbol() by one byte before invocation and add an error check after strtoull() has been called. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/util/annotate.c | 8 +--- 1 file cha

[PATCH] trace/uprobes: fix output issue with address randomization

2017-12-18 Thread Thomas Richter
s/kernel/debug/tracing/uprobe_events p:probe_libc/inet_pton /usr/lib64/libc-2.26.so:0x00142060 # linux/tools/perf/perf probe -l probe_libc:inet_pton (on __inet_pton@resolv/inet_pton.c in /usr/lib64/libc-2.26.so) Signed-off-by: Thomas Richter &l

[PATCH] trace/uprobes: fix output issue with address randomization

2017-12-15 Thread Thomas Richter
s/kernel/debug/tracing/uprobe_events p:probe_libc/inet_pton /usr/lib64/libc-2.26.so:0x00142060 # linux/tools/perf/perf probe -l probe_libc:inet_pton (on __inet_pton@resolv/inet_pton.c in /usr/lib64/libc-2.26.so) Signed-off-by: Thomas Richter &l

[PATCH] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Thomas Richter
inode() into callers") Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- fs/debugfs/inode.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 13b01351dd1

[PATCH v2] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Thomas Richter
r-x] events # │   ├── [drwxr-xr-x] alarmtimer Fixes: edac65eaf8d5c ("debugfs: take mode-dependent parts of debugfs_get_inode() into callers") Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- fs/debugfs/inode.c

[PATCH] perf test 39 (Session topology) dumps core on s390

2018-05-24 Thread Thomas Richter
cket_id number is too big.You may need to upgrade the perf tool. end Session topology: Skip [root@p23lp27 perf]# Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.ibm.com> --- tools/perf/tests/topology.c | 12 ++--

[PATCH] perf test: Test 6 dumps core on s390

2018-06-08 Thread Thomas Richter
g PMU cpu tests omitting PMU cpu tests running test 0 'config=10,config1,config2=3,umask=1' end Parse event definition strings: FAILED! Fixes: b3f58c8da64b ("perf tests parse-events: Add intel_pt parse test") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools

[PATCH 3/3] perf stat: Remove duplicate event counting

2018-06-14 Thread Thomas Richter
1': 1 tx_nc_tend 0.000961134 seconds time elapsed [root@s35lp76 perf]# Signed-off-by: Thomas Richter --- tools/perf/util/pmu.c | 71 ++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/p

[PATCH 2/3] perf alias: Rebuild alias expression string to make it comparable

2018-06-14 Thread Thomas Richter
ble. s390 for example has terms specified as event=0x0091 (read from files ..//events/ and terms specified as event=0x91 (read from JSON files). Signed-off-by: Thomas Richter --- tools/perf/util/pmu.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --

[PATCH 1/3] perf alias: Remove trailing newline when reading sysfs files

2018-06-14 Thread Thomas Richter
Remove a trailing newline when reading sysfs file contents such as /sys/devices/cpum_cf/events/TX_NC_TEND. This show when verbose option -v is used. Output before: tx_nc_tend -> 'cpum_cf'/'event=0x008d '/ Output after: tx_nc_tend -> 'cpum_cf'/'event=0x8d'/ Signed-off-by: Thomas R

[PATCH 2/3 v2] perf alias: Rebuild alias expression string to make it comparable

2018-06-15 Thread Thomas Richter
ble. s390 for example has terms specified as event=0x0091 (read from files ..//events/ and terms specified as event=0x91 (read from JSON files). Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Jiri Olsa --- tools/perf/util/pmu.c | 25 - 1 file changed,

[PATCH 1/3 v2] perf alias: Remove trailing newline when reading sysfs files

2018-06-15 Thread Thomas Richter
Remove a trailing newline when reading sysfs file contents such as /sys/devices/cpum_cf/events/TX_NC_TEND. This shows when verbose option -v is used. Output before: tx_nc_tend -> 'cpum_cf'/'event=0x008d '/ Output after: tx_nc_tend -> 'cpum_cf'/'event=0x8d'/ Signed-off-by: Thomas R

[PATCH 3/3 v2] perf stat: Remove duplicate event counting

2018-06-15 Thread Thomas Richter
1': 1 tx_nc_tend 0.000961134 seconds time elapsed [root@s35lp76 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Jiri Olsa --- tools/perf/util/pmu.c | 71 ++- 1 file changed, 70 insertions(

[PATCH 1/2] perf record: Support s390 random socket_id assignment

2018-06-11 Thread Thomas Richter
-1, Socket ID -1 ... [root@p23lp27 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/util/header.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index a8bff2178fbc..34e9d6b9d945

[PATCH 2/2] perf test: Fix test 39 Session topology for s390

2018-06-11 Thread Thomas Richter
: c84974ed9fb6 ("perf test: Add entry to test cpu topology") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/tests/topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/topology.c b/tools/perf/tests/topology.c index 40e30a26b23c..94

[PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"

2018-06-11 Thread Thomas Richter
This reverts commit 95cde3c59966f6371b6bcd9e4e2da2ba64ee9775. It breaks the ioctl(KVM_CREATE_VM) interface. Signed-off-by: Thomas Richter --- fs/debugfs/inode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index a913b12fc7f8

[PATCH] perf test: Use header file util/debug.h

2018-05-28 Thread Thomas Richter
Use the header file util/debug.h instead of declaration of verbose variable. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- tools/perf/tests/python-use.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/tests/python-use.c b/tools/perf/tests/python

[PATCH] perf docu: Update section on cpu description

2018-05-28 Thread Thomas Richter
Fix the section HEADER_CPUDESC so the documentation matches code. Swap the two members of struct nr_cpus. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- tools/perf/Documentation/perf.data-file-format.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool

[PATCH v2] perf test 39 (Session topology) dumps core on s390

2018-05-28 Thread Thomas Richter
cket_id number is too big.You may need to upgrade the perf tool. end Session topology: Skip [root@p23lp27 perf]# Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- --- tools/perf/tests/topology.c | 30 -- 1 file changed, 24 insertions(+), 6 dele

[PATCH] perf docu: Update section on cpu topology

2018-05-28 Thread Thomas Richter
Add an explanation of each cpu's core and socket identifier to the documentation. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- tools/perf/Documentation/perf.data-file-format.txt | 8 1 file changed, 8 insertions(+) diff --git a/tools/perf/Documentation/perf.dat

[PATCH 4/4 v3] perf stat: Add transaction flag (-T) support for s390

2018-06-25 Thread Thomas Richter
tx_nc_tend 11 tx_nc_tabort 0 tx_c_tabort_special 0 tx_c_tabort_no_special 0.001070109 seconds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Suggested-by: Hendrik Brueckner Reviewed-by: H

[PATCH 4/4 v4] perf stat: Add transaction flag (-T) support for s390

2018-06-26 Thread Thomas Richter
11 tx_nc_tabort 0 tx_c_tabort_special 0 tx_c_tabort_no_special 0.001070109 seconds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Acked-by: Andi Kleen Acked-

[PATCH 4/4] perf stat: Add transaction flag (-T) support for s390

2018-06-21 Thread Thomas Richter
ial 0.001070109 seconds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/builtin-stat.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c in

[PATCH 1/4] Revert "perf list: Add s390 support for detailed/verbose PMU event description"

2018-06-21 Thread Thomas Richter
This reverts commit 038586c34301578e538f6c5aa79ca82bce1b9152. Fix the support of detailed/verbose PMU event description by using the "Unit": keyword in the json files to address event names refering to the /sys/devices/cpum_[cs]f devices. Signed-off-by: Thomas Richter Reviewed-b

[PATCH 2/4] perf list: Add s390 support for detailed PMU event description

2018-06-21 Thread Thomas Richter
Correct the support of detailed/verbose PMU event description by using the "Unit": keyword in the json files to address event names refering to the /sys/devices/cpum_[cs]f devices. Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/pmu-events/arch/s

[PATCH 3/4] perf json: Add s390 transaction counter definition

2018-06-21 Thread Thomas Richter
nds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/pmu-events/arch/s390/cf_z13/transaction.json | 7 +++ tools/perf/pmu-events/arch/s390/cf_z14/transaction.json | 7 +++ tools/perf/pmu-events/a

[PATCH] perf: test 60 fails on s390 inline missing on s390

2018-05-03 Thread Thomas Richter
47e8 __inet_pton (inlined) f19d7 gaih_inet.constprop.5 (/usr/lib64/libc-2.24.so) f4c3f __GI_getaddrinfo (inlined) 410b main (/usr/bin/ping) Allow __inet_pton listed as inline. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> ---

[PATCH] kprobes: Fix random address output of blacklist file

2018-04-26 Thread Thomas Richter
o: Masami Hiramatsu <mhira...@kernel.org> To: Andrew Morton <a...@linux-foundation.org> To: a...@kernel.org To: Steven Rostedt <rost...@goodmis.org> Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] perf trace: Warn about --call-graph dwarf invalid parameters

2018-01-11 Thread Thomas Richter
]# ./perf trace --no-syscalls --call-graph dwarf,4096,4 callchain: No more arguments needed for --call-graph dwarf[,xxx] Please specify something to trace. [root@s35lp76 perf]# Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/util/callchain.c | 4 1 file chan

[PATCH] perf test: Fix test trace+probe_libc_inet_pton.sh for s390x

2018-01-17 Thread Thomas Richter
e runs unchanged and succeeds. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- .../perf/tests/shell/trace+probe_libc_inet_pton.sh | 23 +- 1 file changed, 18 insertions(+), 5 deletions(-) d

[PATCH v2] perf trace: Fix missing handling of --call-graph dwarf

2018-01-12 Thread Thomas Richter
aph=fp the kernel stack unwinder is used and it stops after unwinding x entries. For dwarf the complete stack data is returned and the unwinding is done by perf itself and it uses --max-stack command line flag. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-b

[PATCH 3/4] perf cpuid: Introduce a platform specfic cpuid compare function

2018-02-13 Thread Thomas Richter
compare function named strcmp_cpuid_str() The currently used regex algorithm is defined as the weak default and will be used if no platform specific one is defined. This matches the current behavior. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner &

[PATCH 1/4] perf record: Provide detailed information on s390 CPU

2018-02-13 Thread Thomas Richter
Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/arch/s390/util/header.c | 126 +++-- 1 file changed, 121 insertions(+), 5 deletions(-) diff --git a/tools/perf/arch/s390/

[PATCH 2/4] perf annotate: Scan cpuid for s390 and save machine type

2018-02-13 Thread Thomas Richter
Scan the cpuid string and extract the type number for later use. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/arch/s390/annotate/instructions.c | 27 ++- 1 file

[PATCH 4/4] perf test: Fix test case 23 for s390 z/VM or KVM guests

2018-02-13 Thread Thomas Richter
which contains an indication of the cpu counter facility availability. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/tests/code-reading.c | 33 + 1 file changed, 2

[PATCH] perf test: Fix test case inet_pton to accept inlines.

2018-02-13 Thread Thomas Richter
) gaih_inet.constprop.7 (/usr/lib64/libc-2.26.so) ... Fix this by being less strict on 'inlined' verses library name and accept both Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/tests/shell/trace+probe_libc_inet_pton.sh | 6 +++--- 1 file changed, 3 insertions

[PATCH] perf s390: Fix reading cpuid model information

2018-02-19 Thread Thomas Richter
Commit feb3d2d955c8 (perf record: Provide detailed information on s390 CPU") fixed a build error on Ubuntu. However the fix uses the wrong size to print the model information. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/arch/s390/util/header.c | 2

[PATCH 4/4 v2] perf stat: Add transaction flag (-T) support for s390

2018-06-22 Thread Thomas Richter
ial 0.001070109 seconds time elapsed [root@s35lp76 perf]# Suggested-by: Andi Kleen Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/builtin-stat.c | 12 1 file changed, 12 insertions(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c in

[PATCH v2] perf build: Fix installation directory for bpf

2018-07-27 Thread Thomas Richter
: Ok 40.2: BPF pinning : Ok 40.3: BPF prologue generation : Ok 40.4: BPF relocation checker : Ok [root@p23lp27 perf]# Suggested-by: Stefan Liebler Suggested-by: Arnaldo Carvalho de M

[PATCH v2] perf build: Fix installation directory for bpf

2018-07-31 Thread Thomas Richter
: Ok 40.2: BPF pinning : Ok 40.3: BPF prologue generation : Ok 40.4: BPF relocation checker : Ok [root@p23lp27 perf]# Suggested-by: Stefan Liebler Suggested-by: Arnaldo Carvalho de M

[PATCH 3/3] perf report: Add GUI report support for s390 auxiliary trace

2018-08-02 Thread Thomas Richter
% ls [kernel.kallsyms] [k] ___might_sleep 1.83% 1.83% ls [kernel.kallsyms] [k] debug_lockdep_rcu_enabled 1.44% 1.44% ls [kernel.kallsyms] [k] dput Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/util/s390

[PATCH 2/3] perf report: Add raw report support for s390 auxiliary trace

2018-08-02 Thread Thomas Richter
and diagnostic sampling entry sizes can be extracted using the trailer entries in the SDB. On older hardware these values (bsdes and dsdes in the trailer entry) are reserved and zero. Older hardware use hard coded values based on the s390 machine type. Signed-off-by: Thomas Richter Reviewed-by: Hendrik

[PATCH 1/3] perf auxtrace: Support for perf report -D for s390

2018-08-02 Thread Thomas Richter
]: PERF_RECORD_AUXTRACE size: 0x4 offset: 0 ref: 0 idx: 4 tid: -1 cpu: 4 Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/arch/s390/util/auxtrace.c | 1 + tools/perf/util/Build| 1 + tools/perf/util/auxtrace.c | 3

[PATCH 0/3] perf report: Add s390 auxiliary trace support

2018-08-02 Thread Thomas Richter
perf report interprets the perf.data input file with option -D. Patch 3: Display auxiliary trace in UI. Resolve addresses to symbols and file names. Thomas Richter (4): perf auxtrace: Support for perf report -D for s390 perf report: Add raw report support for s390 auxiliary

[PATCH v3] perf report: Create auxiliary trace data files for s390

2018-08-08 Thread Thomas Richter
perf]# ll /tmp/aux.smp.00 -rw-r--r-- 1 root root 204800 Aug 2 13:48 /tmp/aux.smp.00 [root@p23lp27 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/util/s390-cpumsf.c | 94 +-- 1 file changed, 91 insertions(+), 3 deletions

[PATCH] perf report: Create auxiliary trace data files for s390

2018-08-06 Thread Thomas Richter
... [root@p23lp27 perf]# ll /tmp/aux.smp.00 -rw-r--r-- 1 root root 204800 Aug 2 13:48 /tmp/aux.smp.00 [root@p23lp27 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/util/s390-cpumsf.c | 94 +-- 1 file changed, 91 insertions

Ping [PATCH v3] perf report: Create auxiliary trace data files for s390

2018-08-21 Thread Thomas Richter
perf]# ll /tmp/aux.smp.00 -rw-r--r-- 1 root root 204800 Aug 2 13:48 /tmp/aux.smp.00 [root@p23lp27 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/util/s390-cpumsf.c | 94 +-- 1 file changed, 91 insertions(+), 3 deletions

[PATCH v2] perf build: Build error in libbpf with EXTRA_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -O2"

2018-07-25 Thread Thomas Richter
buffer is not needed. This is also consistant with all the other pr_warning() statements in this file which all use strerror(). Also fixes a possible initialization issue. Cc: Wang Nan Cc: Alexei Starovoitov Cc: Daniel Borkmann Signed-off-by: Thomas Richter --- tools/lib/bpf/libbpf.c | 7 ++

[PATCH] perf build: Build error in libbpf with EXTRA_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -O2"

2018-07-23 Thread Thomas Richter
nux-next/tools/build/Makefile.build:96: recipe for target 'libbpf.o' failed Fix this by using strerror_r return value in pr_warning statement. Also fixes a possible initialization issue. Cc: Wang Nan Signed-off-by: Thomas Richter --- tools/lib/bpf/libbpf.c | 6 +++--- 1 file changed, 3 insertions(+),

[PATCH] perf test: Fix subtest number when showing results

2018-07-24 Thread Thomas Richter
t 4: Ok [root@s35lp76 ~]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/tests/builtin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index dd850a26d579..4f5de8245b32 100

[PATCH] perf kvm: Fix subcommands on s390

2018-07-12 Thread Thomas Richter
compare with the CPU identifier string. Fix this by changing the comparison. Fixes: eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") Cc: Stefan Raspl Cc: # 4.17 Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/arch/s390/util/kvm-st

[PATCH] perf record: Fix failed memory allocation for get_cpuid_str

2018-01-17 Thread Thomas Richter
first parameter and operates on a NULL pointer which might cause core dumps. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/arch/x86/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/arch/x86/util/header.c b/tools/perf/ar

[PATCH] perf annotate: Handle s390 pc relative load and store instruction.

2018-03-08 Thread Thomas Richter
x60> This output is parsed (like on x86) and perf annotate shows those lines as: lgrl %r7,mp_+0x60 This patch handles the s390 specific instruction parsing for pc relative load and store instructions. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/arch/s

[PATCH] perf stat: Fix core dump when flag T is used

2018-03-08 Thread Thomas Richter
a pointer to the necessary error information instead of NULL. Technically only the else part is needed to avoid the core dump, just lets be save... Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/builtin-stat.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deleti

[PATCH] perf stat: Make function perf_stat_evsel_id_init static

2018-03-12 Thread Thomas Richter
Function perf_stat_evsel_id_init() has global linkage but is only used in util/stat.c. Make it static. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/util/stat.c | 2 +- tools/perf/util/stat.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH] perf stat: Add support for s390 transaction counters

2018-03-12 Thread Thomas Richter
on x86 is unchanged. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed--by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> --- tools/perf/builtin-stat.c | 162 ++ 1 file changed, 135 insertions(+), 27 deletions(-) diff -

[PATCH 2/2 v2] perf stat: Add support for flag T on s390

2018-03-14 Thread Thomas Richter
cpum_cf/TX_NC_TABORT/ #0.000 K/sec 0 cpum_cf/TX_NC_TEND/ #0.000 K/sec 1.001934710 seconds time elapsed [root@s35lp76 perf]# Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> ---

[PATCH 1/2 v2] perf stat: Rework x86 transaction counter handling

2018-03-14 Thread Thomas Richter
on the architecture and the CPU measurement facility counter list. This scheme can be easily extended to support other architectures. Output does not change. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.vnet.ibm.com> Reviewed-by: Hendr

[PATCH v2] perf annotate: Fix s390 target function disassembly

2018-03-07 Thread Thomas Richter
s zero which is an invalid address. Introduce a s390 specific call parsing function which skips the first operand on s390. Signed-off-by: Thomas Richter <tmri...@linux.vnet.ibm.com> --- tools/perf/arch/s390/annotate/instructions.c | 53 +++- tools/perf/uti

[PATCH] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390

2018-04-12 Thread Thomas Richter
1393c0 __GI___inet_pton (/usr/lib64/libc-2.26.so) fe60d getaddrinfo (/usr/lib64/libc-2.26.so) 2f40 main (/usr/bin/ping) [root@f27 perf]# Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.ibm.com>

[PATCH] perf record: Remove unnecessary warning for missing sysfs entry

2018-04-12 Thread Thomas Richter
warning, if the directory is not present memory node information is not available and won't be displayed. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- tools/perf/util/header.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/header.c b/tools/perf/u

[PATCH] perf record: Change warning for missing sysfs entry to debug

2018-04-12 Thread Thomas Richter
So it is only shown when debug level 2 or higher is set. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- tools/perf/util/header.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 121df1683c36..a8bff2178f

[PATCH v2] perf list: Add s390 support for detailed/verbose pmu event description

2018-04-10 Thread Thomas Richter
From: Thomas Richter <tmri...@linux.vnet.ibm.com> Perf list with flags -d and -v print a description (-d) or a very verbose explanation (-v) of CPU specific counter events. These descriptions are provided with the json files in directory pmu-events/arch/s390/*.json. Display of these descri

[PATCH] perf list: Add s390 support for detailed/verbose pmu event description

2018-04-09 Thread Thomas Richter
From: Thomas Richter <tmri...@linux.vnet.ibm.com> Perf list with flags -d and -v print a description (-d) or a very verbose explanation (-v) of CPU specific counter events. These descriptions are provided with the json files in directory pmu-events/arch/s390/*.json. Display of these descri

[PATCH] modules: Fix display of wrong module .text address

2018-04-17 Thread Thomas Richter
u for helping on this. Suggested-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Cc: Jessica Yu <j...@kernel.org> --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/ker

[PATCH v3] module: Fix display of wrong module .text address

2018-04-18 Thread Thomas Richter
cting") Cc: <sta...@vger.kernel.org> # v4.15+ Suggested-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Cc: Jessica Yu <j...@kernel.org> --- kernel/module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[PATCH v2] module: Fix display of wrong module .text address

2018-04-18 Thread Thomas Richter
d) address. Thanks to Jessica Yu for helping on this. Suggested-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Cc: Jessica Yu <j...@kernel.org> Cc: sta...@vger.kernel.org --- kernel/module.c | 3 ++- 1 file changed, 2 insert

[PATCH v2] perf list: Add s390 support for detailed/verbose pmu event description

2018-04-16 Thread Thomas Richter
From: Thomas Richter <tmri...@linux.vnet.ibm.com> Perf list with flags -d and -v print a description (-d) or a very verbose explanation (-v) of CPU specific counter events. These descriptions are provided with the json files in directory pmu-events/arch/s390/*.json. Display of these descri

[PATCH] kprobes: Fix random address output of blacklist file

2018-04-19 Thread Thomas Richter
l.org> Cc: a...@kernel.org Cc: Steven Rostedt <rost...@goodmis.org> Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 102160ff5c66..ea619021d901

[PATCH v2] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390

2018-04-23 Thread Thomas Richter
1393c0 __GI___inet_pton (/usr/lib64/libc-2.26.so) fe60d getaddrinfo (/usr/lib64/libc-2.26.so) 2f40 main (/usr/bin/ping) [root@f27 perf]# Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.ibm.com>

[PATCH v2] perf list: Remove s390 specific strcmp_cpuid_cmp function

2018-04-23 Thread Thomas Richter
compare code and uses the common compare function with its regular expression matching algorithm. Signed-off-by: Thomas Richter <tmri...@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueck...@linux.ibm.com> --- tools/perf/arch/s390/util/header.c | 18 -- to

  1   2   3   4   5   >