lkml.org 
[lkml]   [2020]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4] tools/perf/metricgroup: Fix printing event names of metric group with multiple events incase of overlapping events
On Wed, Feb 12, 2020 at 11:11:02AM +0530, Kajol Jain wrote:

SNIP

>
> return metric_events[0];
> @@ -160,6 +161,14 @@ static int metricgroup__setup_events(struct list_head *groups,
> int ret = 0;
> struct egroup *eg;
> struct evsel *evsel;
> + bool *evlist_used;
> +
> + evlist_used = (bool *)calloc(perf_evlist->core.nr_entries,
> + sizeof(bool));
> + if (!evlist_used) {
> + ret = -ENOMEM;
> + break;

hum, how did this compile for you? ;-)

util/metricgroup.c: In function ‘metricgroup__setup_events’:
util/metricgroup.c:170:3: error: break statement not within loop or switch
170 | break;


jirka

\
 
 \ /
  Last update: 2020-02-16 21:22    [W:1.923 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site