From 750ee4bf781ebc62fa2d40d9c3c2f9bfe083e434 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Fri, 28 Jul 2023 14:37:12 -0400 Subject: [PATCH 1/2] In the expression returned by the `parse_pstats_options` function, fully qualify the `parse_groups` function --- src/LinuxPerf.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LinuxPerf.jl b/src/LinuxPerf.jl index 933831e..3e2fbe2 100644 --- a/src/LinuxPerf.jl +++ b/src/LinuxPerf.jl @@ -553,7 +553,7 @@ end function parse_pstats_options(opts) # default events - events = :(parse_groups(" + events = :(LinuxPerf.parse_groups(" (cpu-cycles, stalled-cycles-frontend, stalled-cycles-backend), (instructions, branch-instructions, branch-misses), (task-clock, context-switches, cpu-migrations, page-faults) From 8aef34b4794d0b9d55717e361fa7dcc921cd26ed Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Fri, 4 Aug 2023 01:20:16 -0400 Subject: [PATCH 2/2] Expand the output of `parse_groups` before returning Co-authored-by: Valentin Churavy --- src/LinuxPerf.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LinuxPerf.jl b/src/LinuxPerf.jl index 3e2fbe2..1e64096 100644 --- a/src/LinuxPerf.jl +++ b/src/LinuxPerf.jl @@ -553,7 +553,7 @@ end function parse_pstats_options(opts) # default events - events = :(LinuxPerf.parse_groups(" + events = :($parse_groups(" (cpu-cycles, stalled-cycles-frontend, stalled-cycles-backend), (instructions, branch-instructions, branch-misses), (task-clock, context-switches, cpu-migrations, page-faults)