Граф коммитов

1378 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 56b8af9033
Bump ossf/scorecard-action from 2.1.2 to 2.2.0 (#2629)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](e38b1902ae...08b4669551)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-25 02:40:46 +00:00
dependabot[bot] cd4c483bca
Bump step-security/harden-runner from 2.4.0 to 2.4.1 (#2632)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](128a63446a...55d479fb1c)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-25 01:37:02 +00:00
Anurag Saxena e98358ad16
Add batch invocation test for sample_ebpf_ext (#2593)
* backup

* fix

* cleanup

* fix
2023-06-24 04:37:59 +00:00
Gianni Trevisiol 020cdad9b8
Add VC++ Debug redist deployment to `deploy-ebpf.ps1`. (#2613)
* Add VC++ Debug redist deployment.

* wip

* Update doc.

* indent

* adjust $null checks in all PS scripts

* fix
2023-06-24 01:47:59 +00:00
Alan Jowett 62537b4f15
Timeout during fault injection (#2621)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-22 17:17:14 +00:00
Alan Jowett c1fecf4e2d
Implement hash-table iterator (#2566)
* Implement hash-table iterator

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Switch iterator to match BPF_MAP_LOOKUP_BATCH syscall behavior

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Switch iterator to match BPF_MAP_LOOKUP_BATCH syscall behavior

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-22 16:43:44 +00:00
Alan Jowett 1955692077
Add option to write bpf2c output directly to file (#2570)
* Add option to write bpf2c output directly to file

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-22 03:23:07 +00:00
Alan Jowett 16d027085e
Add step to gather dumps for any process launched from working folder. (#2612)
* Add "Run-Test.ps1" that executes a test with a
timeout and captures a dump if it times out.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Increasing test timeout to 60 minutes and overall timeout to 90 minutes

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-21 19:55:34 +00:00
dependabot[bot] 494392e53f
Bump external/Catch2 from `7a52dfa` to `e4b1605` (#2603)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `7a52dfa` to `e4b1605`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](7a52dfa77b...e4b16053a6)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 20:24:07 +00:00
Matthew Ige d8cee6a134
Add troubleshooting guide (#2563)
* Add initial TSG

* reformat traces

* update

* address some CR

* address CR

* add note about ETL

* address CR - reorder some points for clarity
2023-06-19 20:15:44 +00:00
dependabot[bot] f3c1054c3f
Bump peter-evans/create-pull-request from 5.0.1 to 5.0.2 (#2605)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](284f54f989...153407881e)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 15:00:31 +00:00
Anurag Saxena b5d0dfa141
Fix build failures with latest MSVC (main) (#2598)
* test

* fix MSVC path

* Revert "test"

This reverts commit c0c42dd2bd.

* update hash

* use env variable for MSVC path

* export env variable

* fix analysis failures
2023-06-15 20:09:37 +00:00
Anurag Saxena 3e7767032b
Fix redirected_by_self check for dual stack sockets (#2562)
* fix

* cleanup

* fix typo

* redirect_handle per socket_context

* update mock api to catch redirect handle leak

* fix analysis build
2023-06-13 16:30:37 +00:00
Dhiren Vispute 6e6c817f98
Not used anymore, so remove elfhelper (#2590)
Co-authored-by: Dhiren Vispute <dhiren.vispute@microsoft.com>
2023-06-13 14:48:01 +00:00
dependabot[bot] 40fe6d82e4
Bump external/Catch2 from `9131736` to `7a52dfa` (#2587)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `9131736` to `7a52dfa`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](9131736630...7a52dfa77b)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-13 06:00:22 +00:00
dependabot[bot] cc1c6a8042
Bump actions/checkout from 3.5.2 to 3.5.3 (#2578)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-12 02:59:21 +00:00
dependabot[bot] d4cdcab8a4
Bump external/Catch2 from `0631b60` to `9131736` (#2576)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `0631b60` to `9131736`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](0631b607ee...9131736630)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 23:34:53 +00:00
dependabot[bot] 254a1470ce
Bump github/codeql-action from 2.3.6 to 2.13.4 (#2579)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.6 to 2.13.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](83f0fe6c49...cdcdbb5797)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 22:20:16 +00:00
Alan Jowett f734b5e1d9
Cleanup ebpf_map_metadata_tables (#2565)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-09 19:24:42 +00:00
Alan Jowett 9edb6a3da8
Add support for map info via BTF in .maps section (#2551)
* Switch bpf2c to use BTF .maps section

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-06-08 05:26:05 +00:00
Dhiren Vispute 10735e577c
Fix double-load issue (#2552)
Co-authored-by: Dhiren Vispute <dhiren.vispute@microsoft.com>
2023-06-07 17:02:43 +00:00
dependabot[bot] cd3ad3b827
Bump github/codeql-action from 2.3.5 to 2.3.6 (#2542)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.5 to 2.3.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0225834cc5...83f0fe6c49)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 15:59:31 +00:00
Dhiren Vispute 595e96150d
Fix cgroup/connect<4|6> usage (#2546)
Co-authored-by: Dhiren Vispute <dhiren.vispute@microsoft.com>
2023-06-07 15:58:06 +00:00
dependabot[bot] cb4412ae6f
Bump external/Catch2 from `8008625` to `0631b60` (#2539)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `8008625` to `0631b60`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](8008625d7e...0631b607ee)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 15:49:51 +00:00
Dave Thaler 87b6520c34
Remove JIT and interpreter code from NativeOnly builds (#2475)
* Remove JIT and interpreter code from NativeOnly builds

Fixes #2030
Fixes #2488

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Try conditional project references

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Various test fixes

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Native-only fixes to deploy-ebpf.ps1

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Native-only support for setup-ebpf.ps1

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Native-only support for api_test.exe

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Add connect_redirect_tests to deploy-ebpf.ps1

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* PR feedback from Anurag

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

---------

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-06-07 15:49:03 +00:00
Delaram Amiri a90d756de1
_update_hash_map_entry_with_handle - over release ref-count (#2524)
* api and multithread test

* deleted:    .azure/pipeline/azure-cicd.yml
deleted:    .azure/pipeline/azure-reusable-build.yml
deleted:    .azure/pipeline/azure-reusable-test.yml
modified:   libs/execution_context/ebpf_maps.c

* address PR comment
2023-06-07 15:49:01 +00:00
Sharmi 8adab0de10
stress test for tail calls (#2518)
* Add stress test for tail calls

* Added the code generated bindmonitor_mt_tailcall files

* Added the test case description to readme.md

* Update tests/stress/km/stress_tests_km.cpp

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* Update tests/stress/km/stress_tests_km.cpp

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* Addressed PR comments and Fixed merge conflicts with latest

* Fixed function name

* Regenerated the expected files, after the macro MAX TAIL CNT change done yesterday

* Update tests/stress/readme.md

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* Removed clean_up tail call

* Add bind in loop

* updated the readme

* Addressed PR comments

* Changed LOG_VERBOSE to LOG_ERROR

* Updated readme and addressed PR comment

---------

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-06-07 05:21:47 +00:00
dependabot[bot] 8dead3834e
Bump external/ebpf-verifier from `10eaee3` to `09a3349` (#2549)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `10eaee3` to `09a3349`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](10eaee343a...09a3349044)

---
updated-dependencies:
- dependency-name: external/ebpf-verifier
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 20:31:26 +00:00
dependabot[bot] 3e7d4a55e1
Bump external/ubpf from `c4201d9` to `96569a0` (#2550)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `c4201d9` to `96569a0`.
- [Commits](c4201d9ef4...96569a0e19)

---
updated-dependencies:
- dependency-name: external/ubpf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 19:29:48 +00:00
Gianni Trevisiol 1ec8e90bd6
Add rundown files compression as an option to `ebpf_tracing.cmd`. (#2537)
* Add 'compress_rundown_state_files' option

* nit

* typo
2023-06-06 17:01:50 +00:00
Delaram Amiri e697c6c404
fix CICD failure (#2548)
Co-authored-by: Dhiren Vispute <86131363+dv-msft@users.noreply.github.com>
2023-06-06 17:01:22 +00:00
Dhiren Vispute f02a98e4f2
Add comments re. epoch awareness in code paths lacking the epoch sandwich. (#2523)
Co-authored-by: Dhiren Vispute <dhiren.vispute@microsoft.com>
2023-06-02 17:19:04 +00:00
Gianni Trevisiol d6bcf1958c
Refactor eBPFCore tracing to use less stack space. (#2501)
* refactor ebpfcore tracing

* feedback
2023-05-31 17:26:09 +00:00
Gianni Trevisiol 0b398dbae9
Tune ebpf_tracing.cmd to use the least amount of CPU. (#2499)
* Remove wfp compression

* Move the timestamp calculation.

* wip

* feedback

* Update scripts/ebpf_tracing.cmd

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* Setting max_file_size_mb to the final max allowed.

* maximize sizes

---------

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-05-30 22:33:39 +00:00
Anurag Saxena 3d8f1adfa7
fix (#2532) 2023-05-30 20:59:19 +00:00
Michael Friesen 15c88bb569
clean up native NMR handle only if not null (#2530) 2023-05-30 16:11:14 +00:00
dependabot[bot] 47429b6143
Bump github/codeql-action from 2.3.3 to 2.3.5 (#2525)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.3 to 2.3.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](29b1f65c5e...0225834cc5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-30 16:00:33 +00:00
dependabot[bot] 492e574af3
Bump external/Catch2 from `689fdcd` to `8008625` (#2526)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `689fdcd` to `8008625`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](689fdcd7dc...8008625d7e)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-30 16:00:27 +00:00
dependabot[bot] d102280543
Bump external/ubpf from `91b1542` to `c4201d9` (#2527)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `91b1542` to `c4201d9`.
- [Commits](91b1542ce7...c4201d9ef4)

---
updated-dependencies:
- dependency-name: external/ubpf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-30 16:00:20 +00:00
Dhiren Vispute b054f0fb32
tweak extension stop/restart, better handling of test runtime (#2519)
Co-authored-by: Dhiren Vispute <dhiren.vispute@microsoft.com>
2023-05-26 02:59:13 +00:00
Anurag Saxena c471719074
Fix closing native program / maps handles in system worker thread. (#2500)
* fix

* fix analyze build

* fix memory leak

* add tests

* code reorder

* mark new tests for DEBUG only

* fix Release build

* CR comments

* cr comments
2023-05-26 02:19:41 +00:00
Alan Jowett 904608de4e
Don't throw exceptions from ~_single_instance_hook (#2514)
* Don't throw exceptions from ~_single_instance_hook

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Fix AV

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-05-25 18:42:03 +00:00
Alan Jowett 396412bc56
Add recursive tail call test (#2504)
* Add recursive tail call test

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Add sequential tail call test

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Fix code analysis failure

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Document workaround for bpf_helpers.h conflict

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-05-24 20:01:01 +00:00
Alan Jowett 1a7155faba
Remove double free of ebpf_map_t (#2515)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-05-24 17:39:51 +00:00
Alan Jowett f084c9d4c3
Remove unneeded nuget package (#2507)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-05-24 14:38:32 +00:00
dependabot[bot] a072e655e9
Bump external/Catch2 from `06c0e1c` to `689fdcd` (#2506)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `06c0e1c` to `689fdcd`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](06c0e1cfab...689fdcd7dc)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 02:41:19 +00:00
dependabot[bot] 46650ef7e7
Bump external/ubpf from `8e1a158` to `91b1542` (#2505)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `8e1a158` to `91b1542`.
- [Commits](8e1a1585b1...91b1542ce7)

---
updated-dependencies:
- dependency-name: external/ubpf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 20:38:48 +00:00
dependabot[bot] 667a9489b9
Bump external/Catch2 from `5a40b22` to `06c0e1c` (#2493)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `5a40b22` to `06c0e1c`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](5a40b2275c...06c0e1cfab)

---
updated-dependencies:
- dependency-name: external/Catch2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-21 20:04:11 +00:00
dependabot[bot] 23d7d9136d
Bump codecov/codecov-action from 3.1.3 to 3.1.4 (#2495)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](894ff025c7...eaaf4bedf3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-21 20:04:10 +00:00
Anthony Nandaa 1210a5553e
fix: minor typo in bpf2c.exe help text (#2485)
fixes #1905
2023-05-19 15:56:24 +00:00