Skip to content

Commit 237cf4c

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-enabled-by-default base into t/DO-NOT-MERGE-mptcp-enabled-by-default
2 parents 653325b + cd8abaf commit 237cf4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static void *worker_trigger(void *arg)
661661
rounds++;
662662
}
663663

664-
printf("tid %d trigger rounds: %lu\n", gettid(), rounds);
664+
printf("tid %ld trigger rounds: %lu\n", sys_gettid(), rounds);
665665
return NULL;
666666
}
667667

@@ -704,7 +704,7 @@ static void *worker_attach(void *arg)
704704
rounds++;
705705
}
706706

707-
printf("tid %d attach rounds: %lu hits: %d\n", gettid(), rounds, skel->bss->executed);
707+
printf("tid %ld attach rounds: %lu hits: %d\n", sys_gettid(), rounds, skel->bss->executed);
708708
uprobe_syscall_executed__destroy(skel);
709709
free(ref);
710710
return NULL;

tools/testing/selftests/bpf/prog_tests/usdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void subtest_basic_usdt(bool optimized)
142142
goto cleanup;
143143
#endif
144144

145-
alled = TRIGGER(1);
145+
called = TRIGGER(1);
146146

147147
ASSERT_EQ(bss->usdt0_called, called, "usdt0_called");
148148
ASSERT_EQ(bss->usdt3_called, called, "usdt3_called");

tools/testing/selftests/bpf/trace_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ int bpf_get_addrs(unsigned long **addrsp, size_t *cntp, bool kernel)
732732

733733
if (cnt == max_cnt) {
734734
max_cnt += inc_cnt;
735-
tmp_addrs = realloc(addrs, max_cnt);
735+
tmp_addrs = realloc(addrs, max_cnt * sizeof(long));
736736
if (!tmp_addrs) {
737737
err = -ENOMEM;
738738
goto error;

0 commit comments

Comments
 (0)