stat-shadow.c (37932c188ef1b471eae29249df045c8e567772d0) stat-shadow.c (962848142335e8b35d522be78f58f2011d976b17)
1#include <stdio.h>
2#include "evsel.h"
3#include "stat.h"
4#include "color.h"
5#include "pmu.h"
6#include "rblist.h"
7#include "evlist.h"
8#include "expr.h"

--- 789 unchanged lines hidden (view full) ---

798 expr__add_id(&pctx, evsel->metric_events[i]->name,
799 avg_stats(&v->stats));
800 }
801 if (!evsel->metric_events[i]) {
802 const char *p = evsel->metric_expr;
803
804 if (expr__parse(&ratio, &pctx, &p) == 0)
805 print_metric(ctxp, NULL, "%8.1f",
1#include <stdio.h>
2#include "evsel.h"
3#include "stat.h"
4#include "color.h"
5#include "pmu.h"
6#include "rblist.h"
7#include "evlist.h"
8#include "expr.h"

--- 789 unchanged lines hidden (view full) ---

798 expr__add_id(&pctx, evsel->metric_events[i]->name,
799 avg_stats(&v->stats));
800 }
801 if (!evsel->metric_events[i]) {
802 const char *p = evsel->metric_expr;
803
804 if (expr__parse(&ratio, &pctx, &p) == 0)
805 print_metric(ctxp, NULL, "%8.1f",
806 out->force_header ? evsel->name : "",
806 evsel->metric_name ?
807 evsel->metric_name :
808 out->force_header ? evsel->name : "",
807 ratio);
808 else
809 print_metric(ctxp, NULL, NULL, "", 0);
810 } else
811 print_metric(ctxp, NULL, NULL, "", 0);
812 } else if (runtime_nsecs_stats[cpu].n != 0) {
813 char unit = 'M';
814 char unit_buf[10];

--- 15 unchanged lines hidden ---
809 ratio);
810 else
811 print_metric(ctxp, NULL, NULL, "", 0);
812 } else
813 print_metric(ctxp, NULL, NULL, "", 0);
814 } else if (runtime_nsecs_stats[cpu].n != 0) {
815 char unit = 'M';
816 char unit_buf[10];

--- 15 unchanged lines hidden ---