Yingchi Long
c6486633d2
[BPF] report Invalid usage of the XADD return value" elegantly ( #92742 )
...
Previously `report_fatal_error` is used for reporting something goes
wrong in the backend, but this is confusing because `report_fatal_error`
basically means there are something unexpected & crashed in the backend.
So, turn this "crash" into an elegant error reporting. After this patch,
clang can diagnose it:
bpf-crash.c:4:30: error: Invalid usage of the XADD return value
4 | u32 next_event_id() { return __sync_fetch_and_add(&GLOBAL_EVENT_ID,
1); }
| ^
1 error generated.
2024-05-21 01:57:56 +08:00
..
2024-02-05 14:07:09 +01:00
2024-04-29 09:20:56 -07:00
2023-12-12 16:19:34 +08:00
2024-01-24 15:25:29 +01:00
2022-05-12 10:59:18 +08:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-14 19:20:06 -07:00
2024-03-14 19:20:06 -07:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2024-03-13 02:27:25 +02:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-07-26 08:37:30 -07:00
2024-03-13 02:27:25 +02:00
2024-01-08 22:34:28 -05:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-07-26 08:37:30 -07:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2024-04-01 10:57:54 +08:00
2023-04-17 20:08:45 +03:00
2022-12-19 12:46:54 +01:00
2023-12-13 13:41:52 +08:00
2023-09-11 14:42:37 -07:00
2024-02-05 14:07:09 +01:00
2022-12-19 12:46:54 +01:00
2023-07-26 08:37:30 -07:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-07-26 08:37:30 -07:00
2023-05-17 17:03:15 +02:00
2022-12-19 12:46:54 +01:00
2023-12-31 20:44:48 +08:00
2022-12-19 12:46:54 +01:00
2023-08-01 11:12:43 +09:00
2023-08-01 00:31:12 +03:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-07-26 08:37:30 -07:00
2023-06-27 01:15:45 +03:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2022-12-19 12:46:54 +01:00
2023-02-09 18:45:20 +03:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2023-09-11 14:42:37 -07:00
2024-02-05 14:07:09 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2024-02-05 14:07:09 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-08-22 00:04:51 +03:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2023-12-13 13:41:52 +08:00
2023-07-26 08:37:30 -07:00
2022-12-19 12:46:54 +01:00
2022-12-19 12:46:54 +01:00
2022-12-22 12:58:53 +01:00
2023-07-11 22:30:34 +03:00
2024-02-05 14:07:09 +01:00
2023-12-13 13:41:52 +08:00
2023-08-16 17:51:28 +03:00
2023-08-01 00:31:12 +03:00
2022-08-18 19:11:50 -07:00
2022-08-18 19:11:50 -07:00
2023-02-09 18:45:20 +03:00
2023-08-01 00:31:12 +03:00
2023-06-24 22:44:06 -07:00
2022-12-19 12:46:54 +01:00
2023-10-16 12:17:24 +02:00
2024-02-05 14:07:09 +01:00
2024-05-21 01:57:56 +08:00