Enable VTune JIT profiling support for wasm-c-api with bazel [v8/v8 : main]

27 views
Skip to first unread message

Rahul S Chaphalkar (Gerrit)

unread,
Jun 23, 2023, 2:34:56 PM6/23/23
to v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com

Attention is currently required from: Rahul S Chaphalkar.

Rahul S Chaphalkar uploaded patch set #2 to this change.

View Change

Enable VTune JIT profiling support for wasm-c-api with bazel

This change allows bazel build to enable vtune jit support via flag
`v8_enable_vtunejit` set to true, similar to GN.
Enables appropriate libraries for wee8 when flag is true.
Support enabled in wasm/c-api.cc and wee8 library so that embedders
which use wasm-c-api can use vtune support.

Bug: N/A

Test: bazel build --//:v8_enable_vtunejit=true wee8
https://bugs.chromium.org/p/v8/issues/detail?id=14056&q=vtune%20bazel&can=2
Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
---
M BUILD.bazel
M WORKSPACE
A bazel/BUILD.ittapi
M src/wasm/c-api.cc
4 files changed, 60 insertions(+), 2 deletions(-)

To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 2
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>

Michael Achenbach (Gerrit)

unread,
Jun 26, 2023, 2:13:16 AM6/26/23
to Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, V8 LUCI CQ

Attention is currently required from: Rahul S Chaphalkar.

View Change

1 comment:

  • Patchset:

    • Patch Set #2:

      I've added your account to project-v8-tryjob-access - tryjobs and dry run should work now.

To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 2
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-CC: Michael Achenbach <mache...@chromium.org>
Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Comment-Date: Mon, 26 Jun 2023 06:13:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Jakob Kummerow (Gerrit)

unread,
Jun 26, 2023, 6:05:34 AM6/26/23
to Victor Gomes, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Rahul S Chaphalkar, Jakob Kummerow

Attention is currently required from: Rahul S Chaphalkar, Victor Gomes.

Jakob Kummerow would like Victor Gomes to review this change authored by Rahul S Chaphalkar.

View Change

Enable VTune JIT profiling support for wasm-c-api with bazel


This change allows bazel build to enable vtune jit support via flag
`v8_enable_vtunejit` set to true, similar to GN.
Enables appropriate libraries for wee8 when flag is true.
Support enabled in wasm/c-api.cc and wee8 library so that embedders
which use wasm-c-api can use vtune support.

Bug: N/A

Test: bazel build --//:v8_enable_vtunejit=true wee8
https://bugs.chromium.org/p/v8/issues/detail?id=14056&q=vtune%20bazel&can=2
Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
---
M BUILD.bazel
M WORKSPACE
A bazel/BUILD.ittapi
M src/wasm/c-api.cc
4 files changed, 60 insertions(+), 2 deletions(-)


To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 2
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-CC: Michael Achenbach <mache...@chromium.org>
Gerrit-Attention: Victor Gomes <victo...@chromium.org>

Jakob Kummerow (Gerrit)

unread,
Jun 26, 2023, 6:05:36 AM6/26/23
to Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Victor Gomes, Jakob Kummerow, Michael Achenbach, V8 LUCI CQ

Attention is currently required from: Rahul S Chaphalkar, Victor Gomes.

Patch set 2:Code-Review +1Commit-Queue +1

View Change

1 comment:

To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 2
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-CC: Michael Achenbach <mache...@chromium.org>
Gerrit-Attention: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Comment-Date: Mon, 26 Jun 2023 10:05:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Victor Gomes (Gerrit)

unread,
Jun 26, 2023, 6:26:06 AM6/26/23
to Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Jakob Kummerow, Michael Achenbach, V8 LUCI CQ

Attention is currently required from: Jakob Kummerow, Rahul S Chaphalkar.

Patch set 2:Code-Review +1

View Change

3 comments:

To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 2
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-CC: Michael Achenbach <mache...@chromium.org>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Comment-Date: Mon, 26 Jun 2023 10:26:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Victor Gomes (Gerrit)

