Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_callbacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_callbacks
Commits
c2c4e950
Commit
c2c4e950
authored
7 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Add simple hello callback.
parent
f326b4ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
configure.in
+1
-0
1 addition, 0 deletions
configure.in
hello/Makefile.in
+28
-0
28 additions, 0 deletions
hello/Makefile.in
hello/hello.c
+15
-0
15 additions, 0 deletions
hello/hello.c
with
46 additions
and
0 deletions
.gitattributes
+
2
−
0
View file @
c2c4e950
...
@@ -24,6 +24,8 @@ datashadow/datashadow_callbacks.c -text
...
@@ -24,6 +24,8 @@ datashadow/datashadow_callbacks.c -text
datashadow/test_datashadow.cpp -text
datashadow/test_datashadow.cpp -text
example/Makefile.in -text
example/Makefile.in -text
example/callback.c -text
example/callback.c -text
hello/Makefile.in -text
hello/hello.c -text
hookdynamic/Makefile.in -text
hookdynamic/Makefile.in -text
hookdynamic/hook_dynamic_callbacks.c -text
hookdynamic/hook_dynamic_callbacks.c -text
inferfn/Makefile.in -text
inferfn/Makefile.in -text
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
1
−
0
View file @
c2c4e950
...
@@ -73,6 +73,7 @@ enable_dir rss
...
@@ -73,6 +73,7 @@ enable_dir rss
enable_dir hookdynamic
enable_dir hookdynamic
enable_dir canaries
enable_dir canaries
enable_dir mixr
enable_dir mixr
enable_dir hello
enable_dir cookbook
enable_dir cookbook
enable_dir buffrecv
enable_dir buffrecv
enable_dir datashadow
enable_dir datashadow
...
...
This diff is collapsed.
Click to expand it.
hello/Makefile.in
0 → 100644
+
28
−
0
View file @
c2c4e950
CC
=
@CC@
EXTRA_INCLUDES
=
CFLAGS
=
-fno-omit-frame-pointer
@CFLAGS@
-O0
$(
EXTRA_INCLUDES
)
LIB
=
@LIB@
AR
=
@AR@
AS
=
@AS@
ASFLAGS
=
@ASFLAGS@
OBJS
=
hello.o
SRCS
=
hello.c
.SUFFIXES
:
.o .s .c
.c.o
:
$(
CC
)
$(
CFLAGS
)
$(
INCLUDE
)
-D__
$(
ARCH
)
-c
$<
.s.o
:
$(
AS
)
$(
ASFLAGS
)
$<
all
:
$(OBJS)
$(
AR
)
-r
$(
LIB
)
$(
OBJS
)
clean
:
rm
*
.o
This diff is collapsed.
Click to expand it.
hello/hello.c
0 → 100644
+
15
−
0
View file @
c2c4e950
int
syscall
(
int
number
,
...);
#include
<stdlib.h>
#include
<malloc.h>
#include
<stdint.h>
#include
<strlen.h>
#include
<itox.h>
void
print_str
(
char
*
s
)
{
write
(
1
,
s
,
strlen
(
s
));
}
void
zipr_hook_start
(
unsigned
int
id
,
unsigned
long
long
rax
,
unsigned
long
long
rsp
)
{
print_str
(
"Hello!
\n
"
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment