This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Instrumentation: Fix tests
ClosedPublic

Authored by Elvina on Jun 1 2023, 12:40 PM.

Details

Summary

Tests for instrumentation

Diff Detail

Event Timeline

Elvina created this revision.Jun 1 2023, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 12:40 PM
Elvina requested review of this revision.Jun 1 2023, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 12:40 PM
Elvina updated this revision to Diff 527569.Jun 1 2023, 12:43 PM
Elvina updated this revision to Diff 527876.Jun 2 2023, 8:50 AM
Elvina updated this revision to Diff 527951.Jun 2 2023, 1:42 PM
Elvina updated this revision to Diff 527975.Jun 2 2023, 2:20 PM
rafauler added inline comments.Jun 21 2023, 7:05 PM
bolt/test/X86/asm-dump.c
10–11

nit: revert this change as it breaks this test, or add RUN: on line 11

We need a test that checks indirect calls are correctly handled, like the one we have in D153771

We need a test that checks indirect calls are correctly handled, like the one we have in D153771

Or we can make that test work for all platforms.

We need a test that checks indirect calls are correctly handled, like the one we have in D153771

Or we can make that test work for all platforms.

I agree

Elvina updated this revision to Diff 543521.Jul 24 2023, 6:39 AM

added more tests, moved some from X86 to the common level

Elvina marked an inline comment as done.Jul 24 2023, 6:39 AM
Elvina updated this revision to Diff 552036.Aug 21 2023, 8:36 AM

Remove comment in meta-merge-fdata.test

rafauler accepted this revision.Aug 22 2023, 6:52 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Aug 22 2023, 6:52 PM
This revision was automatically updated to reflect the committed changes.
Amir added a comment.Aug 28 2023, 2:47 PM

Hi Elvina, this stack broke aarch64 buildbot: https://lab.llvm.org/buildbot/#/builders/221/builds/17715. You should've received a notification. Please prioritize fixing it or revert if it can't be fixed quickly.

Hi Elvina, this stack broke aarch64 buildbot: https://lab.llvm.org/buildbot/#/builders/221/builds/17715. You should've received a notification. Please prioritize fixing it or revert if it can't be fixed quickly.

Hi! I'm trying to disable these tests in case they're building on aarch64, but I'm not sure this is the right way. Could you please take a look? https://reviews.llvm.org/D159094

Amir added a comment.Aug 30 2023, 10:37 AM

Hi Elvina, this stack broke aarch64 buildbot: https://lab.llvm.org/buildbot/#/builders/221/builds/17715. You should've received a notification. Please prioritize fixing it or revert if it can't be fixed quickly.

Hi! I'm trying to disable these tests in case they're building on aarch64, but I'm not sure this is the right way. Could you please take a look? https://reviews.llvm.org/D159094

Sorry, I meant specifically these tests (the buildbot is aarch64):

  • instrumentation-ind-call.c: instrumented binary crashes with segfault
  • basic-instrumentation.test: illegal instruction
  • meta-merge-fdata.test: segfault

If needed I can provide access to the buildbot host, but it's a pretty standard Ubuntu 22.04 installation, so I'd suggest reproducing the issues locally first.

instrumentation-eh_frame_hdr.cpp and patch-entries.c will be addressed separately.