0
Commit Graph

97 Commits

Author SHA1 Message Date
db7caa6a84 Move windows specific doc about ninja ^ syntax
Bug: b/336185923
Change-Id: I1564e7a607927284bb6e07c51dd1bcd88a16e5b5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471602
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Junji Watanabe <jwata@google.com>
Cr-Commit-Position: refs/heads/main@{#1290534}
2024-04-22 08:15:34 +00:00
7037b95f1b [doc] Add explanation for special ^ syntax
Bug: b/336185923
Change-Id: I1c145880df757178fc4320318c56808fc6e880ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5465556
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Cr-Commit-Position: refs/heads/main@{#1290514}
2024-04-22 06:14:15 +00:00
971848cee5 Fix docker installation procedures in Linux Build instructions
Fixed a wrong command parameter while running docker. Fixed all wrong
markdown styles in the file. Added Swap hint for low RAM.

Change-Id: I463b6dfebd35dc67d3db1562a1b49119a89479f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5464299
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Piotr Bialecki <bialpio@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1288998}
2024-04-17 21:47:30 +00:00
95600993fa Add another googler-specific warning about reclient.
Adding the warning message again to just above the gclient file
contents, the first warning has been missed a few times.

Bug: 325928330
Change-Id: I67d625eb21178744542976a19cdf73bfa23aac41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5426233
Reviewed-by: Matt Giuca <mgiuca@chromium.org>
Commit-Queue: Michael Savigny <msavigny@google.com>
Cr-Commit-Position: refs/heads/main@{#1285094}
2024-04-10 13:59:10 +00:00
da8412789a Reland [Instrumented libs] Pull instrumented_libraries via recursedeps
This is a reland of https://crrev.com/1277898

Reason for reland: b/331404365 is fixed

Projects like V8/WebRTC/Pdfium/etc will also have to:
1. Change DEPS as in this CL
2. Rename instrumented_libraries to instrumented_libs as in this CL

R=thakis,dpranke

Cq-Include-Trybots: luci.chromium.try:linux_chromium_msan_rel_ng
Bug: 320564950
Change-Id: Id85151f41cdb44e95f5b6479d59ccbecf184f682
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5421930
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282953}
2024-04-05 04:00:39 +00:00
685d73ade2 Update documentation for building instrumented libraries.
- `nih-dbus-tool` no longer exists, and is no longer needed. Remove it
  from the list of packages that need to be installed.
- Run `apt upgrade` after `apt update`, because why not.
- Document several additional build dependencies:
  - git so the GN invocation does not fail when trying to exec scripts
    that use git
  - gyp since several instrumented libraries (e.g. NSS) use gyp
  - fakeroot since several instrumented libraries use fakeroot
- Make the command for mounting /dev/shm more copy-pastable.
- Add basic directions for removing chroots.

Bug: 1369167
Change-Id: I89fd7f8bc8e5ec8d621ccdd0a74f4ae1144065be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5404471
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1279818}
2024-03-28 18:24:45 +00:00
08b259c2e1 Add docker installation procedures in Linux Build instructions
Add docker file, docker installation procedures as per requested by Brian Sheedy in GSoC Mailing List. It installs Ubuntu 22.04, build instructions and persists data on drive.

Change-Id: Id1048d015a3c2d049617d922e94253815a468b10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5380520
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1279178}
2024-03-27 19:52:17 +00:00
9e806ef8dd Revert the instrumented_libraries -> instrumented_libs changes.
We needed to revert the CL that moved the MSAN libraries to
a dependency, because the new repo w/ the dependency didn't
have the right ACLs.

  Revert "[Instrumented libraries] Pull instrumented_libraries via recursedeps"
  https://crrev.com/c/5368675 (this is the main commit)
  This reverts commit ce4370776d.

  Reverting this needed to be done by hand because there were
  two CLs landed after the change that depended on it:

  Revert "[Instrumented libraries] Fix archive file extension in doc"
  https://crrev.com/c/5393429 (this was the second of the 3 CLs)
  This reverts commit 858556121f.

  Revert "Remove instrumented_libs from recusedeps in DEPS."
  https://crrev.com/c/5398599 (this was the third of the 3 CLs)
  This reverts commit c110f341e5.

