Skip to content

Commit

Permalink
Use newFenceWithNameTag for LKMM compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
  • Loading branch information
hernan-poncedeleon committed Sep 19, 2023
1 parent dc50a54 commit f98f84d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static GenericVisibleEvent newFence(String name) {
return new GenericVisibleEvent(name, Tag.FENCE);
}

private static GenericVisibleEvent newFenceWithNameTag(String name) {
public static GenericVisibleEvent newFenceWithNameTag(String name) {
return new GenericVisibleEvent(name, name, Tag.FENCE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public List<Event> visitLKMMOpReturn(LKMMOpReturn e) {
@Override
public List<Event> visitLKMMFence(LKMMFence e) {
return eventSequence(
newFence(e.getName())
newFenceWithNameTag(e.getName())
);
}

Expand Down Expand Up @@ -225,7 +225,7 @@ public List<Event> visitLKMMUnlock(LKMMUnlock e) {
*/

private static Event newCoreMemoryBarrier() {
return newFence(Tag.Linux.MO_MB);
return newFenceWithNameTag(Tag.Linux.MO_MB);
}

private static Load newCoreLoad(Register reg, Expression addr, String mo) {
Expand Down

0 comments on commit f98f84d

Please sign in to comment.