File tree 14 files changed +84
-0
lines changed
utils/coredump/testsources/c 14 files changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
#include <Zydis/Zydis.h>
3
9
#include "decode_amd64.h"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
#ifndef __INCLUDED_PHP_DECODE_X86_64__
3
9
#define __INCLUDED_PHP_DECODE_X86_64__
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#include <Zydis/Zydis.h>
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#ifndef __PYTHON_DECODE_X86_64__
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
__attribute__((section (".coffee_section" )))
2
8
int function_at_fixed_address (void ) {
3
9
return 0 ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
#ifndef LINUX_VERSION
2
8
#define LINUX_VERSION ""
3
9
#endif
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
#include <unistd.h>
2
8
3
9
int main (int argc , char * argv []) {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#include <Zydis/Zydis.h>
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#ifndef __FSBASE_DECODE_X86_64__
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#include <Zydis/Zydis.h>
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
//go:build amd64
2
8
3
9
#ifndef LIBC_DECODE_X86_64
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
// Example application that intentionally breaks its stack.
2
8
//
3
9
// cc -O2 -g -o brokenstack brokenstack.c
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
#include <stdio.h>
2
8
#include <signal.h>
3
9
#include <unistd.h>
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Apache License 2.0.
4
+ * See the file "LICENSE" for details.
5
+ */
6
+
1
7
// gcc -O3 -fomit-frame-pointer -mavx -ftree-vectorize stackalign.c -o stackalign
2
8
3
9
#include <unistd.h>
You can’t perform that action at this time.
0 commit comments