Bug: 331365997
No-Tree-Checks: true
No-Try: true
Change-Id: I9356e7abb8cebc21ea5e6ab186fe03bddc574145
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5399365
Reviewed-by: Keybo Qian <keybo@google.com>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Xinan Lin <linxinan@chromium.org>
Owners-Override: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Owners-Override: Xinan Lin <linxinan@chromium.org>
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1278706}
2024-03-27 02:34:18 +00:00
75fd83f884 Update documentation link for building instrumented libraries.
Bug: 1369167
Change-Id: I47e575d1e9a1641a48225e2668b3c6ec5ecefd9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5397559
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1278543}
2024-03-26 19:44:20 +00:00
858556121f [Instrumented libraries] Fix archive file extension in doc
.tgz was changed to .tar.gz since that's all
download_from_google_storage supports.  This CL updates the path in
docs.

R=thestig

Change-Id: I8ea2891b0d3089ca733429f0d59975b81a8be285
Bug: 320564950
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5393429
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1278010}
2024-03-25 23:00:28 +00:00
ce4370776d [Instrumented libraries] Pull instrumented_libraries via recursedeps
Projects like V8/WebRTC/Pdfium/etc will also have to:
1. Change DEPS as in this CL
2. Rename instrumented_libraries to instrumented_libs as in this CL

Cq-Include-Trybots: luci.chromium.try:linux_chromium_msan_rel_ng
Bug: 320564950
Change-Id: I802bce32cc37d0ec9c0081cf08a4f8179293693d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5368675
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1277898}
2024-03-25 20:26:16 +00:00
8a68f87288 [Instrumented libraries] Add note to doc about mounting /dev/shm
/dev/shm is now required to be mounted for the build.

R=thestig

Change-Id: I3fc8444de6e7d7f83f47f55be13aa7ae00b6d8f7
Bug: None
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5367014
Reviewed-by: Lei Zhang <thestig@chromium.org>
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1271864}
2024-03-12 22:49:57 +00:00
3e1b99498f Add note on how to use perf record if PMU counters are not available.
Bug: 313526654
Change-Id: Iab8b2915c0627f5830344cb8145810f7898b5409
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5337346
Reviewed-by: David Benjamin <davidben@chromium.org>
Auto-Submit: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1267454}
2024-03-01 18:36:08 +00:00
ca56909583 Update doc for access request to chromium-instrumented-libraries
Change-Id: I3e988279dd052e3deb93e7dcee03235581bcdf31
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5275243
Reviewed-by: Joey Scarr <jsca@google.com>
Commit-Queue: Anne Redulla <aredulla@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1257137}
2024-02-07 02:12:22 +00:00
b3cf42f11a Update documentation for building instrumented libraries.
Fixes a script location and (hopefully) makes commands a bit easier to
copy and paste.

Change-Id: I1a6b1babc4fa5ad59c35f4f11e97c47f79803f2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5270813
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1256601}
2024-02-06 04:29:34 +00:00
54da9cc2df Add/Update external Reclient build instructions
Bug: b/291868532
Change-Id: I54e6225ab01e12141957949d5c8c35b32e5062d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5159847
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1244750}
2024-01-09 17:32:23 +00:00
aa455031a5 vaapi: Update VA-API documents for Linux
This CL updates the Linux arguments and feature switches in 'vaapi.md',
and deprecates the legacy 'hw_video_decode.md'.

Bug: 1492880
Change-Id: I0fa7b5a0dbdc3517ad6d4fd25d3a25d244d05ff4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4987137
Commit-Queue: Steve Cho <stevecho@chromium.org>
Reviewed-by: Miguel Casas-Sanchez <mcasas@chromium.org>
Reviewed-by: Steve Cho <stevecho@chromium.org>
Auto-Submit: Jianhui J Dai <jianhui.j.dai@intel.com>
Cr-Commit-Position: refs/heads/main@{#1233450}
2023-12-05 18:06:19 +00:00
1b118a8b11 docs/linux: add section how to get access to Google RBE backend
This copies statements from
https://chromium.googlesource.com/infra/goma/client/+/HEAD/doc/early-access-guide.md#please-wait-for-invitation-from-google

Bug: b/291868532
Change-Id: I8ae94cf494b48d2c96dff2d3a7b1b25f508f7645
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056945
Reviewed-by: Harry Souders <harrysouders@google.com>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1229750}
2023-11-28 05:55:25 +00:00
43f9cb8474 Update reclient docs in linux/build_instructions.md.
Bug: b/309546834
Change-Id: I7a747f7ee68bb3d1c4a8f606483e45543ff22d23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5038493
Reviewed-by: Michael Savigny <msavigny@google.com>
Commit-Queue: Philipp Wollermann <philwo@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1229169}
2023-11-27 05:33:19 +00:00
ad01fbd448 [Sysroot] Port sysroot-creator.sh to Python
R=thestig