unread,
Jun 27, 2023, 3:19:27 AM6/27/23
to Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Jakob Kummerow, Michael Achenbach, V8 LUCI CQ

Attention is currently required from: Jakob Kummerow, Rahul S Chaphalkar.

Patch set 3:Code-Review +1

View Change

1 comment:

  • File WORKSPACE:

    • Patch Set #2, Line 61: add_prefix = "third_party/ittapi",

      I guess the bot is using an old version of bazel that does not support add_prefix.

To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
Gerrit-Change-Number: 4641270
Gerrit-PatchSet: 3
Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-CC: Michael Achenbach <mache...@chromium.org>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>
Gerrit-Comment-Date: Tue, 27 Jun 2023 07:19:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Victor Gomes <victo...@chromium.org>

Rahul S Chaphalkar (Gerrit)

unread,
Jun 27, 2023, 3:17:46 PM6/27/23
to v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Victor Gomes, Jakob Kummerow, Michael Achenbach, V8 LUCI CQ

Attention is currently required from: Jakob Kummerow, Rahul S Chaphalkar, Victor Gomes.

Patch set 3:Commit-Queue +2

View Change

    To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
    Gerrit-Change-Number: 4641270
    Gerrit-PatchSet: 3
    Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>
    Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
    Gerrit-CC: Michael Achenbach <mache...@chromium.org>
    Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Attention: Victor Gomes <victo...@chromium.org>
    Gerrit-Attention: Rahul S Chaphalkar <rahul.s.c...@intel.com>
    Gerrit-Comment-Date: Tue, 27 Jun 2023 19:17:43 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    V8 LUCI CQ (Gerrit)

    unread,
    Jun 27, 2023, 3:19:27 PM6/27/23
    to Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Victor Gomes, Jakob Kummerow, Michael Achenbach

    V8 LUCI CQ submitted this change.

    View Change

    Approvals: Jakob Kummerow: Looks good to me Rahul S Chaphalkar: Commit Victor Gomes: Looks good to me
    Enable VTune JIT profiling support for wasm-c-api with bazel

    This change allows bazel build to enable vtune jit support via flag
    `v8_enable_vtunejit` set to true, similar to GN.
    Enables appropriate libraries for wee8 when flag is true.
    Support enabled in wasm/c-api.cc and wee8 library so that embedders
    which use wasm-c-api can use vtune support.

    Bug: N/A

    Test: bazel build --//:v8_enable_vtunejit=true wee8
    https: //bugs.chromium.org/p/v8/issues/detail?id=14056&q=vtune%20bazel&can=2
    Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4641270
    Reviewed-by: Victor Gomes <victo...@chromium.org>
    Commit-Queue: Rahul S Chaphalkar <rahul.s.c...@intel.com>
    Reviewed-by: Jakob Kummerow <jkum...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#88516}

    ---
    M BUILD.bazel
    M WORKSPACE
    A bazel/BUILD.ittapi
    M src/wasm/c-api.cc
    4 files changed, 62 insertions(+), 2 deletions(-)


    To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: merged
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I0cdf3f98f33fb6eb9876854c64a1ab122a45e81d
    Gerrit-Change-Number: 4641270
    Gerrit-PatchSet: 4
    Gerrit-Owner: Rahul S Chaphalkar <rahul.s.c...@intel.com>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Rahul S Chaphalkar <rahul.s.c...@intel.com>

    Rezvan Mahdavi Hezaveh (Gerrit)

    unread,
    Jun 27, 2023, 4:35:00 PM6/27/23
    to V8 LUCI CQ, Rahul S Chaphalkar, v8-re...@googlegroups.com, victorgo...@chromium.org, was...@google.com, Victor Gomes, Jakob Kummerow, Michael Achenbach

    Rezvan Mahdavi Hezaveh has created a revert of this change.

    View Change

    To view, visit change 4641270. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: revert
    Reply all
    Reply to author
    Forward
    0 new messages