[PATCH v2] tty: hvc: Fix data abort due to race in hvc_open

2020-05-19 Thread Raghavendra Rao Ananta
nce, do a NULL check at the beginning, before proceeding ahead. The issue can be easily reproduced by launching two tasks simultaneously that does an open() call on /dev/hvcX. For example: $ cat /dev/hvc0 & cat /dev/hvc0 & Cc: sta...@vger.kernel.org Signed-off-by: Raghavendra Rao Ananta

[PATCH] of: Add of_get_memory_prop()

2019-09-18 Thread Raghavendra Rao Ananta
drivers to query the requested properties. Signed-off-by: Raghavendra Rao Ananta --- drivers/of/fdt.c | 27 +++ include/linux/of_fdt.h | 1 + 2 files changed, 28 insertions(+) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 223d617ecfe1..925cf2852433 10

[PATCH 0/1] perf: Add CPU hotplug support for events

2018-02-15 Thread Raghavendra Rao Ananta
05393 34,593,167 cycles cycles: 105078270 1000136171 1000136171 33.006773971105,078,270 cycles Raghavendra Rao Ananta (1): perf: Add CPU hotplug support for events include/linux/perf_event.h | 7 +++ kernel/events/core.c | 123 +--

[PATCH 1/1] perf: Add CPU hotplug support for events

2018-02-15 Thread Raghavendra Rao Ananta
d be returned to the client even while creating the event on an offline CPU. If during the lifetime of the event the CPU walks offline, the event would be preserved and would continue to count as soon as (and if) the CPU comes back online. Signed-off-by: Raghavendra Rao Ananta --- include/linu

[PATCH] perf: Add support for creating offline events

2018-02-09 Thread Raghavendra Rao Ananta
U (by perf_install_in_context()). If during the life time of the event, the CPU hasn't come online, the dormant event would just be freed. Signed-off-by: Raghavendra Rao Ananta --- include/linux/perf_event.h | 7 +++ kernel/events/core.c | 109 - 2 fil

Re: [PATCH 1/1] perf: Add CPU hotplug support for events

2018-02-16 Thread Raghavendra Rao Ananta
On 02/16/2018 12:21 AM, Peter Zijlstra wrote: On Thu, Feb 15, 2018 at 03:01:41PM -0800, Raghavendra Rao Ananta wrote: Perf framework doesn't allow prevserving CPU events across CPU hotplugs. The events are scheduled out as and when the CPU walks offline. Moreover, the framework also do

Re: [PATCH 1/1] perf: Add CPU hotplug support for events

2018-02-16 Thread Raghavendra Rao Ananta
On 02/16/2018 12:39 PM, Peter Zijlstra wrote: On Fri, Feb 16, 2018 at 10:06:29AM -0800, Raghavendra Rao Ananta wrote: No this is absolutely disguisting. You can simply keep the events in the dead CPU's context. It's really not that hard. Keeping the events in the dead CPU's c

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Raghavendra Rao Ananta
we also have to modify the perf tool accordingly? Find an inline comment. On 02/12/2018 01:43 AM, Jiri Olsa wrote: On Fri, Feb 09, 2018 at 03:07:00PM -0800, Raghavendra Rao Ananta wrote: Perf framework doesn't allow creation of hardware events if the requested CPU is offline. However, cre

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Raghavendra Rao Ananta
On 02/12/2018 01:21 PM, Jiri Olsa wrote: On Mon, Feb 12, 2018 at 10:04:42PM +0100, Jiri Olsa wrote: On Mon, Feb 12, 2018 at 09:42:05AM -0800, Raghavendra Rao Ananta wrote: Hi Jiri, Thank you for the response. Does perf tool has its own check to see if the CPU was offline during the

Re: [PATCH] perf: Add support for creating offline events

2018-02-13 Thread Raghavendra Rao Ananta
On 02/13/2018 08:08 AM, Jiri Olsa wrote: On Mon, Feb 12, 2018 at 02:22:30PM -0800, Raghavendra Rao Ananta wrote: On 02/12/2018 01:21 PM, Jiri Olsa wrote: On Mon, Feb 12, 2018 at 10:04:42PM +0100, Jiri Olsa wrote: On Mon, Feb 12, 2018 at 09:42:05AM -0800, Raghavendra Rao Ananta wrote: Hi

[PATCH] selftests/rseq: Fix rseq for cases without glibc support

2024-12-10 Thread Raghavendra Rao Ananta
m_cid test failure") Signed-off-by: Raghavendra Rao Ananta --- tools/testing/selftests/rseq/rseq.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/rseq/rseq.c b/tools/testing/selftests/rseq/rseq.c index 5b9772cdf265..9eb5356f25