Bug: None
Change-Id: I951ec800463624ece45b1460c631e08429c37d03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5027933
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1226243}
2023-11-17 18:52:30 +00:00
77654728a8 docs/linux: add explanation about gcloud in reclient section
This is for http://shortn/_aSsyotZ1dn.

Bug: b/309546834
Change-Id: I7e8f81795bfb14e1952c85eb4959127a83cd2a5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5016384
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1222685}
2023-11-10 01:42:33 +00:00
0bcd3ef018 Fix reclient setup link.
The link for setting up reclient for googlers was actually pointing to the section of
the docs about using reclient, not setting it up.  This has led to some
users missing critical setup steps.

Bug: b/308577099
Change-Id: Ic71794db3441a4af8d919deacc4c3f3e7ee37a5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4993130
Reviewed-by: Michael Ershov <miersh@google.com>
Commit-Queue: Michael Savigny <msavigny@google.com>
Cr-Commit-Position: refs/heads/main@{#1217553}
2023-10-31 14:15:46 +00:00
e39bf1ba93 linux docs: Fix link for building with remote execution
Bug: None
Change-Id: I7ed98b23ae6567a334c7bd290da202c4f1bf0011
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4911613
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Ted Brandston <tbrandston@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1205612}
2023-10-05 01:42:47 +00:00
07e101a915 [goma] Update deprecation notice and reclient instructions to be clearer
Bug: b/302342921
Change-Id: I32b0c13e74d1186bdac3ee85def72d69fcbe2b9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4897360
Auto-Submit: Ben Segall <bentekkie@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1202366}
2023-09-28 06:33:01 +00:00
5e33eb713e Update package URL for NixOS
Use the more user-friendly package search website, per suggestion from
hexa@darmstadt.ccc.de.

Change-Id: I4a51ad5386ebe4baa778d093515f589da8a9258f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4893897
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1202039}
2023-09-27 19:03:16 +00:00
e95877fe72 [wptrunner] Add run_wpt_tests.py support to debug_renderer
Add support for interactively debugging WPTs with upstream's `wpt run`.
`run_wpt_tests.py --verbose` ensures browser logs are dumped to stdout
so that `debug_renderer` can find the PID to attach to.

Bug: 1440021
Test: ./debug_renderer ./run_wpt_tests.py -t Default
Test: external/wpt/badging/badge-success.https.html
Change-Id: I58323aea67f6232bc28b198b8f18d3d7bb7d8a7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4893148
Reviewed-by: Weizhong Xia <weizhong@google.com>
Commit-Queue: Jonathan Lee <jonathanjlee@google.com>
Reviewed-by: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1201810}
2023-09-26 21:16:30 +00:00
52913100d1 Update info for openSUSE Chromium packages
Refresh the entry, as it is at least 8 years old.
Thanks to Andreas Stieger for the updated info.

Change-Id: I714196cf087b66555253a810e6e2a75dddb53932
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4875795
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1198557}
2023-09-19 19:38:22 +00:00
66f5de8d61 docs: add initial reclient build instruction
Bug: b/291868532
Change-Id: I7198611a904d7b955ca852d502fb7b3365c4d0a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4756110
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1193914}
2023-09-08 03:55:44 +00:00
8766b622c7 Update docs to require Python 3.8.
We had not updated the docs in a while so there were references
to the Python3 migration and Python3.6 still present in some
places.

This CL updates the docs to refer to the current Python version
(3.8) and removes documentation for the Python3 migration, which
is no longer necessary.

Change-Id: Id59d10d90dbd8ceff0ec8203be5e4dfbdc58c4b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4824013
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1190394}
2023-08-30 23:19:36 +00:00
89670afb55 [LED] Add note about $PATH for Googlers.
If the user's $PATH is not set correctly, they will end up running the
wrong LED.

Bug: 1471726
Change-Id: I10d83c35417a55d9740b595365b711d7d1101056
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4794976
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1185648}
2023-08-20 18:14:07 +00:00
1fbcd1d2fc Allow explicitly selecting kwallet6 as secret storage.
Previously, only kwallet4 and 5 could be selected explicitly, kwallet6 was only internally supported.

Change-Id: I5d48b056b344757bc04b7eb53149954daaf74815
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4671159
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Christos Froussios <cfroussios@chromium.org>
Commit-Queue: Christos Froussios <cfroussios@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1169066}
2023-07-12 01:04:23 +00:00
7bebb101da Collect minidump documentation into one place
Change-Id: I6ecc111cdf78b4f2ab385674dd3e036adcdd5df0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4566687
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1164352}
2023-06-29 21:26:03 +00:00
d89a45b9cd docs: Mention that most linux infra is on jammy now
Currently, the vast majority of chromium builds run on jammy. And
after https://crrev.com/c/4652993, any new builder will automatically
be running on jammy.

