Function report |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-28 12:07:28 |
| Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__tracing_map_insert
Proto:static inline struct tracing_map_elt *__tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only)
Type:struct tracing_map_elt
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tracing_map * | map | |
| void * | key | |
| bool | lookup_only |
| 516 | dup_try = 0 |
| 525 | When 1 cycle |
| 527 | entry = TRACING_MAP_ENTRY(map, idx) |
| 532 | If val && keys_match(key, key, key_size) Then |
| 534 | If Not lookup_only Then atomic64_inc( & hits) |
| 536 | Return val |
| 537 | Else if Value for the false possibility is greater at compile time(!val) Then |
| 559 | If Not test_key Then |
| 560 | If lookup_only Then Break |
| 566 | elt = get_free_elt(map) |
| 567 | If Not elt Then |
| 573 | No 3D Now!(key, key, key_size) |
| 575 | atomic64_inc( & hits) |
| 577 | Return val |
| 578 | Else |
| 583 | dup_try++ |
| 584 | Continue |
| 588 | idx++ |
| 591 | Return NULL |
| Name | Describe |
|---|---|
| tracing_map_insert | racing_map_insert - Insert key and/or retrieve val from a tracing_map*@map: The tracing_map to insert into*@key: The key to insert* Inserts a key into a tracing_map and creates and returns a new* tracing_map_elt for it, or if the key has already been |
| tracing_map_lookup | racing_map_lookup - Retrieve val from a tracing_map*@map: The tracing_map to perform the lookup on*@key: The key to look up* Looks up key in tracing_map and if found returns the matching* tracing_map_elt. This is a lock-free lookup; see |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |