counter: support 386 systems

Modify the way mmap is invoked on Windows systems to support our
technique for extending the size of counter files.
The existing code was overelaborate and failed on 386.

Also, stop generating empty file names for uploading.

Fixes golang/go#65447
Fixes golang/go#60692
Fixes golang/go#60615

Change-Id: I8349d250fb516c188850557d3d099378248fb17b
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/561995
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
6 files changed
tree: 76d48ffc5b08cb6916dcab238e067eca2b71a4cb
  1. cmd/
  2. config/
  3. counter/
  4. crashmonitor/
  5. godev/
  6. internal/
  7. upload/
  8. .dockerignore
  9. .eslintrc.json
  10. .gitignore
  11. .prettierrc.json
  12. .stylelintrc.json
  13. CONTRIBUTING.md
  14. doc.go
  15. go.mod
  16. go.sum
  17. LICENSE
  18. mode.go
  19. npm
  20. npx
  21. package-lock.json
  22. package.json
  23. PATENTS
  24. README.md
  25. tsconfig.json
  26. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.