Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
config: ${{ fromJson(inputs.configuration) }}
runs-on: ubuntu-latest
container:
image: "alpine:3.14"
image: "alpine:3.21"
options: --cpus 4 --workdir /github/workspace -v /home/runner/work/_temp:/home/runner/work/_temp
timeout-minutes: 180
steps:
Expand Down
5 changes: 4 additions & 1 deletion ddprof-lib/src/main/cpp/symbols_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>

// make sure lseek will use 64 bits offset
#define _FILE_OFFSET_BITS 64
#include <unistd.h>

ElfSection *ElfParser::findSection(uint32_t type, const char *name) {
Expand Down Expand Up @@ -68,7 +71,7 @@ bool ElfParser::parseFile(CodeCache *cc, const char *base,
return false;
}

size_t length = (size_t)lseek64(fd, 0, SEEK_END);
size_t length = (size_t)lseek(fd, 0, SEEK_END);
void *addr = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0);
close(fd);

Expand Down
Loading