https://bugs.llvm.org/show_bug.cgi?id=38951

            Bug ID: 38951
           Summary: [llvm-exegesis] PfmIssueCounter for uops in amdfam15h
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: lebedev...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 20882
  --> https://bugs.llvm.org/attachment.cgi?id=20882&action=edit
uops measurements

On amdfam15h (BdVer2, Piledriver), the uops measurement is problematic.
My current config:

let SchedModel = BdVer2Model in {
def PdCycleCounter : PfmCycleCounter<"cpu_clk_unhalted">;
def PdEXCounter    : PfmIssueCounter<PdEX, // Technically, PdEX
                                     ["retired_uops"]>;
def PdFPU0Counter  : PfmIssueCounter<PdFPU0,
                                     ["dispatched_fpu_ops:ops_pipe0",
                                      "dispatched_fpu_ops:ops_dual_pipe0"]>;
def PdFPU1Counter  : PfmIssueCounter<PdFPU1,
                                     ["dispatched_fpu_ops:ops_pipe1",
                                      "dispatched_fpu_ops:ops_dual_pipe1"]>;
def PdFPU2Counter  : PfmIssueCounter<PdFPU2,
                                     ["dispatched_fpu_ops:ops_pipe2",
                                      "dispatched_fpu_ops:ops_dual_pipe2"]>;
def PdFPU3Counter  : PfmIssueCounter<PdFPU3,
                                     ["dispatched_fpu_ops:ops_pipe3",
                                      "dispatched_fpu_ops:ops_dual_pipe3"]>;

// NOTE: it would seem, there are not uops counters for any other pipes.
}

The fpu stuff seems to work.
But retired_uops is not specific to the EX/AGU units.
And i don't see any other, EX/AGU-specific ones.

It counts all the uops, to all the units. The dual-issue uop is counted as one
uop.
So it would be more correct to define this as:
PdUOpsTotal = retired_uops
PdEXCounter = PdUOpsTotal - PdFPU0Counter - PdFPU1Counter - PdFPU2Counter -
PdFPU3Counter
I think?

I don't have any ideas, i just though i'd bring this up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to