Add PMU-specific data structure with family/model/stepping and clock
information required by the decoder.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
arch/x86/events/intel/pt.c | 23 ++-
arch/x86/events/intel/pt.h | 11 +++
2
The user who created the event should also be able to open its
corresponding file in tracefs and/or remove it.
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c | 25 ++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/kernel/events/core.c b/kernel
Add PMU-specific data structure with family/model/stepping and clock
information required by the decoder.
Signed-off-by: Alexander Shishkin
---
arch/x86/events/intel/pt.c | 23 ++-
arch/x86/events/intel/pt.h | 11 +++
2 files changed, 33 insertions(+), 1 deletion
This adds an ioctl command to demote a detached event to a 'normal' one
that gets destroyed when its file descriptor is closed. It can still be
used to mmap the buffers, but not very useful otherwise.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/uapi
This adds an ioctl command to demote a detached event to a 'normal' one
that gets destroyed when its file descriptor is closed. It can still be
used to mmap the buffers, but not very useful otherwise.
Signed-off-by: Alexander Shishkin
---
include/uapi/linux/perf_event.h | 1 +
kernel/events
A exec will unmap everything, but we want our shmem buffers to persist.
This tells the page-pinning task work to mmap event's ring buffer after
the task exec'ed.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/core.c | 24
A exec will unmap everything, but we want our shmem buffers to persist.
This tells the page-pinning task work to mmap event's ring buffer after
the task exec'ed.
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c | 24
1 file changed, 24 insertions(+)
diff
Maintain a per-user cpu-indexed array of shmemfs-backed events, same
way as mlock accounting.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/linux/sched/user.h | 6
kernel/events/core.c| 14 -
kernel/events/ring_buffer.
Maintain a per-user cpu-indexed array of shmemfs-backed events, same
way as mlock accounting.
Signed-off-by: Alexander Shishkin
---
include/linux/sched/user.h | 6
kernel/events/core.c| 14 -
kernel/events/ring_buffer.c | 69
o 0, we undo the accounting.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/core.c| 12 +++--
kernel/events/internal.h| 5 +-
kernel/events/ring_buffer.c | 124 +---
3 files changed, 116 insertio
o 0, we undo the accounting.
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c| 12 +++--
kernel/events/internal.h| 5 +-
kernel/events/ring_buffer.c | 124 +---
3 files changed, 116 insertions(+), 25 deletions(-)
diff --git a/ker
fail, which in turn will fail the parent's fork, something to be
aware of.
This also effectively disables context cloning, because unlike the
traditional events, these will each have its own ring buffer and
context switch optimization can't work.
Signed-off-by: Alexander Shishkin <alexander.sh
fail, which in turn will fail the parent's fork, something to be
aware of.
This also effectively disables context cloning, because unlike the
traditional events, these will each have its own ring buffer and
context switch optimization can't work.
Signed-off-by: Alexander Shishkin
---
include/linux
unpinned and its pin count is dropped and a
new event is pinned on this cpu. When the pin count goes to zero, we
unpin the pages, when it goes to one, we pin them.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/linux/perf_event.h | 10 +++
kernel/events/
, for versioning.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/linux/perf_event.h | 17 ++
include/uapi/linux/perf_event.h | 10 ++
kernel/events/core.c| 27 +--
kernel/events/internal.h| 2 +-
kernel/events/ring_bu
unpinned and its pin count is dropped and a
new event is pinned on this cpu. When the pin count goes to zero, we
unpin the pages, when it goes to one, we pin them.
Signed-off-by: Alexander Shishkin
---
include/linux/perf_event.h | 10 +++
kernel/events/core.c| 134
, for versioning.
Signed-off-by: Alexander Shishkin
---
include/linux/perf_event.h | 17 ++
include/uapi/linux/perf_event.h | 10 ++
kernel/events/core.c| 27 +--
kernel/events/internal.h| 2 +-
kernel/events/ring_buffer.c | 75
constraints are met.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/linux/perf_event.h | 1 +
kernel/events/core.c| 2 +-
kernel/events/internal.h| 8 +-
kernel/events/ring_buffer.c | 177 +---
4
constraints are met.
Signed-off-by: Alexander Shishkin
---
include/linux/perf_event.h | 1 +
kernel/events/core.c| 2 +-
kernel/events/internal.h| 8 +-
kernel/events/ring_buffer.c | 177 +---
4 files changed, 160 insertions(+), 28
-only.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/uapi/linux/perf_event.h | 3 +++
kernel/events/core.c| 19
kernel/events/internal.h| 2 ++
kernel/events/ring_buffer.c
-only.
Signed-off-by: Alexander Shishkin
---
include/uapi/linux/perf_event.h | 3 +++
kernel/events/core.c| 19
kernel/events/internal.h| 2 ++
kernel/events/ring_buffer.c | 50 +
4 files changed, 74 insertions
-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
include/linux/perf_event.h | 4 ++
include/uapi/linux/perf_event.h | 1 +
kernel/events/core.c| 138 ++--
kernel/events/internal.h| 6 ++
4 files change
-off-by: Alexander Shishkin
---
include/linux/perf_event.h | 4 ++
include/uapi/linux/perf_event.h | 1 +
kernel/events/core.c| 138 ++--
kernel/events/internal.h| 6 ++
4 files changed, 142 insertions(+), 7 deletions(-)
diff --git
tracefs_dir_ops so that it's possible to have
multiple such subdirectories.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: Steven Rostedt <rost...@goodmis.org>
---
fs/tracefs/inode.c | 35 +--
1 file changed, 25 insertions(+),
In addition to mkdir and rmdir, also allow unlink operation within the
'instances' directory if such callback is defined.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: Steven Rostedt <rost...@goodmis.org>
---
fs/tracefs/inode
tracefs_dir_ops so that it's possible to have
multiple such subdirectories.
Signed-off-by: Alexander Shishkin
Cc: Steven Rostedt
---
fs/tracefs/inode.c | 35 +--
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c
In addition to mkdir and rmdir, also allow unlink operation within the
'instances' directory if such callback is defined.
Signed-off-by: Alexander Shishkin
Cc: Steven Rostedt
---
fs/tracefs/inode.c | 36 +++-
include/linux/tracefs.h | 3 ++-
kernel/trace
This patch moves ring buffer memory accounting down the rb_alloc() path
so that its callers won't have to worry about it. This also serves the
additional purpose of slightly cleaning up perf_mmap().
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/
This patch moves ring buffer memory accounting down the rb_alloc() path
so that its callers won't have to worry about it. This also serves the
additional purpose of slightly cleaning up perf_mmap().
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c| 67
ched-shmem-wip
Alexander Shishkin (17):
perf: Allow mmapping only user page
perf: Factor out mlock accounting
tracefs: De-globalize instances' callbacks
tracefs: Add ->unlink callback to tracefs_dir_ops
perf: Introduce detached events
perf: Add buffers to the detached events
perf:
ched-shmem-wip
Alexander Shishkin (17):
perf: Allow mmapping only user page
perf: Factor out mlock accounting
tracefs: De-globalize instances' callbacks
tracefs: Add ->unlink callback to tracefs_dir_ops
perf: Introduce detached events
perf: Add buffers to the detached events
perf:
-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index cb7eaf0f91..9389e27cb0 100644
--- a/kernel/events/core.c
+++ b/kernel/events/
-off-by: Alexander Shishkin
---
kernel/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index cb7eaf0f91..9389e27cb0 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -5366,7 +5366,7 @@ static int perf_mmap
Alexey Budankov <alexey.budan...@linux.intel.com> writes:
> On 30.08.2017 13:18, Alexander Shishkin wrote:
>> Alexey Budankov <alexey.budan...@linux.intel.com> writes:
>>
>>>>> Iterating cpu specific subtree like this:
>>>>>
>>
Alexey Budankov writes:
> On 30.08.2017 13:18, Alexander Shishkin wrote:
>> Alexey Budankov writes:
>>
>>>>> Iterating cpu specific subtree like this:
>>>>>
>>>>> #define for_each_group_event(event, group, cpu, pmu, field)\
&g
Alexey Budankov writes:
>>> Iterating cpu specific subtree like this:
>>>
>>> #define for_each_group_event(event, group, cpu, pmu, field) \
>>> for (event = rb_entry_safe(group_first(group, cpu, pmu), \
>>>typeof(*event),
Alexey Budankov writes:
>>> Iterating cpu specific subtree like this:
>>>
>>> #define for_each_group_event(event, group, cpu, pmu, field) \
>>> for (event = rb_entry_safe(group_first(group, cpu, pmu), \
>>>typeof(*event), field); \
>>> event &&
Commit-ID: 8d4e6c4caa12dafbcba138e5450b7af17b0b2194
Gitweb: http://git.kernel.org/tip/8d4e6c4caa12dafbcba138e5450b7af17b0b2194
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Thu, 30 Mar 2017 18:39:56 +0300
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 8d4e6c4caa12dafbcba138e5450b7af17b0b2194
Gitweb: http://git.kernel.org/tip/8d4e6c4caa12dafbcba138e5450b7af17b0b2194
Author: Alexander Shishkin
AuthorDate: Thu, 30 Mar 2017 18:39:56 +0300
Committer: Ingo Molnar
CommitDate: Tue, 29 Aug 2017 15:09:24 +0200
perf/core, pt, bts
Alexander Shishkin <alexander.shish...@linux.intel.com> writes:
> To clarify why atomic_inc_return(_sched_events) is not sufficient and
> a mutex is needed to order static branch enabling vs the atomic counter
> increment, this adds a comment with an short explanation.
"with
Alexander Shishkin writes:
> To clarify why atomic_inc_return(_sched_events) is not sufficient and
> a mutex is needed to order static branch enabling vs the atomic counter
> increment, this adds a comment with an short explanation.
"with a short explanation", sigh
>
>
To clarify why atomic_inc_return(_sched_events) is not sufficient and
a mutex is needed to order static branch enabling vs the atomic counter
increment, this adds a comment with an short explanation.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/
To clarify why atomic_inc_return(_sched_events) is not sufficient and
a mutex is needed to order static branch enabling vs the atomic counter
increment, this adds a comment with an short explanation.
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c | 5 +
1 file changed, 5
Alexey Budankov writes:
> Now I figured that not all indexed events are always located under
> the root with the same cpu, and it depends on the order of insertion
> e.g. with insertion order 01,02,03,14,15,16 we get this:
>
> 02
> / \
>01 14
>
Alexey Budankov writes:
> Now I figured that not all indexed events are always located under
> the root with the same cpu, and it depends on the order of insertion
> e.g. with insertion order 01,02,03,14,15,16 we get this:
>
> 02
> / \
>01 14
> / \
> 03 15
>
Peter Zijlstra <pet...@infradead.org> writes:
> On Mon, Jul 24, 2017 at 01:04:28PM +0300, Alexander Shishkin wrote:
>> Commit
>>
>> 9a93848fe787 ("x86/debug: Implement __WARN() using UD0")
>>
>> turned warnings into UD0, but the fix
Peter Zijlstra writes:
> On Mon, Jul 24, 2017 at 01:04:28PM +0300, Alexander Shishkin wrote:
>> Commit
>>
>> 9a93848fe787 ("x86/debug: Implement __WARN() using UD0")
>>
>> turned warnings into UD0, but the fixup code only runs after the
>> not
This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-LP.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: <sta...@vger.kernel.org>
---
drivers/hwtracing/intel_th/pci.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci
When allocating DMA buffers for the MSU, use the real device instead
of GTH.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/msu.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/hwtracing/in
When allocating DMA buffers for the MSU, use the real device instead
of GTH.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/msu.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/hwtracing/intel_th/msu.c b/drivers/hwtracing/intel_th
This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-LP.
Signed-off-by: Alexander Shishkin
Cc:
---
drivers/hwtracing/intel_th/pci.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c
index 507db47665..5a9a9e8072
The Low Power Path (LPP) output port type, looks mostly like PTI to
the software, with a few additional bits in the control register.
This extends the PTI driver to support LPP ports as well.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/in
The Low Power Path (LPP) output port type, looks mostly like PTI to
the software, with a few additional bits in the control register.
This extends the PTI driver to support LPP ports as well.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/pti.c | 115
Allow attaching miscellaneous quirk information to devices as drvdata.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 6 --
drivers/hwtracing/intel_th/intel_th.h | 27 ---
drivers/hwtracing/in
Allow attaching miscellaneous quirk information to devices as drvdata.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 6 --
drivers/hwtracing/intel_th/intel_th.h | 27 ---
drivers/hwtracing/intel_th/pci.c | 3 ++-
3 files changed
under the switch device, but they can still
be found under intel_th bus.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 6 +++---
drivers/hwtracing/intel_th/intel_th.h | 39 +--
2 files chang
under the switch device, but they can still
be found under intel_th bus.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 6 +++---
drivers/hwtracing/intel_th/intel_th.h | 39 +--
2 files changed, 27 insertions(+), 18 deletions(-)
diff
.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 3 +-
drivers/hwtracing/intel_th/gth.c | 23 ++
drivers/hwtracing/intel_th/gth.h | 5
drivers/hwtracing/intel_th/intel_th.h | 4 +++
drivers/hwt
.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 3 +-
drivers/hwtracing/intel_th/gth.c | 23 ++
drivers/hwtracing/intel_th/gth.h | 5
drivers/hwtracing/intel_th/intel_th.h | 4 +++
drivers/hwtracing/intel_th/pci.c | 56
A glue layer may want to install its own hooks into trace capture start
and stop paths to apply workarounds. This adds optional callbacks.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 26 ++
d
A glue layer may want to install its own hooks into trace capture start
and stop paths to apply workarounds. This adds optional callbacks.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 26 ++
drivers/hwtracing/intel_th/intel_th.h | 2
This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-H.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: <sta...@vger.kernel.org>
---
drivers/hwtracing/intel_th/pci.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci
Trace Hub 2.x adds Low Power Path (LPP) output port type, which provides
a low power mode trace path from sources to PTI or BSSB.
This adds an output subdevice for the LPP port.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c
Trace Hub 2.x adds Low Power Path (LPP) output port type, which provides
a low power mode trace path from sources to PTI or BSSB.
This adds an output subdevice for the LPP port.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 15 +++
drivers/hwtracing
This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-H.
Signed-off-by: Alexander Shishkin
Cc:
---
drivers/hwtracing/intel_th/pci.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c
index aac7d66d6a..507db47665 100644
Instead of allocating devices for every possible output subdevice,
allow the switch to allocate only the ones that it knows about.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 288 --
d
Instead of allocating devices for every possible output subdevice,
allow the switch to allocate only the ones that it knows about.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 288 --
drivers/hwtracing/intel_th/gth.c | 17
The driver forgets to enable bus mastering for the PCI device.
Fix this.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/in
The driver forgets to enable bus mastering for the PCI device.
Fix this.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c
index 590cf90dd2..aac7d66d6a
Output subdevices that rely on other output subdevices (or otherwise
don't directly talk to an output port on the switch) don't need to be
assigned an output port either.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/intel_th.
Make to_intel_th*() accessors available from the main header file.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/core.c | 15 ---
drivers/hwtracing/intel_th/intel_th.h | 25 -
2 files chang
Output subdevices that rely on other output subdevices (or otherwise
don't directly talk to an output port on the switch) don't need to be
assigned an output port either.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/intel_th.h | 23 ---
1 file changed, 12
Make to_intel_th*() accessors available from the main header file.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 15 ---
drivers/hwtracing/intel_th/intel_th.h | 25 -
2 files changed, 24 insertions(+), 16 deletions(-)
diff
From: Chunyan Zhang <chunyan.zh...@spreadtrum.com>
This patch adds a description to the stm_ftrace device source, an
interface for collecting Ftrace's function trace information via
STM devices.
Signed-off-by: Chunyan Zhang <chunyan.zh...@spreadtrum.com>
Signed-off-by: Alexan
From: Chunyan Zhang
This patch adds a description to the stm_ftrace device source, an
interface for collecting Ftrace's function trace information via
STM devices.
Signed-off-by: Chunyan Zhang
Signed-off-by: Alexander Shishkin
---
Documentation/trace/stm.txt | 13 -
1 file
gned-off-by: Dan Carpenter <dan.carpen...@oracle.com>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index 0e731
From: Dan Carpenter
The "size" variable comes from the user so we need to verify that it's
large enough to hold an stp_policy_id struct.
Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace
Module devices")
Signed-off-by: Dan Carpenter
Signed-off-by
potential read overflow in ioctl()
* Documented stm_ftrace source.
Alexander Shishkin (13):
intel_th: pci: Enable bus mastering
intel_th: Output devices without ports don't need assigning
intel_th: Streamline
potential read overflow in ioctl()
* Documented stm_ftrace source.
Alexander Shishkin (13):
intel_th: pci: Enable bus mastering
intel_th: Output devices without ports don't need assigning
intel_th: Streamline
Alexey Budankov writes:
> bool event_less(left, right)
> {
> if (left->cpu < right->cpu)
> return true;
>
> if (left->cpu > right_cpu)
> return false;
>
> if (left->vtime < right->vtime)
> return true;
Alexey Budankov writes:
> bool event_less(left, right)
> {
> if (left->cpu < right->cpu)
> return true;
>
> if (left->cpu > right_cpu)
> return false;
>
> if (left->vtime < right->vtime)
> return true;
>
> return false;
> }
Alexey Budankov writes:
> This patch implements mux switch that triggers skipping to the
> current CPU's events list at mulitplexing hrtimer interrupt
> handler as well as adoption of the switch in the existing
> implementation.
>
>
Alexey Budankov writes:
> This patch implements mux switch that triggers skipping to the
> current CPU's events list at mulitplexing hrtimer interrupt
> handler as well as adoption of the switch in the existing
> implementation.
>
> perf_event_groups_iterate_cpu() API is introduced to
Alexey Budankov writes:
> @@ -3091,61 +3231,55 @@ static void cpu_ctx_sched_out(struct perf_cpu_context
> *cpuctx,
> }
>
> static void
> -ctx_pinned_sched_in(struct perf_event_context *ctx,
> - struct perf_cpu_context *cpuctx)
>
Alexey Budankov writes:
> @@ -3091,61 +3231,55 @@ static void cpu_ctx_sched_out(struct perf_cpu_context
> *cpuctx,
> }
>
> static void
> -ctx_pinned_sched_in(struct perf_event_context *ctx,
> - struct perf_cpu_context *cpuctx)
> +ctx_pinned_sched_in(struct perf_event *event,
Will Deacon writes:
> The aux_head and aux_wakeup members of struct ring_buffer are defined
> using the local_t type, despite the fact that they are only accessed via
> the perf_aux_output_* functions, which cannot race with each other for a
> given ring buffer.
>
> This
Will Deacon writes:
> The aux_head and aux_wakeup members of struct ring_buffer are defined
> using the local_t type, despite the fact that they are only accessed via
> the perf_aux_output_* functions, which cannot race with each other for a
> given ring buffer.
>
> This patch changes the type
> rb->aux_wakeup, therefore taking into account any overruns by the
> hardware.
Let's add a small comment to the @aux_wakeup field definition? Other
than that,
Acked-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
>
> Cc: Alexander Shishkin <alexander.sh
for a smaller aux_watermark
> (e.g. PAGE_SIZE / 4), then the wakeup would in fact be behind head at
> this point.
>
> This patch fixes the problem by rounding down the aux_head (as sampled
> from the handle) to the nearest aux_watermark boundary when updating
> rb->aux_wakeup, ther
: Fixes for v4.13
These are two new PCI IDs (Cannon Lake PCH-H and PCH-LP).
Alexander Shishkin (2):
intel_th: pci: Add Cannon Lake PCH-H support
intel_th: pci: Add Cannon Lake PCH-LP support
drivers/hwtracing/intel_th
: Fixes for v4.13
These are two new PCI IDs (Cannon Lake PCH-H and PCH-LP).
Alexander Shishkin (2):
intel_th: pci: Add Cannon Lake PCH-H support
intel_th: pci: Add Cannon Lake PCH-LP support
drivers/hwtracing/intel_th
fier chain in
the invalid op handler path.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: Arjan van de Ven <ar...@linux.intel.com>
Cc: Borislav Petkov <b...@alien8.de>
Cc: Peter Zijlstra <pet...@infradead.org>
Cc: Richard Weinberger <richard.wein
fier chain in
the invalid op handler path.
Signed-off-by: Alexander Shishkin
Cc: Arjan van de Ven
Cc: Borislav Petkov
Cc: Peter Zijlstra
Cc: Richard Weinberger
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: linux-kernel@vger.kernel.org
---
arch/x86/kernel/traps.c | 10 +++---
1 file changed, 7
Commit-ID: 3bda69c1c3993a2bddbae01397d12bfef6054011
Gitweb: http://git.kernel.org/tip/3bda69c1c3993a2bddbae01397d12bfef6054011
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Tue, 18 Jul 2017 14:08:34 +0300
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 3bda69c1c3993a2bddbae01397d12bfef6054011
Gitweb: http://git.kernel.org/tip/3bda69c1c3993a2bddbae01397d12bfef6054011
Author: Alexander Shishkin
AuthorDate: Tue, 18 Jul 2017 14:08:34 +0300
Committer: Ingo Molnar
CommitDate: Thu, 20 Jul 2017 09:43:02 +0200
perf/core: Fix
Alexey Budankov writes:
>>> +static void
>>> +perf_event_groups_insert(struct perf_event_groups *groups,
>>> + struct perf_event *event)
>>> +{
>>> + struct rb_node **node;
>>> + struct rb_node *parent;
>>> + struct perf_event *node_event;
>>> +
Alexey Budankov writes:
>>> +static void
>>> +perf_event_groups_insert(struct perf_event_groups *groups,
>>> + struct perf_event *event)
>>> +{
>>> + struct rb_node **node;
>>> + struct rb_node *parent;
>>> + struct perf_event *node_event;
>>> +
>>> + WARN_ON_ONCE(!groups ||
Alexey Budankov <alexey.budan...@linux.intel.com> writes:
> On 18.07.2017 19:55, Alexander Shishkin wrote:
>> Alexey Budankov <alexey.budan...@linux.intel.com> writes:
>>
>>> I see. Do you personally have some more issues that needs to be addressed?
>&g
Alexey Budankov writes:
> On 18.07.2017 19:55, Alexander Shishkin wrote:
>> Alexey Budankov writes:
>>
>>> I see. Do you personally have some more issues that needs to be addressed?
>>> My intention is that this patch v5 4/4 addresses all your comments raised
Alexey Budankov writes:
> I see. Do you personally have some more issues that needs to be addressed?
> My intention is that this patch v5 4/4 addresses all your comments raised in
> the previous reviews.
I don't know yet, I haven't started on the actual content
601 - 700 of 2775 matches
Mail list logo