|
@@ -325,6 +325,8 @@ static int test__checkevent_breakpoint_modifier(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong exclude_kernel", evsel->attr.exclude_kernel);
|
|
|
TEST_ASSERT_VAL("wrong exclude_hv", evsel->attr.exclude_hv);
|
|
|
TEST_ASSERT_VAL("wrong precise_ip", !evsel->attr.precise_ip);
|
|
|
+ TEST_ASSERT_VAL("wrong name",
|
|
|
+ !strcmp(perf_evsel__name(evsel), "mem:0x0:rw:u"));
|
|
|
|
|
|
return test__checkevent_breakpoint(evlist);
|
|
|
}
|
|
@@ -338,6 +340,8 @@ static int test__checkevent_breakpoint_x_modifier(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->attr.exclude_kernel);
|
|
|
TEST_ASSERT_VAL("wrong exclude_hv", evsel->attr.exclude_hv);
|
|
|
TEST_ASSERT_VAL("wrong precise_ip", !evsel->attr.precise_ip);
|
|
|
+ TEST_ASSERT_VAL("wrong name",
|
|
|
+ !strcmp(perf_evsel__name(evsel), "mem:0x0:x:k"));
|
|
|
|
|
|
return test__checkevent_breakpoint_x(evlist);
|
|
|
}
|
|
@@ -351,6 +355,8 @@ static int test__checkevent_breakpoint_r_modifier(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong exclude_kernel", evsel->attr.exclude_kernel);
|
|
|
TEST_ASSERT_VAL("wrong exclude_hv", !evsel->attr.exclude_hv);
|
|
|
TEST_ASSERT_VAL("wrong precise_ip", evsel->attr.precise_ip);
|
|
|
+ TEST_ASSERT_VAL("wrong name",
|
|
|
+ !strcmp(perf_evsel__name(evsel), "mem:0x0:r:hp"));
|
|
|
|
|
|
return test__checkevent_breakpoint_r(evlist);
|
|
|
}
|
|
@@ -364,6 +370,8 @@ static int test__checkevent_breakpoint_w_modifier(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong exclude_kernel", evsel->attr.exclude_kernel);
|
|
|
TEST_ASSERT_VAL("wrong exclude_hv", evsel->attr.exclude_hv);
|
|
|
TEST_ASSERT_VAL("wrong precise_ip", evsel->attr.precise_ip);
|
|
|
+ TEST_ASSERT_VAL("wrong name",
|
|
|
+ !strcmp(perf_evsel__name(evsel), "mem:0x0:w:up"));
|
|
|
|
|
|
return test__checkevent_breakpoint_w(evlist);
|
|
|
}
|
|
@@ -377,6 +385,8 @@ static int test__checkevent_breakpoint_rw_modifier(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->attr.exclude_kernel);
|
|
|
TEST_ASSERT_VAL("wrong exclude_hv", evsel->attr.exclude_hv);
|
|
|
TEST_ASSERT_VAL("wrong precise_ip", evsel->attr.precise_ip);
|
|
|
+ TEST_ASSERT_VAL("wrong name",
|
|
|
+ !strcmp(perf_evsel__name(evsel), "mem:0x0:rw:kp"));
|
|
|
|
|
|
return test__checkevent_breakpoint_rw(evlist);
|
|
|
}
|