Skip to content

Increase MAX_NUM_HOOKS from 64 to 128 - #90

Merged
matthewbalkwill merged 2 commits into
mainfrom
issue89---increase-max-hooks
May 14, 2025
Merged

matthewbalkwill merged 2 commits into
mainfrom
issue89---increase-max-hooks

Conversation

@matthewbalkwill

@matthewbalkwill matthewbalkwill commented May 12, 2025 •

Copy link
Copy Markdown
Collaborator

The current number of hooks is too low.
Increasing to 128.

@xfoukas Xenofon Foukas (xfoukas) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please increase to a power of 2 instead (128).

@matthewbalkwill matthewbalkwill changed the title Increase MAX_NUM_HOOKS from 64 to 96 Increase MAX_NUM_HOOKS from 64 to 128 May 14, 2025
@matthewbalkwill
matthewbalkwill added this pull request to the merge queue May 14, 2025
Merged via the queue into main with commit fcb33a2 May 14, 2025
@matthewbalkwill
matthewbalkwill deleted the issue89---increase-max-hooks branch May 14, 2025 14:56
@doctorlai-msrc

Copy link
Copy Markdown
Collaborator

I think this should be merged to dev first Xenofon Foukas (@xfoukas)

matthewbalkwill added a commit that referenced this pull request May 15, 2025
* Add helper function for fixed points (#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------

Co-authored-by: Zhihua Lai <[email protected]>
github-merge-queue Bot pushed a commit that referenced this pull request Jun 2, 2025
* Add helper function for fixed points (#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
Zhihua Lai (doctorlai-msrc) added a commit that referenced this pull request Jun 2, 2025
* Add helper function for fixed points (#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
Xenofon Foukas (xfoukas) added a commit that referenced this pull request Jun 2, 2025
* Add branch instructions in CONTRIBUTING.md and Update ADO pipeline triggers (#78)

* Add Github Action Pipeline and Fixed INITIALIZE_SUBMODULES (#64)

* Add Debug build configuration testing to CI pipeline (#57)

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: Xenofon Foukas <[email protected]>

* Add helper function for fixed points (#71) (#85)

Co-authored-by: Zhihua Lai <[email protected]>

* Fixes for tests to pass when cmake build type is Release (#86)

This fixes issue #79. When the cmake build type is not defined it defaults to Release.
Given that the tests rely on assert() to pass, the PR also undefs NDEBUG in the release build flags to prevent the optimizer from removing the assert() calls.

* Improve Validation Error Messages in Linked Map (#82)

* Matt/dev: MAX_NUM_HOOKS to 128 (#91)

* Add helper function for fixed points (#71)

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)

---------

Co-authored-by: Zhihua Lai <[email protected]>

* Refactor run_lcm_subproc by removing memory allocation with new/delete. (#93)

* Fix build/package error in ubuntu22.04 (#96)

* Add native support for ARM builds (#59)

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: Xenofon Foukas <[email protected]>
Co-authored-by: Connor Settle <[email protected]>
Co-authored-by: Zhihua Lai <[email protected]>

* Bugfix: perf time measurement API with invalid times (#102)

* Bump ubpf to the latest version (#103)

* Matt/issue94 (#95)

* Remove ado correctness + move to cloud agents (#100)

* Sync dev with main (#105)

* Add helper function for fixed points (#71)

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)


---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: Xiaochuan Ye <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
Co-authored-by: Anita Tenjarla <[email protected]>
Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: Connor Settle <[email protected]>
github-merge-queue Bot pushed a commit that referenced this pull request Jul 2, 2025
* Adding a emulator

* Add Python/ctypesgen dependencies for emulator

* Add jbpf_agent_hooks.h and generate py

* Add time helper functions

* Test emulator

* Add missing file

* Add missing fields

* Fix time event initialization

* Refactor

* Remove protobuf, update jbpf_stats_report.o

* Add xran helper functions, and create random stream_id

* Clang-format

* Fix cppcheck issue

* Refactor default values

* Default num_codelet_descriptors to len(codelet_descriptors)

* Enable ASAN in tests, ignore ODR, cleanup

* Clangformat

* Support custom helper functions and refactor

* Fix clang-format

* Move definitions above users include file

* Remove XRAN

* Add Custom init code

* Add yaml_to_json, refactor

* Fix path

* Add debug option to emulator_utils.jbpf_handle_out_bufs

* Match codelet_descriptor in yaml

* Add missing define agent hooks

* Revert

* jbpf_handle_out_bufs should return how many messages that have been processed

* Add some debug output when calling periodic_call and report_stats hook

* Add a test to make sure the report_stats is actually called

* Add comment

* Clang-format -i

* Add debug printf

* Continued work

* Add matching ck_epoch_end

* Clang

* Continued testing

* Add more debugging

* Clang

* Debug

* Debug print

* Add more debugging message

* More debugging

* Add tests for report_stats and periodic_call, add debugging

* Clang-format

* Pipeline integration

* simple_output2.o

* Add missing files

* Refactor & debug

* COntinued work

* Continued work

* Revert and Cleanup

* Revert

* Fix

* Ignore dynamic builds

* Fix

* Fix syntax

* Fix syntax

* Keep static mode only

* Revert

* Emulate time and add a test

* Add test

* Fix clang-format

* Add missing file

* Fix compilation under ubuntu20

* Init draft of adding both options

* Fix

* Pipeline

* Move autogen wrappers

* Fix cppcheck issue

* Build both by default

* Fix JBPF_SHARED_LIB

* Fix build under ubuntu24.04

* Fix segfault at Static

* Add emulator tests to github action, fix RELEASE

* Typo

* First round of addressing comments

* Improve test description comments

* Add some more doc

* Add to ARM pipeline

* Sync dev with main (#105)

* Add helper function for fixed points (#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>

* Refactor docker files

* Add to github actions

* Add System Information

* Merge and fix

* Fix comments

* Readme

* More doc

* Update docs

* Move emulator tests to the end

* Add debug messages

* Add more debug

* Update codelet to provide more information

* Comment

* Fix print error

* Revert "Update codelet to provide more information"

This reverts commit 95dc9e4.

* Fix segfault

* Use smart ptr

* Revert "Adding a emulator"

* Revert "Enable Building Both libjbpf.a and libjbpf.so with cmake option -DJBPF_STATIC=Both"

---------

Co-authored-by: Xenofon Foukas <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
APZN (jsk1004ha) pushed a commit to jsk1004ha/jbpf that referenced this pull request Aug 19, 2026
microsoft#129)

* syncs from the dev branch to the main branch (microsoft#122)

* Adding a emulator

* Add Python/ctypesgen dependencies for emulator

* Add jbpf_agent_hooks.h and generate py

* Add time helper functions

* Test emulator

* Add missing file

* Add missing fields

* Fix time event initialization

* Refactor

* Remove protobuf, update jbpf_stats_report.o

* Add xran helper functions, and create random stream_id

* Clang-format

* Fix cppcheck issue

* Refactor default values

* Default num_codelet_descriptors to len(codelet_descriptors)

* Enable ASAN in tests, ignore ODR, cleanup

* Clangformat

* Support custom helper functions and refactor

* Fix clang-format

* Move definitions above users include file

* Remove XRAN

* Add Custom init code

* Add yaml_to_json, refactor

* Fix path

* Add debug option to emulator_utils.jbpf_handle_out_bufs

* Match codelet_descriptor in yaml

* Add missing define agent hooks

* Revert

* jbpf_handle_out_bufs should return how many messages that have been processed

* Add some debug output when calling periodic_call and report_stats hook

* Add a test to make sure the report_stats is actually called

* Add comment

* Clang-format -i

* Add debug printf

* Continued work

* Add matching ck_epoch_end

* Clang

* Continued testing

* Add more debugging

* Clang

* Debug

* Debug print

* Add more debugging message

* More debugging

* Add tests for report_stats and periodic_call, add debugging

* Clang-format

* Pipeline integration

* simple_output2.o

* Add missing files

* Refactor & debug

* COntinued work

* Continued work

* Revert and Cleanup

* Revert

* Fix

* Ignore dynamic builds

* Fix

* Fix syntax

* Fix syntax

* Keep static mode only

* Revert

* Emulate time and add a test

* Add test

* Fix clang-format

* Add missing file

* Fix compilation under ubuntu20

* Init draft of adding both options

* Fix

* Pipeline

* Move autogen wrappers

* Fix cppcheck issue

* Build both by default

* Fix JBPF_SHARED_LIB

* Fix build under ubuntu24.04

* Fix segfault at Static

* Add emulator tests to github action, fix RELEASE

* Typo

* First round of addressing comments

* Improve test description comments

* Add some more doc

* Add to ARM pipeline

* Sync dev with main (microsoft#105)

* Add helper function for fixed points (microsoft#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (microsoft#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------

Co-authored-by: Zhihua Lai <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>

* Refactor docker files

* Add to github actions

* Add System Information

* Merge and fix

* Fix comments

* Readme

* More doc

* Update docs

* Move emulator tests to the end

* Add debug messages

* Add more debug

* Update codelet to provide more information

* Comment

* Fix print error

* Revert "Update codelet to provide more information"

This reverts commit 95dc9e4.

* Fix segfault

* Use smart ptr

* Revert "Adding a emulator"

* Revert "Enable Building Both libjbpf.a and libjbpf.so with cmake option -DJBPF_STATIC=Both"

---------

Co-authored-by: Xenofon Foukas <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>

* Prevent untrusted code (community fork) executes repo scripts and preiviledges containers

---------

Co-authored-by: Xenofon Foukas <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
APZN (jsk1004ha) pushed a commit to jsk1004ha/jbpf that referenced this pull request Aug 19, 2026
syncs from the dev branch to the main branch (microsoft#122)

* Adding a emulator

* Add Python/ctypesgen dependencies for emulator

* Add jbpf_agent_hooks.h and generate py

* Add time helper functions

* Test emulator

* Add missing file

* Add missing fields

* Fix time event initialization

* Refactor

* Remove protobuf, update jbpf_stats_report.o

* Add xran helper functions, and create random stream_id

* Clang-format

* Fix cppcheck issue

* Refactor default values

* Default num_codelet_descriptors to len(codelet_descriptors)

* Enable ASAN in tests, ignore ODR, cleanup

* Clangformat

* Support custom helper functions and refactor

* Fix clang-format

* Move definitions above users include file

* Remove XRAN

* Add Custom init code

* Add yaml_to_json, refactor

* Fix path

* Add debug option to emulator_utils.jbpf_handle_out_bufs

* Match codelet_descriptor in yaml

* Add missing define agent hooks

* Revert

* jbpf_handle_out_bufs should return how many messages that have been processed

* Add some debug output when calling periodic_call and report_stats hook

* Add a test to make sure the report_stats is actually called

* Add comment

* Clang-format -i

* Add debug printf

* Continued work

* Add matching ck_epoch_end

* Clang

* Continued testing

* Add more debugging

* Clang

* Debug

* Debug print

* Add more debugging message

* More debugging

* Add tests for report_stats and periodic_call, add debugging

* Clang-format

* Pipeline integration

* simple_output2.o

* Add missing files

* Refactor & debug

* COntinued work

* Continued work

* Revert and Cleanup

* Revert

* Fix

* Ignore dynamic builds

* Fix

* Fix syntax

* Fix syntax

* Keep static mode only

* Revert

* Emulate time and add a test

* Add test

* Fix clang-format

* Add missing file

* Fix compilation under ubuntu20

* Init draft of adding both options

* Fix

* Pipeline

* Move autogen wrappers

* Fix cppcheck issue

* Build both by default

* Fix JBPF_SHARED_LIB

* Fix build under ubuntu24.04

* Fix segfault at Static

* Add emulator tests to github action, fix RELEASE

* Typo

* First round of addressing comments

* Improve test description comments

* Add some more doc

* Add to ARM pipeline

* Sync dev with main (microsoft#105)

* Add helper function for fixed points (microsoft#71)

* Add helper function for fixed points

* Addressing the comments

* Revert

* Continued work

* Fix the algorithms and tests

* Minor tweaks

* Cleanup

* Avoid clang optimise the code

* Fix implementations

* Test fixed_to_float and fixed_to_double

* Fix type

* Add 2 more tests

* Cleanup

* Clang format inconsistent fix

* Add more tests in the codelet

* Increase MAX_NUM_HOOKS from 64 to 128 (microsoft#90)

* Increase MAX_NUM_HOOKS from 64 to 96

* Increase MAX_NUM_HOOKS to 128

---------




* Refactor docker files

* Add to github actions

* Add System Information

* Merge and fix

* Fix comments

* Readme

* More doc

* Update docs

* Move emulator tests to the end

* Add debug messages

* Add more debug

* Update codelet to provide more information

* Comment

* Fix print error

* Revert "Update codelet to provide more information"

This reverts commit 95dc9e4.

* Fix segfault

* Use smart ptr

* Revert "Adding a emulator"

* Revert "Enable Building Both libjbpf.a and libjbpf.so with cmake option -DJBPF_STATIC=Both"

---------

Co-authored-by: Xenofon Foukas <[email protected]>
Co-authored-by: matthewbalkwill <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants