Re: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event

2024-10-01 Thread Yeo Reum Yun
...@vger.kernel.org; linux-trace-kernel@vger.kernel.org; Peter Zijlstra; Frederic Weisbecker; Arnaldo Carvalho de Melo; Namhyung Kim Subject: Re: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event Can one of the perf folks give me an Ack, and I'll take

Re: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event

2024-09-26 Thread Steven Rostedt
Can one of the perf folks give me an Ack, and I'll take this through my tree. -- Steve On Fri, 13 Sep 2024 03:13:47 +0100 Levi Yun wrote: > When a tracepoint event is created with attr.freq = 1, > 'hwc->period_left' is not initialized correctly. As a result, > in the perf_swevent_overflow() fu

Re: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event

2024-09-24 Thread Yeo Reum Yun
-trace-kernel@vger.kernel.org; Yeo Reum Yun Subject: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event When a tracepoint event is created with attr.freq = 1, 'hwc->period_left' is not initialized correctly. As a result, in the perf_swe

[PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event

2024-09-12 Thread Levi Yun
When a tracepoint event is created with attr.freq = 1, 'hwc->period_left' is not initialized correctly. As a result, in the perf_swevent_overflow() function, when the first time the event occurs, it calculates the event overflow and the perf_swevent_set_period() returns 3, this leads to the event a