linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernelshark: fix compiling error in LatencyPlot.cpp
@ 2024-06-11 15:33 Jerome Marchand
  2024-06-15  5:50 ` Yordan Karadzhov
  0 siblings, 1 reply; 2+ messages in thread
From: Jerome Marchand @ 2024-06-11 15:33 UTC (permalink / raw)
  To: Yordan Karadzhov; +Cc: Linux Trace Devel, Jerome Marchand

Include the <algorithm> header to use std::for_each.

Fixes the following compilation error:
kernel-shark/src/plugins/LatencyPlot.cpp: In function void draw_latency(kshark_cpp_argv*, int, int, int):
kernel-shark/src/plugins/LatencyPlot.cpp:306:14: error: for_each is not a member of std
  306 |         std::for_each(range.first, range.second, lamPlotLat);
      |              ^~~~~~~~

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
---
 src/plugins/LatencyPlot.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/LatencyPlot.cpp b/src/plugins/LatencyPlot.cpp
index d412917..5e3393b 100644
--- a/src/plugins/LatencyPlot.cpp
+++ b/src/plugins/LatencyPlot.cpp
@@ -15,6 +15,7 @@
 // C++
 #include <unordered_map>
 #include <iostream>
+#include <algorithm>
 
 // KernelShark
 #include "plugins/latency_plot.h"
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernelshark: fix compiling error in LatencyPlot.cpp
  2024-06-11 15:33 [PATCH] kernelshark: fix compiling error in LatencyPlot.cpp Jerome Marchand
@ 2024-06-15  5:50 ` Yordan Karadzhov
  0 siblings, 0 replies; 2+ messages in thread
From: Yordan Karadzhov @ 2024-06-15  5:50 UTC (permalink / raw)
  To: Jerome Marchand; +Cc: Linux Trace Devel

The patch is applied. Thanks!

Yordan

On 6/11/24 18:33, Jerome Marchand wrote:
> Include the <algorithm> header to use std::for_each.
> 
> Fixes the following compilation error:
> kernel-shark/src/plugins/LatencyPlot.cpp: In function void draw_latency(kshark_cpp_argv*, int, int, int):
> kernel-shark/src/plugins/LatencyPlot.cpp:306:14: error: for_each is not a member of std
>    306 |         std::for_each(range.first, range.second, lamPlotLat);
>        |              ^~~~~~~~
> 
> Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
> ---
>   src/plugins/LatencyPlot.cpp | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/plugins/LatencyPlot.cpp b/src/plugins/LatencyPlot.cpp
> index d412917..5e3393b 100644
> --- a/src/plugins/LatencyPlot.cpp
> +++ b/src/plugins/LatencyPlot.cpp
> @@ -15,6 +15,7 @@
>   // C++
>   #include <unordered_map>
>   #include <iostream>
> +#include <algorithm>
>   
>   // KernelShark
>   #include "plugins/latency_plot.h"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-15  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11 15:33 [PATCH] kernelshark: fix compiling error in LatencyPlot.cpp Jerome Marchand
2024-06-15  5:50 ` Yordan Karadzhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).