-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] Bluetooth: Host: Add BT_TESTING trace event for ACL po…
…ol destroy This is needed for a test to catch a double-free. Signed-off-by: Aleksander Wasaznik <[email protected]> (cherry picked from commit 5f89a6b)
- Loading branch information
1 parent
6e1590a
commit 9f0c4ec
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** @brief Internal testing interfaces for Bluetooth | ||
* @file | ||
* @internal | ||
* | ||
* The interfaces in this file are internal and not stable. | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ | ||
#define ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ | ||
|
||
#include <zephyr/net_buf.h> | ||
|
||
/** @brief Hook for `acl_in_pool.destroy` | ||
* | ||
* Weak-function interface. The user can simply define this | ||
* function, and it will automatically become the event | ||
* listener. | ||
* | ||
* @kconfig_dep{CONFIG_BT_TESTING} | ||
*/ | ||
void bt_testing_trace_event_acl_pool_destroy(struct net_buf *buf); | ||
|
||
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters