函数逻辑报告 |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-27 13:14:05 |
| Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__tracing_map_insert
函数原型:static inline struct tracing_map_elt *__tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only)
返回类型:struct tracing_map_elt
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct tracing_map * | map | |
| void * | key | |
| bool | lookup_only |
| 516 | dup_try等于0 |
| 525 | 当1循环 |
| 527 | entry等于TRACING_MAP_ENTRY(map, idx) |
| 532 | 如果val且keys_match(key, key, key_size)则 |
| 534 | 如果非lookup_only则atomic64_inc( & hits) |
| 536 | 返回:val |
| 537 | 否则如果此条件成立可能性小(为编译器优化)(!val)则 |
| 559 | 如果非test_key则 |
| 560 | 如果lookup_only则退出 |
| 578 | 否则 |
| 583 | dup_try自加 |
| 584 | 继续下一循环 |
| 588 | idx自加 |
| 591 | 返回:NULL |
| 名称 | 描述 |
|---|---|
| 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |