This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH V2 4/8] bpf: gcc.target eBPF testsuite


On 8/16/19 6:50 PM, Jose E. Marchesi wrote:
> This patch adds a new testsuite to gcc.target, with eBPF specific
> tests.
> 
> Tests are included for:
> - Target specific diagnostics.
> - All built-in functions.
> 
> testsuite/ChangeLog:
> 
> 	* gcc.target/bpf/bpf.exp: New file.
> 	* gcc.target/bpf/builtin-load.c: Likewise.
> 	* cc.target/bpf/constant-calls.c: Likewise.
> 	* gcc.target/bpf/diag-funargs.c: Likewise.
> 	* cc.target/bpf/diag-indcalls.c: Likewise.
> 	* gcc.target/bpf/helper-bind.c: Likewise.
> 	* cc.target/bpf/helper-bpf-redirect.c: Likewise.
> 	* gcc.target/bpf/helper-clone-redirect.c: Likewise.
> 	* gcc.target/bpf/helper-csum-diff.c: Likewise.
> 	* gcc.target/bpf/helper-csum-update.c: Likewise.
> 	* gcc.target/bpf/helper-current-task-under-cgroup.c: Likewise.
> 	* gcc.target/bpf/helper-fib-lookup.c: Likewise.
> 	* gcc.target/bpf/helper-get-cgroup-classid.c: Likewise.
> 	* gcc.target/bpf/helper-get-current-cgroup-id.c: Likewise.
> 	* gcc.target/bpf/helper-get-current-comm.c: Likewise.
> 	* gcc.target/bpf/helper-get-current-pid-tgid.c: Likewise.
> 	* gcc.target/bpf/helper-get-current-task.c: Likewise.
> 	* gcc.target/bpf/helper-get-current-uid-gid.c: Likewise.
> 	* gcc.target/bpf/helper-get-hash-recalc.c: Likewise.
> 	* gcc.target/bpf/helper-get-listener-sock.c: Likewise.
> 	* gcc.target/bpf/helper-get-local-storage.c: Likewise.
> 	* gcc.target/bpf/helper-get-numa-node-id.c: Likewise.
> 	* gcc.target/bpf/helper-get-prandom-u32.c: Likewise.
> 	* gcc.target/bpf/helper-get-route-realm.c: Likewise.
> 	* gcc.target/bpf/helper-get-smp-processor-id.c: Likewise.
> 	* gcc.target/bpf/helper-get-socket-cookie.c: Likewise.
> 	* gcc.target/bpf/helper-get-socket-uid.c: Likewise.
> 	* gcc.target/bpf/helper-getsockopt.c: Likewise.
> 	* gcc.target/bpf/helper-get-stack.c: Likewise.
> 	* gcc.target/bpf/helper-get-stackid.c: Likewise.
> 	* gcc.target/bpf/helper-ktime-get-ns.c: Likewise.
> 	* gcc.target/bpf/helper-l3-csum-replace.c: Likewise.
> 	* gcc.target/bpf/helper-l4-csum-replace.c: Likewise.
> 	* gcc.target/bpf/helper-lwt-push-encap.c: Likewise.
> 	* gcc.target/bpf/helper-lwt-seg6-action.c: Likewise.
> 	* gcc.target/bpf/helper-lwt-seg6-adjust-srh.c: Likewise.
> 	* gcc.target/bpf/helper-lwt-seg6-store-bytes.c: Likewise.
> 	* gcc.target/bpf/helper-map-delete-elem.c: Likewise.
> 	* gcc.target/bpf/helper-map-lookup-elem.c: Likewise.
> 	* gcc.target/bpf/helper-map-peek-elem.c: Likewise.
> 	* gcc.target/bpf/helper-map-pop-elem.c: Likewise.
> 	* gcc.target/bpf/helper-map-push-elem.c: Likewise.
> 	* gcc.target/bpf/helper-map-update-elem.c: Likewise.
> 	* gcc.target/bpf/helper-msg-apply-bytes.c: Likewise.
> 	* gcc.target/bpf/helper-msg-cork-bytes.c: Likewise.
> 	* gcc.target/bpf/helper-msg-pop-data.c: Likewise.
> 	* gcc.target/bpf/helper-msg-pull-data.c: Likewise.
> 	* gcc.target/bpf/helper-msg-push-data.c: Likewise.
> 	* gcc.target/bpf/helper-msg-redirect-hash.c: Likewise.
> 	* gcc.target/bpf/helper-msg-redirect-map.c: Likewise.
> 	* gcc.target/bpf/helper-override-return.c: Likewise.
> 	* gcc.target/bpf/helper-perf-event-output.c: Likewise.
> 	* gcc.target/bpf/helper-perf-event-read.c: Likewise.
> 	* gcc.target/bpf/helper-perf-event-read-value.c: Likewise.
> 	* gcc.target/bpf/helper-perf-prog-read-value.c: Likewise.
> 	* gcc.target/bpf/helper-probe-read.c: Likewise.
> 	* gcc.target/bpf/helper-probe-read-str.c: Likewise.
> 	* gcc.target/bpf/helper-probe-write-user.c: Likewise.
> 	* gcc.target/bpf/helper-rc-keydown.c: Likewise.
> 	* gcc.target/bpf/helper-rc-pointer-rel.c: Likewise.
> 	* gcc.target/bpf/helper-rc-repeat.c: Likewise.
> 	* gcc.target/bpf/helper-redirect-map.c: Likewise.
> 	* gcc.target/bpf/helper-set-hash.c: Likewise.
> 	* gcc.target/bpf/helper-set-hash-invalid.c: Likewise.
> 	* gcc.target/bpf/helper-setsockopt.c: Likewise.
> 	* gcc.target/bpf/helper-skb-adjust-room.c: Likewise.
> 	* gcc.target/bpf/helper-skb-cgroup-id.c: Likewise.
> 	* gcc.target/bpf/helper-skb-change-head.c: Likewise.
> 	* gcc.target/bpf/helper-skb-change-proto.c: Likewise.
> 	* gcc.target/bpf/helper-skb-change-tail.c: Likewise.
> 	* gcc.target/bpf/helper-skb-change-type.c: Likewise.
> 	* gcc.target/bpf/helper-skb-ecn-set-ce.c: Likewise.
> 	* gcc.target/bpf/helper-skb-get-tunnel-key.c: Likewise.
> 	* gcc.target/bpf/helper-skb-get-tunnel-opt.c: Likewise.
> 	* gcc.target/bpf/helper-skb-get-xfrm-state.c: Likewise.
> 	* gcc.target/bpf/helper-skb-load-bytes.c: Likewise.
> 	* gcc.target/bpf/helper-skb-load-bytes-relative.c: Likewise.
> 	* gcc.target/bpf/helper-skb-pull-data.c: Likewise.
> 	* gcc.target/bpf/helper-skb-set-tunnel-key.c: Likewise.
> 	* gcc.target/bpf/helper-skb-set-tunnel-opt.c: Likewise.
> 	* gcc.target/bpf/helper-skb-store-bytes.c: Likewise.
> 	* gcc.target/bpf/helper-skb-under-cgroup.c: Likewise.
> 	* gcc.target/bpf/helper-skb-vlan-pop.c: Likewise.
> 	* gcc.target/bpf/helper-skb-vlan-push.c: Likewise.
> 	* gcc.target/bpf/helper-skc-lookup-tcp.c: Likewise.
> 	* gcc.target/bpf/helper-sk-fullsock.c: Likewise.
> 	* gcc.target/bpf/helper-sk-lookup-tcp.c: Likewise.
> 	* gcc.target/bpf/helper-sk-lookup-upd.c: Likewise.
> 	* gcc.target/bpf/helper-sk-redirect-hash.c: Likewise.
> 	* gcc.target/bpf/helper-sk-redirect-map.c: Likewise.
> 	* gcc.target/bpf/helper-sk-release.c: Likewise.
> 	* gcc.target/bpf/helper-sk-select-reuseport.c: Likewise.
> 	* gcc.target/bpf/helper-sk-storage-delete.c: Likewise.
> 	* gcc.target/bpf/helper-sk-storage-get.c: Likewise.
> 	* gcc.target/bpf/helper-sock-hash-update.c: Likewise.
> 	* gcc.target/bpf/helper-sock-map-update.c: Likewise.
> 	* gcc.target/bpf/helper-sock-ops-cb-flags-set.c: Likewise.
> 	* gcc.target/bpf/helper-spin-lock.c: Likewise.
> 	* gcc.target/bpf/helper-spin-unlock.c: Likewise.
> 	* gcc.target/bpf/helper-strtol.c: Likewise.
> 	* gcc.target/bpf/helper-strtoul.c: Likewise.
> 	* gcc.target/bpf/helper-sysctl-get-current-value.c: Likewise.
> 	* gcc.target/bpf/helper-sysctl-get-name.c: Likewise.
> 	* gcc.target/bpf/helper-sysctl-get-new-value.c: Likewise.
> 	* gcc.target/bpf/helper-sysctl-set-new-value.c: Likewise.
> 	* gcc.target/bpf/helper-tail-call.c: Likewise.
> 	* gcc.target/bpf/helper-tcp-check-syncookie.c: Likewise.
> 	* gcc.target/bpf/helper-tcp-sock.c: Likewise.
> 	* gcc.target/bpf/helper-trace-printk.c: Likewise.
> 	* gcc.target/bpf/helper-xdp-adjust-head.c: Likewise.
> 	* gcc.target/bpf/helper-xdp-adjust-meta.c: Likewise.
> 	* gcc.target/bpf/helper-xdp-adjust-tail.c: Likewise.
> 	* gcc.target/bpf/skb-ancestor-cgroup-id.c: Likewise.
> 	* gcc.target/bpf/sync-fetch-and-add.c: Likewise.
This is fine and can be installed once the port is approved.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]