So jammy is now the official default for infra jobs. This updates
the docs to mention that, and clarifies them a little since the
statement about "most development" might apply to more than just CI
builds, and we can't be as confident about the OS breakdown outside
of our infra.

Bug: 1412588
Change-Id: I751abf251db9758c0b6c12733a2e06f7a5e3e5c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654783
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1163837}
2023-06-28 22:57:34 +00:00
85f9f1b5b5 Document how to use minidump_stackwalk instead of gdb
Change-Id: Ia41678c963aa537bcf50b5fd18b9da33d671bf82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4636957
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161415}
2023-06-22 20:21:02 +00:00
761687acc3 Remove references to Gnome Keyring in //docs
R=thestig

Change-Id: I4bda56ba4328a590e06e43fadbc3c461eec1407f
Bug: 355223
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4607551
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1157637}
2023-06-14 17:27:39 +00:00
d0f90c9d31 doc: Fix link to gdbinit.md & lldbinit.md on linux/debugging.md
- Fix the broken link to gdbinit.md & lldbinit.md on linux/debugging.md.
- Additionally, replace the absolute link to gdbinit.md with a relative
  link to maintain notation consistency with the other links in this
  doc.

Bug: n/a
Change-Id: Idc275f63de05264b66d0fbe022f26dc0e0b63599
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4573957
Auto-Submit: Taiyo Mizuhashi <taiyo@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1150998}
2023-05-31 00:55:23 +00:00
a77c6be635 Refactor sysroot-creator.sh
* Use consistent architecture naming
* Change usage to sysroot-creator.sh {build,upload} <arch>
* Merge sysroot-creator-bullseye.sh into sysroot-creator.sh
  since we've only had 1 sysroot for >5 years.
* Remove some unneeded commands like PrintDistro/PrintRelease
* Update references from docs and other scripts

Bug: None

Change-Id: I4809de50a03557df533d1f502f15e5acf793c6a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4535715
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1145773}
2023-05-18 01:58:59 +00:00
38748969a4 Simplify the "smaller build" linux instructions
This removes a reference to `dcheck_always_on = false` which seems
prevalent through cargo culting. It also removes `is_debug = false`.
Both of these options are implied by `is_official_build` and the latter
is even enforced (`is_debug = true` won't compile with
`is_official_build = true`).

Bug: None
Change-Id: I8cd98694b30d73d7390a409a52aa08d0c1600e30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4515157
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1141057}
2023-05-08 21:24:26 +00:00
41a7de0afb Clarify debugging docs.
Add a section at the top for build configuration. Move the gdbinit
instructions to the configuration section (it's required before
debugging) and remove the details about why this is required (it's
described on the dedicated page that's linked). Add a link to the
corresponding LLDB page.

Mention flag --gtest_break_on_failure for debugging tests.

Clarify LLDB install (the page used to imply that you had to run apt-get
to get the lldbinit file).

Change-Id: Ib292350ee521bf2bc3c4a836523fe070e4d7694e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4482817
Reviewed-by: Yuzhu Shen <yzshen@chromium.org>
Commit-Queue: Brett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1136698}
2023-04-27 18:56:54 +00:00
0cab631e2c Use VMA and not file offset for .text with gdb
In objdump the 5th, 6th, and 7th fields are the VMA, LMA, and file
offset, respectively. These fields are the same for many binaries, but
for recent chrome binaries the VMA and LMA are the file offset + 0x1000.
From recent experience, it appears that gdb is making the calculation
for add-symbol-file based on the VMA, so update the documentation to use
field 5.

Change-Id: Ib49c18abce03a99ce49bc0b4241c3b64b229508a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4455180
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1133426}
2023-04-20 22:35:31 +00:00
fa9b7d62bb Document how to find the target for a given test file
Also converts a few forward slashes to back slashes in the Windows doc

Bug: None
Change-Id: Id2d3f02b246589afa5a92c2f03501033bcdffec9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4354151
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1119358}
2023-03-20 15:48:28 +00:00
eda6fcc4ff [docs] Show how to pipe linux UI from SSH to Chrome Remote Desktop
Change-Id: I27392a4f2aeed3e13e1a86db2d24fb0487021d9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320766
Auto-Submit: Victor Vianna <victorvianna@google.com>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1117058}
2023-03-14 17:18:22 +00:00
6bbefe7e7e Add support for running web tests with debug_renderer
If debug_renderer detects that you're running web tests, modifies the
command line flags and adds appropriate run_web_tests flags for
debugging the renderer spawned for individual web tests.

Bug: None
Change-Id: I85980ff57c85738f8ad8d47e83ba9d61d5411e09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198115
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1109686}
2023-02-24 18:49:51 +00:00
fe9ef130c0 Remove Xenial instrumented libraries
They're no longer used in Chrome (though they may still be used
be other projects like V8 and WebRTC).

R=thestig

Bug: 1260217
Change-Id: I75267cf70843059260c8c04fd944c172747d3b27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4210943
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1100163}
2023-02-01 23:42:40 +00:00
94e2d7fab5 [docs] Update chromium_packages.md
1. Make some dead links available again
2. Adjust the typesetting structure of the docs

Bug:1404726

Change-Id: Id4a7c481f224437ec1c6e56efd015d0e1d18f37b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4133792
Auto-Submit: Ho Cheung <uioptt24@gmail.com>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1089027}
2023-01-04 23:55:30 +00:00
eff2c8f735 Move ash::switches::kForceSystemCompositorMode to ozone_switches.h
ash::switches::kForceSystemCompositorMode is used to enable system
compositor for mostly testing on ozone platform without a real device.

So, this CL moves it to ui/ozone/public/ozone_switches.h and renames
to ::switches::kEnableRunningAsSystemCompositor for consistency in
naming with ::switches::kDisableRunningAsSystemCompositor.

This CL is part of the Chrome OS source code directory migration:
https://docs.google.com/document/d/1g-98HpzA8XcoGBWUv1gQNr4rbnD5yfvbtYZyPDDbkaE.

Change-Id: I273ac3e8ba63a32ed9e306e975c5c673a4ae79b7
Bug: 1164001
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4108574
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Commit-Queue: Yeunjoo Choi <ychoi@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1087072}
2022-12-27 11:12:01 +00:00
cdbf8c4a02 Allow debugging the navigation of a renderer by URL
This adds the --wait-for-debugger-on-navigation flag which pauses
renderers when the target URL is known displaying a message for
each. The debug_renderer script is also updated to automatically
debug the site passed and unblock all other renderer processes.

Documentation in linux/debugging.md is updated to explain how
to use the updated script and flag.

Bug: 730065
Change-Id: I758bf6d10ba9b6a846d216987c20053d4c5ac240
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4028699
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1073426}
2022-11-18 18:12:34 +00:00
cadbcd2632 Update Linux build instructions for Docker
Adds a short section to the Linux build instructions on getting Chromium
compilation to work in a Docker container. This is not a common setup,
but this should give anyone that does need to use it a good starting
place.

Bug: 1377520
Change-Id: I64b78d2578012faab5070582a28d0dc9c6f41c44
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4018936
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Reviewed-by: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1069443}
2022-11-09 23:50:15 +00:00
5ac3cf92bc [docs] Add a OOM troubleshooting for link crash
Compiling chromium has higher requirements for device resources than in the past.
Since version 106, some combinations of gn params will trigger
OOM(out of memory) errors under the default settings of the
compiled device.
This error can be solved by adjusting the vm.max_map_count param
of system.

Bug: 1380991

Change-Id: I649e9fbcfccf0576f6d4ff6a8fa4fe8b61549e3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4005227
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1068964}
2022-11-09 04:12:22 +00:00
d37ab56f67 Reland "[Cast Convergence] Remove is_chromecast."
This reverts commit 53acd00d6c.

Reason for revert: Usages of is_chromecast by internal builders have
been removed.

Original change's description:
> Revert "[Cast Convergence] Remove is_chromecast."
>
> This reverts commit e5db674bc3.
>
> Reason for revert: Failing on official builders https://ci.chromium.org/ui/p/chrome/builders/ci/linux64/88303/overview
>
> Original change's description:
> > [Cast Convergence] Remove is_chromecast.
> >
> > No usages remain outside of this file.
> >
> > Bug: 1219802
> > Change-Id: Ib3830d87c7bb494bdbdd0fc8cb80d05cad035a23
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3897149
> > Reviewed-by: Sean Topping <seantopping@chromium.org>
> > Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
> > Commit-Queue: Mark Foltz <mfoltz@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1048751}
>
> Bug: 1219802
> Change-Id: I02f56a50f2bb471df861ccde0422f0cd6a866c06
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3905305
> Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Reviewed-by: Sean Topping <seantopping@chromium.org>
> Owners-Override: Dave Tapuska <dtapuska@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1048771}

Bug: 1219802
Change-Id: Ie7b5f0ecc50f1bdeb9540a43a00edec8dba82e83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3969701
Reviewed-by: Sean Topping <seantopping@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1068738}
2022-11-08 20:06:40 +00:00